User Tools

Site Tools


card-actions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
card-actions [2024/09/10 01:56] isiahgamescard-actions [2025/06/13 20:32] (current) isiahgames
Line 72: Line 72:
 The list of Actions available in the [[plugin-core|Core Plugin]] are as follows: The list of Actions available in the [[plugin-core|Core Plugin]] are as follows:
  
-| <code>Draw X</code> | Where X is a number, target draws that many cards from Hand. | 
-| <code>Draw Until X</code> | Where X is a number, draw until your Hand size reaches that number. | 
-| <code>Discard X</code> | Where X is a number, discard that many cards | 
-| <code>Discard Until X</code> | Where X is a number, discard until your hand size reaches that number. | 
-| <code>Remove X</code> | Where X is a number, remove that many cards from play. These cards are only removed for the current battle. | 
-| <code>Remove Until X</code> | Where X is a number, remove until your hand size reaches that number. | 
-| <code>Add [skillID] to [zoneName]</code> | Adds a card directly to a zone. For example, ""Add 7 to hand"" will create a card of Skill ID 7 in your Hand.  |       
-| <code>Mill X</code> | Moves X cards from the deck directly to the discard | 
-| <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. | 
-| <code>Search For X</code> | Where X is either a Skill ID or the name of a Skill/Card, it will find that card in your deck and draw it if it is present. | 
-| <code>Wait X</code> | Where X is the amount of frames to wait before executing the next Card Action or moving on. This basically adds buffer time between actions. Note that this Action does not execute during Battle Start Actions or Turn Start Actions. | 
-| <code>Shuffle Deck</code> | Shuffles the target's deck | 
-| <code>Eval [expression]</code> | Everything after the word “eval” is executed as code.\\ \\ <code>eval $gameVariables.setValue(4, user.handSize);</code>This gets the user of the card’s handSize variable and stores it in Game Variable 4. | 
-|  <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. The expression is code just like the Eval Card Action. | 
-|  <code>label [labelName]</code>  | This will define a label, which is important for the jump to Action. | 
-|  <code>jump to [labelName]</code>  | This will search for the label with the same name, and move to that label. If the label is after this Card Action, it will skip all Card Actions between the two. If the label is before this Card Action, it will execute the Card Actions between the two a second time. | 
  
