User Tools

Site Tools


plugin-cond-act-old

Conditional Card Actions

This plugin allows you to skip or jump between Card Actions using If statements and Labels.

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:

<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

 **v1.0.0** - Finished plugin
plugin-cond-act-old.txt · Last modified: 2024/03/22 10:06 by banerjeesw