Both sides previous revisionPrevious revisionNext revision | Previous revision |
plugin-core [2025/06/12 21:12] – [Actions] isiahgames | plugin-core [2025/06/13 20:45] (current) – [Passives] isiahgames |
---|
| |
**Current Version: 1.6.2** | **Current Version: 1.6.2** |
| |
As we update this page, parts exclusive to the upcoming v1.6.3 will be marked with an asterisk* | |
| |
{{ https://img.itch.zone/aW1hZ2UvMTQyODQ1Ny8xNTQ3ODc3NS5naWY=/347x500/KDUHd7.gif?nolink }} | {{ https://img.itch.zone/aW1hZ2UvMTQyODQ1Ny8xNTQ3ODc3NS5naWY=/347x500/KDUHd7.gif?nolink }} |
| |
===== Actions ===== | ===== Actions ===== |
| ^ Card Action Syntax ^ Description ^ |
| <code>Draw X</code> | Where X is a number, playing this card will make the actor draw X cards | | | <code>Draw X</code> | Where X is a number, playing this card will make the actor draw X cards | |
| <code>Draw Until X</code> | Where X is a number, will make the actor draw until their hand is size X | | | <code>Draw Until X</code> | Where X is a number, will make the actor draw until their hand is size X | |
Search For [skill name]</code> | Draws the Card of the specified Skill ID (x) or name, if it is in the deck. | | Search For [skill name]</code> | Draws the Card of the specified Skill ID (x) or name, if it is in the deck. | |
| <code>Shuffle Deck</code> | Will shuffle the deck. | | | <code>Shuffle Deck</code> | Will shuffle the deck. | |
| | <code>Move X from [zoneName] |
| <code>Move X from [zoneName] to [zoneName]</code> | A generic form of Draw/Discard/Mill where you can specify any zone. For example "Move 3 from Discard to Hand" will return 3 cards to the hand. | | to [zoneName]</code> | A generic form of Draw/Discard/Mill where you can specify any zone. For example "Move 3 from Discard to Hand" will return 3 cards to the hand. | |
| <code>Move this to [zoneName]</code> | Will move the card currently being used to the specified zone. If the zone is absent the card will move to the discard at the end of all Card Actions. | | | <code>Move this to [zoneName]</code> | Will move the card currently being used to the specified zone. If the zone is absent the card will move to the discard at the end of all Card Actions. | |
| <code>Move all from [zoneName] to [zoneName]</code> | This will move all cards from one zone to another. | | | <code>Move all from [zoneName] |
| to [zoneName]</code> | This will move all cards from one zone to another. | |
| <code>Eval [expression]</code> | Will execute anything after the word "eval" as a piece of code. | | | <code>Eval [expression]</code> | Will execute anything after the word "eval" as a piece of code. | |
| <code>If [expression]</code> | This will evaluate the expression, and if it's true, it will execute the next Card Action. If false, it will skip that action. | | | <code>If [expression]</code> | This will evaluate the expression, and if it's true, it will execute the next Card Action. If false, it will skip that action. | |
| |
===== Passives ===== | ===== Passives ===== |
| ^ Card Passive Syntax ^ Description ^ |
| <code>Will End Turn</code> | This will cause the card to end the turn upon use. | | | <code>Will End Turn</code> | This will cause the card to end the turn upon use. | |
| |
| <code>Discard if unplayed</code> | Will discard this card if the turn ends while this card is in the hand. | | | <code>Discard if unplayed</code> | Will discard this card if the turn ends while this card is in the hand. | |
| <code>Remove if unplayed</code> | Will remove this card from play if the turn ends while this card is in the hand. | | | <code>Remove if unplayed</code> | Will remove this card from play if the turn ends while this card is in the hand. | |
| |
| <code>Require [expression]</code> | Cannot be played unless the expression evaluates to true. Multiple requirements can be placed. Use the word 'user' to refer to the user of the card.\\ \\ <code>Require user.handSize > 2 | | <code>Require [expression]</code> | Cannot be played unless the expression evaluates to true. Multiple requirements can be placed. Use the word 'user' to refer to the user of the card.\\ \\ <code>Require user.handSize > 2 |
Require user.handSize < 10 | Require user.handSize < 10 |
Require $gameSwitches.value(3)</code>This will make a card playable only if the user's hand contains more than 2 and less than 10 cards. In addition, can only be played if Game Switch 3 is set to ON. | | Require $gameSwitches.value(3)</code>This will make a card playable only if the user's hand contains more than 2 and less than 10 cards. In addition, can only be played if Game Switch 3 is set to ON. | |
| |
| <code>Start in [zoneName]</code> | Will be in the specified zone at start of battle, before start-of-battle actions. | | | <code>Start in [zoneName]</code> | Will be in the specified zone at start of battle, before start-of-battle actions. | |
| <code>Start of Turn: Skill X</code> | At the Start of Turn, if this Card is in Hand, execute Skill ID X. | | | <code>Start of Turn: Skill X</code> | At the Start of Turn, if this Card is in Hand, execute Skill ID X. | |