| ... | @@ -38,6 +38,11 @@ console.log(dotSyntax('$variable.variable2')) | ... | @@ -38,6 +38,11 @@ console.log(dotSyntax('$variable.variable2')) | 
|  |  |  |  | 
|  | ## Local Variables |  | ## Local Variables | 
|  |  |  |  | 
|  |  |  | > **thisCard** | 
|  |  |  |  | 
|  |  |  | > **effectIndex** | 
|  |  |  |  | 
|  |  |  |  | 
|  | ## Global Variables |  | ## Global Variables | 
|  |  |  |  | 
|  | > |  | > | 
| ... | @@ -46,6 +51,10 @@ console.log(dotSyntax('$variable.variable2')) | ... | @@ -46,6 +51,10 @@ console.log(dotSyntax('$variable.variable2')) | 
|  |  |  |  | 
|  | ## Helper Functions |  | ## Helper Functions | 
|  |  |  |  | 
|  |  |  | > **otherPlayer(*playerNumber*)** | 
|  |  |  |  | 
|  |  |  | In games with 2 players, get the playerNumber of the other player. Returns either string `"player1"` or `"player2"` | 
|  |  |  |  | 
|  | > **runEffect(*thisMatch*, *options*, *callback*)** |  | > **runEffect(*thisMatch*, *options*, *callback*)** | 
|  |  |  |  | 
|  | *thisMatch* parameter |  | *thisMatch* parameter | 
| ... | @@ -69,15 +78,30 @@ Optional. | ... | @@ -69,15 +78,30 @@ Optional. | 
|  |  |  |  | 
|  | Proceed to the effect completion. |  | Proceed to the effect completion. | 
|  |  |  |  | 
|  | > assignTargetVariable(*target*) |  | > assignTargetVariable(*target*, *key*) | 
|  |  |  |  | 
|  |  |  | *target* parameter | 
|  |  |  | This assigns the target to the line like the assign variable action. The target may be any number, string, object, function or array of ciids. | 
|  |  |  |  | 
|  | 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. |  | *key* parameter | 
|  |  |  | Optional. Create an additional property on thisCard in the form of `effect-${effects.effectName}Key`. | 
|  |  |  |  | 
|  |  |  | > safeEvalInput(*string*) | 
|  |  |  |  | 
|  |  |  | Checks to see if there's math that can be done. If there is, do the math and return a number. Otherwise return the string. | 
|  |  |  |  | 
|  |  |  | > dotSyntax(**string**) | 
|  |  |  |  | 
|  |  |  | Like parseVariable but works with dot syntax. | 
|  |  |  |  | 
|  | > stringVariableReplacement(*string*) |  | > stringVariableReplacement(*string*) | 
|  |  |  |  | 
|  | With a string, replace any variables within. Example: |  | With a string, replace any variables within. Uses dotSyntax. Example: | 
|  |  |  |  | 
|  | ``` |  | ``` | 
|  | stringVariableReplacement("This card is called $title. It has an attack power of $atk and a health of $health.") |  | stringVariableReplacement("This card is called $title. It has an attack power of $atk and a health of $health.") | 
|  | ``` |  | ``` | 
|  |  |  |  | 
|  |  |  | > effectSelectCard() | 
|  |  |  |  | 
|  |  |  | Returns all possible choices based on the target | 
|  |  |  | \ No newline at end of file |