{{https://img.itch.zone/aW1nLzE1NDg2MDEwLnBuZw==/original/XoTlkw.png?nolink&690}} **MYTH_CGC_CardTypes** is a plugin allows you to add one or more card types to each Skill. First, define the Type using the plugin parameter. When defining a type, all parameters other than the Name affect how it's drawn on the card. Then, use skill notetags to give a skill the Card Type you created. The spelling and capitalization must be exactly the same, so watch out for typos. **Current Version: 1.2.1** {{ https://img.itch.zone/aW1nLzEwNDE2NzUxLnBuZw==/original/GOsi5F.png?nolink&480 }} ===== Parameters ===== | **Card Types** || | **Name** | Name of the Card Type | | **Draw on Card?** | If set to ON, this card type will be drawn on the card. If OFF, ignore all below parameters. | | **Icon** | The icon index that represents the card type, if you are displaying that on the card. | | **Card Base** | The Card Base to use for all cards of this Type. Set to nothing to ignore this feature. | | **Show in Library?** | If set to ON, the player will be able to filter by this type in the Card Library | | **Show in Deck Editor?** | If set to ON, will show Category Icon in Deck Stats Window. | | **Show Name?** | If set to ON, the name of the Card Type will be shown on all cards with that type. | | **Name Coordinates** | The X/Y coordinates for the first Card Type Name to be drawn on the card. | | **Font Size** | The size of the font that the Card Type Name is drawn in on the card. | | **Type Icon Size** | Icons may need to be drawn scaled-down on the card. This is the pixel width/height of icons to draw. | | **Icon Coordinates** | The X/Y coordinates for the first Card Type Icon to be drawn on the card. | | **Separation Width** | The separation in pixels between two type name/icons on a card, if a card has more than one. | | **Separation Height** | If you want them drawn vertically instead of horizontally, use this param instead. | ===== Notetags ===== ^ Notetag Syntax ^ Description ^ | | Replace "type_name" with the name of the Card Type (case sensitive) that you want this skill to have. A Skill/Card can have multiple Card Types, using multiple instances of this notetag. | Ensure that all Types you plan to use are in the Card Types plugin parameter. Any skill which contains the notetag from **MYTH_CGC_CoreEngine** will use that specified Card Base instead of the one specified by this plugin. ===== Actions ===== ^ Card Action Syntax ^ Description ^ | Draw X Type type_name | This will draw the first X cards in your deck that are of the specified type. | | Mill X Type type_name | These work the same way, but for their respective Mill/Discard/Remove actions. | | Discard X Type type_name | ::: | | Remove X Type type_name | ::: | | Mill Until Type type_name | This will Mill cards from the top of the deck until the card at the top is of the specified type. | | Move X Type [typename] from [zoneName] to [zoneName] | This is the generic Move action that accepts all zones. For example, if you wanted to move 1 Spell Card from Deck to Discard, you would use:\\ Move 1 Type Spell from deck to discard | ===== Script Calls ===== ^ Script Call Syntax ^ Description ^ | {actor}.cardsInZoneOfType(zone, type) | This function can be used inside damage formulas, Evals, and Require notetags. It will return the amount of cards of the given type in the given zone. An example of how to format this: \\ \\ Require user.cardsInZoneOfType("hand", "Fossil") 'zone' and 'type' are string parameters, which means they must have quotation marks around them. | | {actor}.hasCardInZone(zone, skillName) {actor}.hasCardInZone(zone, skillId) | This function can be used to quickly check if a specific Card is in a Zone (e.g. Hand or Deck). It returns true if it has found it and false if it hasn't. | | Myth.CGC.getIDsOfType(type) | This function returns an array containing all the skill IDs of Cards that match the type you have provided. You can use these for Card Rewards/Booster Packs or Random Card Generation. | ===== Version History ===== **v1.2.1** - Fixed Icon Formatting Issues and added new Plugin Parameters - Fixed TextFormatPlus bug where wrong ResetFontSettings was being used **v1.2.0** - Updated for compatibility with v1.6.0 - Changed plugin name - Increased compatibility with other expansions - Added new Card Action: Move X Type typeName from zoneName to zoneName. **v1.1.0** - Fixed crash on Mill Until Type Card Action **v1.0.9** - Fixed bug that would prevent End Turn Button from being selectable to confirm discard. - Fixed bug where Discard/Remove X of Type Card Action would softlock if player did not have enough cards of that type. **v1.0.8** - Fixed bug where skills wouldn't show up when card battle was disabled. **v1.0.7** - Added error handling to the type struct so undefined values no longer crash MZ and deployed MV games. Now they instead supply default values and warn through the console. **v1.0.6** - Cleaned up the loading of the type struct, types with Show in Library set to OFF will not show up in the Card Library. Types with Show in Deck Editor? set to OFF will not show up in the Deck Editor if you are using MYTH_CGC_DeckEditorCore. **v1.0.5** - Updated for compatibility with CGC v1.5.1 **v1.0.4** - Crash hotfix for when using a card that has a Type that is not defined in the plugin parameters. Fixed error if Type list is empty. **v1.0.3** - Fixed crash when opening Skills scene. **v1.0.2** - Fixed MZ Card Library crash. **v1.0.1** - Released plugin