Actions › Variables

Subtract from a Variable

Subtracts a number from a Number Variable, in a single write even when several executions do it at once.
  • Free
  • Outputs: Success, Failure
  • Undone after a test

Fields

What you set in Properties. The grey name is the one in the Blueprint's JSON.

FieldWhat it does
Scope
scope
required
Variable
name
required
Member
member
The member whose value is read or written.optional
Number
amount
optional

What it passes on

On the Success output, for the nodes after it. Click a value in the editor to copy its reference.

DataPathType
ValuevalueNumber
Previous valuepreviousValueNumber

When it fails

The Failure output receives success (false) and error: error.code, error.message in the server's language, and error.detail, what Discord said. The possible causes are in Errors.

Discord permissions

None: the bot needs no server permission for this node.