Variablesubtract

Description

Subtracts an amount to a variable on the specified scope.

This mechanic has different behavior based on the variable type. More Info Here

Attributes

Attribute Aliases Description Default
amount a, value, val, v The value to subtract 0

This mechanic inherits every inheritable attribute of the SetVariable mechanic

Examples

  Skills:
  - variablesubtract{var=skill.testVar;amount=1} ~onInteract

Aliases

  • variableSub
  • subtractVariable
  • subVar
  • reduceVariable
Updated Aug 19, 2026