Description
Subtracts an amount to a variable on the specified scope. Only works with numeric variable types.
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
var | name, key | The scope and name of the variable | |
amount | a, value, val, v | The amount to subtract | 1 |
This mechanic inherits every inheritable attribute of the SetVariable mechanic
Examples
Skills:
- variablesubtract{var=skill.testVar;amount=1} ~onInteract
Aliases
- variableSub
- subtractVariable
- subVar
- reduceVariable