Set Variable

The Set Variable Node is used to set the integer value of a variable on whatever the current logic graph is running, i.e. a Screen, a Room or an Object.
It’s important to understand that, in the case of rooms and objects the value being modified is the value for the chosen variable in the Object Instance or Location, that is running the logic code, each reference has it’s own version of the variables, so changing a variable on one reference for a particular object type will not affect the value on other references, they are independent.
Ports
- Flow In
-
In order for this node to perform its operation, it must be connected into an active flow using this input port. The flow will ultimately originate at a Trigger node but can come from the Flow Out port of any other flow node.
- Flow Out
-
A node connected to the Flow Out port will be executed in sequence following the completion of this node’s operation.
- Value
-
An integer input port used to provide the value that will be applied to the chosen variable.