plugin-cond-act
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| plugin-cond-act [2023/03/30 06:40] – created banerjeesw | plugin-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. | ||
| - | ===== Card Actions ===== | ||
| - | |||
| - | | **if [expression]** | ||
| - | | **label [labelName]** | ||
| - | | **jump to [labelName]** | ||
| - | |||
| - | Example of how these Card Actions can be used: | ||
| - | < | ||
| - | <Card Actions> | ||
| - | label start | ||
| - | if (user.handSize >= 10) | ||
| - | jump to end | ||
| - | draw 1 | ||
| - | wait 5 | ||
| - | jump to start | ||
| - | label end | ||
| - | </Card Actions> | ||
| - | </ | ||
| - | These card actions will draw 1 card, wait 5 frames, and then repeat until the player has 10 cards in their hand. | ||
| - | |||
| - | ===== Version History ===== | ||
| - | < | ||
| - | | ||
| - | </ | ||
plugin-cond-act.1680151250.txt.gz · Last modified: 2023/03/30 06:40 by banerjeesw