-Example of how these Card Actions can be used: +{{page>plugin-core#actions}}
-<code> +
-<Card Actions> +
-  label start +
-  if (user.handSize >= 10) +
-  jump to end +
-  draw 1 +
-  wait 5 +
-  jump to start +
-  label end +
-</Card Actions> +
-</code> +
-These card actions will draw 1 card, wait 5 frames, and then repeat until the player has 10 cards in their hand.+
  
 ==== Card Types ==== ==== Card Types ====
 If you’re using [[plugin-card-types|Card Types]] plugin, you also have access to these Card Actions: If you’re using [[plugin-card-types|Card Types]] plugin, you also have access to these Card Actions:
  
-| <code>Draw X Type Y</code> | Where X is a number and Y is the name of a Card Type, the game will search the player’s deck for cards of type Y and draw the first X amount of them. | +{{page>plugin-card-types#actions}}
-| <code>Discard X Type Y</code> | Where X is a number and Y is the name of a Card Type, the game will search the player's deck for cards of type Y and discard the first X amount of them. | +
-| <code>Remove X Type Y</code> | Where X is a number and Y is the name of a Card Type, the game will search the player's deck for cards of type Y and remove the first X amount of them. | +
-| <code>Mill Until Type X</code> | Where X is the name of a Card Type, the game will discard the top card of the player’s deck until a card of card type Y is on the top of the deck. It will not draw or discard this card - these actions would be a separate notetag. |+
  
 **Note**: As of 1.6.2, card type names are no longer case-sensitive. **Note**: As of 1.6.2, card type names are no longer case-sensitive.
- 
 ==== Action Pack 1 ==== ==== Action Pack 1 ====
 If you are using the plugin [[plugin-card-action-pack-1|Action Pack 1]], you also have access to these Card Actions: If you are using the plugin [[plugin-card-action-pack-1|Action Pack 1]], you also have access to these Card Actions:
Line 118: Line 86:
 **Selection Card Actions** **Selection Card Actions**
  
-|  <code>Select X from zoneName</code>  |Replace 'X' with a number or game variable, and replace 'zoneName' with 'deck', 'discard' or 'hand'. This opens the Card Selection Window and makes the player choose X cards from the specified zone.  | +{{page>plugin-card-action-pack-1#selection_card_actions}}
-|  <code>Select X of Y from zoneName location</code>  |Replace 'X' with a number, 'Y' with another number,'zoneName' with a zone, and a 'location'.\\ \\ This makes the player choose X cards from a selection of Y cards from the specified zone. Replace 'zoneName' with 'deck', 'discard' or 'hand'. Replace 'location' with 'Top', 'Bottom', 'Random'. If 'Top', The pool of cards will be grabbed from the top Y cards. If 'Bottom', the bottom. If 'random', cards will be grabbed randomly from the zone.  | +
-|  <code>Select X from skills Y, Z, A, B</code>  |Replace X, Y, Z, etc with numbers.This makes the player choose X cards from a list of Skill IDs. The list of IDs can be any size.  | +
-|  <code>Select All from zoneName</code>  |Selects all Cards in the specified zone.  | +
-|  <code>Select X Type typeName from zoneName</code>  |Requires CardTypes. Replace X with a number, typeName with the name of a Card Type, and zoneName with a zone. This makes the player choose X cards from the specified zone filtered to only include the specified Card Type.  | +
-|  <code>Select X of Y Type typename from zoneName location</code>  |Requires CardTypes. This makes the player choose X cards from the specified zone, filtered to only include the specified Card Type, with a pool size of Y grabbed from the top/bottom or grabbed randomly from the zone.  |+
  
  
 **Movement Card Actions** **Movement Card Actions**
  
-|  <code>Move selected to zoneName</code>  |Replace 'zoneName' with a zone. This will move the selected cards from their previous zone to the specified zone.  | +{{page>plugin-card-action-pack-1#movement_card_actions}} 
-|  <code>Remove selected</code>  |This will remove the selected cards from play.  | +
-|  <code>Add selected to zoneName</code>  |Replace 'zoneName' with a zone. This will add a copy of each selected card to the specified zone. Note that this is the only Movement Card Action that works when using the Card Action "Select from Skills" because it's the only one that does not require a zone of origin.  |+
  
 **Clear Card Actions** **Clear Card Actions**
  
-|  <code>Clear Selected +{{page>plugin-card-action-pack-1#clear_card_actions}}
-Clear Selection</code>  |Clears the current list of selected Cards for future Selection Card Actions.  \\ \\ Each Selection Card Action adds to the list of selected cards, so one Movement Card Action could be performed on cards from several Selection Card Actions until this is called.  |+
  
 ==== Action Pack 2 ==== ==== Action Pack 2 ====
 If you are using the plugin [[plugin-card-action-pack-2|Action Pack 2]], you also have access to these Card Actions: If you are using the plugin [[plugin-card-action-pack-2|Action Pack 2]], you also have access to these Card Actions:
  
 +{{page>plugin-card-action-pack-2#card_actions}}
 +
 +In addition, you have access to [[plugin-card-action-pack-2#modifiers|Card Action Modifiers]].
 ==== Independent Card Variables ==== ==== Independent Card Variables ====
 If you are using the plugin [[plugin-icv|Independent Card Variables]], you also have access to these Card Actions: If you are using the plugin [[plugin-icv|Independent Card Variables]], you also have access to these Card Actions:
 +
 +{{page>plugin-icv#card_actions}}
 +
 +==== Card Summons ====
 +
 +If you are using the plugin [[plugin-card-summons|Card Summons]], you also have access to these Card Actions:
 +
 +{{page>plugin-card-summons#card_actions}}
 +
 +===== Card Action Modifiers =====
 +
 +For the time being, Modifiers are only present in Action Pack 2. [[plugin-card-action-pack-2#modifiers|See its section on Modifiers.]]
card-actions.1725926184.txt.gz · Last modified: 2024/09/10 01:56 by isiahgames