User Tools

Site Tools


plugin-cond-act

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
plugin-cond-act [2023/03/30 06:43] banerjeeswplugin-cond-act [2024/03/22 10:06] (current) – removed banerjeesw
Line 1: Line 1:
-====== Conditional Card Actions ====== 
-This plugin allows you to skip or jump between Card Actions using If statements and Labels. 
  
-{{https://cdn.discordapp.com/attachments/235557488794009600/1090858639910244454/CondLoopExample2.gif?640}} 
- 
-===== Card Actions ===== 
- 
-|  **if [expression]**  | This will evaluate the expression, and if it's true, it will execute the next Card Action. If false, it will skip that action. | 
-|  **label [labelName]**  | This will define a label, which is important for the jump to Action. | 
-|  **jump to [labelName]**  | 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: 
-<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. 
- 
-===== Version History ===== 
-<code> 
- **v1.0.0** - Finished plugin 
-</code> 
plugin-cond-act.1680151409.txt.gz · Last modified: 2023/03/30 06:43 by banerjeesw