Description
Adds an amount to a variable on the specified scope.
This mechanic can
- sum numeric values to Integer, Float and Double variables
- add a value to Set variables
- append a value to List variables
- add a key-value pair to Map variables
Attributes
Attribute | Aliases | Description | Default |
---|---|---|---|
amount | a, value, val, v | The value to add | 0 |
This mechanic inherits every inheritable attribute of the SetVariable mechanic
Examples
Skills:
- variableadd{var=skill.testVar;amount=1} ~onInteract
Aliases
- addVariable
- varAdd
- addVar
- incrementVariable