|
Mechanic: VariableSubtract
|
|
## Description
|
|
==========================
|
|
|
|
|
|
|
|
Subtracts an amount to a [variable](/skills/variables) on the specified
|
|
Subtracts 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 | |
|
|
|
|
| amount | a | | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 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 |
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
Skills:
|
|
Skills:
|
|
- variablesubtract{var=skill.testVar;amount=1} ~onInteract
|
|
- variablesubtract{var=skill.testVar;amount=1} ~onInteract
|
|
- ... |
|
```
|
|
\ No newline at end of file |
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] variableSub
|
|
|
|
- [x] subtractVariable
|
|
|
|
- [x] subVar
|
|
|
|
- [x] reduceVariable |
|
|
|
\ No newline at end of file |