|
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 |
|
|
## Attributes
|
|
|-----------|---------|------------------------------------|---------------|
|
|
| Attribute | Aliases | Description | Default |
|
|
| var | name, key | The scope and name of the varibale | |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| amount | a | | 1 |
|
|
| var | name, key | The scope and name of the variable | |
|
|
|
|
| amount | a, value, val, v | The amount to subtract | 1 |
|
|
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- variablesubtract{var=skill.testVar;amount=1} ~onInteract
|
|
|
|
```
|
|
|
|
|
|
Examples
|
|
|
|
--------
|
|
|
|
|
|
|
|
Skills:
|
|
## Aliases
|
|
- variablesubtract{var=skill.testVar;amount=1} ~onInteract
|
|
- [x] variableSub
|
|
- ... |
|
- [x] subtractVariable
|
|
\ No newline at end of file |
|
- [x] subVar
|
|
|
|
- [x] reduceVariable |
|
|
|
\ No newline at end of file |