... | @@ -40,12 +40,40 @@ console.log(dotSyntax('$variable.variable2')) |
... | @@ -40,12 +40,40 @@ console.log(dotSyntax('$variable.variable2')) |
|
|
|
|
|
## Global Variables
|
|
## Global Variables
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
> thisMatch
|
|
|
|
|
|
## Helper Functions
|
|
## Helper Functions
|
|
|
|
|
|
|
|
> runEffect(*thisMatch*, *options*, *callback*)
|
|
|
|
|
|
|
|
*thisMatch* parameter
|
|
|
|
|
|
|
|
Specify the match. Should always be "thisMatch".
|
|
|
|
|
|
|
|
*options* parameter
|
|
|
|
|
|
|
|
| key | description | type |
|
|
|
|
| ------ | ------ | ------ |
|
|
|
|
| ciid | The ciid of the card you're executing. | int |
|
|
|
|
| effectIndex | The index of the effect you're executing on the target card. | int |
|
|
|
|
|
|
|
|
*callback* parameter
|
|
|
|
|
|
|
|
Optional.
|
|
|
|
|
|
|
|
> getIndexFromEffectName(*effectName*)
|
|
|
|
|
|
> effectAfterAction()
|
|
> effectAfterAction()
|
|
|
|
|
|
|
|
Proceed to the effect completion.
|
|
|
|
|
|
> assignTargetVariable(*target*)
|
|
> assignTargetVariable(*target*)
|
|
|
|
|
|
***target* parameter**
|
|
This assigns to the target to the line like the assign variable action. The target may be any number, string, object, function or array of ciids.
|
|
|
|
|
|
|
|
> stringVariableReplacement(*string*)
|
|
|
|
|
|
|
|
With a string, replace any variables within. Example: stringVariableReplacement("This card is called $title. It has an attack power of $atk and a health of $health.")
|
|
|
|
|