|
Mechanic: VariableAdd
|
|
## Description
|
|
=====================
|
|
|
|
|
|
|
|
Adds an amount to a [variable](/skills/variables) on the specified
|
|
Adds an amount to a [variable](/skills/variables) on the specified
|
|
scope. Only works with numeric variable types.
|
|
scope. Only works with numeric variable types.
|
|
|
|
|
|
Attributes
|
|
|
|
----------
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
|
|
|-----------|---------|------------------------------------|---------------|
|
|
|
|
| var | name, key | The scope and name of the varibale | None |
|
|
|
|
| amount | a | The amount to add | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
| Attribute | Aliases | Description | Default |
|
|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|
|
| var | name, key | The scope and name of the varibale | |
|
|
|
|
| amount | a, value, val, v | The amount to add | 1 |
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- variableadd{var=skill.testVar;amount=1} ~onInteract
|
|
- variableadd{var=skill.testVar;amount=1} ~onInteract
|
|
- ... |
|
```
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] addVariable
|
|
|
|
- [x] varAdd
|
|
|
|
- [x] addVar
|
|
|
|
- [x] incrementVariable |
|
|
|
\ No newline at end of file |