|
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 |
|
|
## Attributes
|
|
|-----------|---------|------------------------------------|---------------|
|
|
| Attribute | Aliases | Description | Default |
|
|
| var | name, key | The scope and name of the varibale | None |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| amount | a | The amount to add | 1 |
|
|
| var | name, key | The scope and name of the varibale | |
|
|
|
|
| amount | a, value, val, v | The amount to add | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- variableadd{var=skill.testVar;amount=1} ~onInteract
|
|
|
|
```
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
Skills:
|
|
## Aliases
|
|
- variableadd{var=skill.testVar;amount=1} ~onInteract
|
|
- [x] addVariable
|
|
- ... |
|
- [x] varAdd
|
|
\ No newline at end of file |
|
- [x] addVar
|
|
|
|
- [x] incrementVariable |
|
|
|
\ No newline at end of file |