User Tools

Site Tools


plugin-card-action-pack-2

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
plugin-card-action-pack-2 [2024/06/09 14:14] – [Card Passives] banerjeeswplugin-card-action-pack-2 [2025/06/17 20:13] (current) – [Version History] isiahgames
Line 3: Line 3:
 **MYTH_CGC_ActionPack2** is a plugin that adds new Card Actions, Passives and the new Modifier keywords. **MYTH_CGC_ActionPack2** is a plugin that adds new Card Actions, Passives and the new Modifier keywords.
  
-**Current Version: 1.0.0**+**Current Version: 1.0.2**
  
 This plugin is currently Patreon Only. This plugin is currently Patreon Only.
Line 9: Line 9:
 ===== Card Actions ===== ===== Card Actions =====
  
 +^  Card Action Syntax  ^ Description  ^
 |  <code>Shuffle zoneName</code>  | Replace 'zoneName' with a zone. This will shuffle the specified zone.  | |  <code>Shuffle zoneName</code>  | Replace 'zoneName' with a zone. This will shuffle the specified zone.  |
 |  <code>Transform X into Y</code>  | Replace X with a number, and Y with a skill ID.\\ This will make the player select X cards from their hand, and the selected cards will transform into a card with the specified Skill ID.\\ The card will then have all of the Actions and Passives of the new Skill ID.\\ If you're using Independent Card Variables, the transformed card will still have access to its old Var values.  | |  <code>Transform X into Y</code>  | Replace X with a number, and Y with a skill ID.\\ This will make the player select X cards from their hand, and the selected cards will transform into a card with the specified Skill ID.\\ The card will then have all of the Actions and Passives of the new Skill ID.\\ If you're using Independent Card Variables, the transformed card will still have access to its old Var values.  |
Line 20: Line 21:
 ===== Card Passives ===== ===== Card Passives =====
  
-|  <code>Prevent [cardAction]</code>  This prevents a card from being the target of a given Card Action.\\ <code>Prevent Discard</code>This card cannot be selected for the Discard action\\ <code>Prevent Move to Discard</code>This card cannot be moved to the discard zone through any means\\ <code>Prevent Move</code>This card cannot be moved from its starting zone.\\ Specially implemented is: <code>Prevent Perma Remove</code>\\ This card can be removed from play but it will return at end of battle like a normal Remove. See "Perma" Modifier for details below.| +^ Card Passive Syntax  ^ Description 
-|  <code>Transform This into X if [expression]</code>   |+|  <code>Prevent [cardAction]</code>  | This prevents a card from being the target of a given Card Action.\\ <code>Prevent Discard</code>This card cannot be selected for the Discard action\\ <code>Prevent Move to Discard</code>This card cannot be moved to the discard zone through any means\\ <code>Prevent Move</code>This card cannot be moved from its starting zone.\\ Specially implemented is: <code>Prevent Perma Remove</code>This card can be removed from play but it will return at end of battle like a normal Remove. See "Perma" Modifier for details below. | 
 +|  <code>Transform This into X  
 +    if [expression]</code> Replace X with a skill ID and expression with code that evaluates to true or false.\\ \\ This passive transforms the card into a card of the specified Skill ID if the expression is true.\\ \\ The condition works just like the Require passive, but it's evaluated whenever there is a change in game state, as long as this card is in the hand.\\ \\ <code>Transform this into 5 if user.handSize > 7</code> This will transform the card into a card with the Skill ID 5 if the user's hand has more than 7 cards. |
  
 ===== Modifiers ===== ===== Modifiers =====
Line 58: Line 61:
 Bottom Bottom
 Random</code>  | These Modifiers do something different depending on if they are in the Middle of a Card Action or at the End.\\ These modify any Card Action that sends cards to a specific zone. Normally, cards are moved to the bottom of a zone. These can override that.\\ \\ Top moves a card to be the first card in a zone.\\ Middle moves a card to be in the middle position in a zone.\\ Bottom does not change the behavior.\\ Random moves the card to a random position within the zone, "shuffling" it in.\\ \\ <code>Discard 1 Random</code> This makes the player select a card from their hand, and moves the card to a random position inside the discard. <code>Copy Selected to Deck Top</code> This modifies the Copy Selected Card Action so that the new copies are added to the top of the deck instead of the bottom.\\ Note that because Top/Bottom/Random is a different Modifier depending on where it is in the Card Action, you can use both at once.\\ <code>Move 2 from Deck Bottom to Discard Top</code>This would take cards from the bottom of the Deck and put them at the top of the Discard| Random</code>  | These Modifiers do something different depending on if they are in the Middle of a Card Action or at the End.\\ These modify any Card Action that sends cards to a specific zone. Normally, cards are moved to the bottom of a zone. These can override that.\\ \\ Top moves a card to be the first card in a zone.\\ Middle moves a card to be in the middle position in a zone.\\ Bottom does not change the behavior.\\ Random moves the card to a random position within the zone, "shuffling" it in.\\ \\ <code>Discard 1 Random</code> This makes the player select a card from their hand, and moves the card to a random position inside the discard. <code>Copy Selected to Deck Top</code> This modifies the Copy Selected Card Action so that the new copies are added to the top of the deck instead of the bottom.\\ Note that because Top/Bottom/Random is a different Modifier depending on where it is in the Card Action, you can use both at once.\\ <code>Move 2 from Deck Bottom to Discard Top</code>This would take cards from the bottom of the Deck and put them at the top of the Discard|
 +
 +===== Version History =====
 +<code>
 +v1.0.2 
 +- Fixed crash when enemies force the player to discard.
 +- Fixed Modifier case-sensitivity error.
 +- Fixed crash when shuffling zones that don't display card sprites.
 +- Fixed crash when getting the "smooth target" for the first card in the Hand.
 +- Fixed crash when card battle is disabled.
 +- Fixed crash if actions are taken before the player gets to select cards.
 +- Fixed Perma Remove compatibility with DeckEditorCore.
 +- Fixed Perma Remove removing an extra copy from the Deck in battle.
 +- Fixed Prevent Discard failing when discarding all cards.
 +- Fixed crash with the Random Middle Modifier.
 +- Perma Remove will now only regularly remove temporary cards, preventing a duplicate removal
 +- Fixed Move to zoneName Top failing to properly reorder sprites,causing the wrong card to be drawn.
 +
 +v1.0.1 
 +- Changed when transform conditions are checked to happen more often.
 +
 +v1.0.0 
 +- Finished plugin
 +</code>
plugin-card-action-pack-2.1717935298.txt.gz · Last modified: 2024/06/09 14:14 by banerjeesw