|
## Description
|
|
## 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.
|
|
|
|
|
|
|
|
> This mechanic can
|
|
|
|
> - subtract numeric values to Integer, Float and Double variables
|
|
|
|
> - remove a value from a Set variables
|
|
|
|
> - remove a value from a List variables by specifying its index (starts at 0)
|
|
|
|
> - remove a key-value pair from Map variables by specifying their key
|
|
|
|
>
|
|
|
|
> [More Info Here](/Skills/Variables#special-variable-types)
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
## Attributes
|
|
| Attribute | Aliases | Description | Default |
|
|
| Attribute | Aliases | Description | Default |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| amount | a, value, val, v | The amount to subtract | 0 |
|
|
| amount | a, value, val, v | The value to subtract | 0 |
|
|
> This mechanic inherits every *inheritable* attribute of the [SetVariable](skills/mechanics/setvariable) mechanic
|
|
> This mechanic inherits every *inheritable* attribute of the [SetVariable](skills/mechanics/setvariable) mechanic
|
|
|
|
|
|
|
|
|
... | @@ -25,4 +33,4 @@ scope. Only works with numeric variable types. |
... | @@ -25,4 +33,4 @@ scope. Only works with numeric variable types. |
|
|
|
|
|
|
|
|
|
<!--TAGS-->
|
|
<!--TAGS-->
|
|
<!--tag:Variable--> |
|
<!--tag:Variable--> |
|
|
|
\ No newline at end of file |