Skip to content

Set Variable Node

Set Variable changes what the story remembers without asking the player for text or a choice.

Use Insert > Dialogue & Logic > Change Variable for route flags, counters, affinity points, unlocks, and short pieces of state that later conditions should read.

FieldWhat it does
NameOptional editor-only name for the node.
VariableVariable this node changes.
OperationOperation allowed for the selected variable kind.
Value, Append Text, or AmountOperand used by the operation when one is needed.
NextNode that runs after the variable changes.
Variable kindOperations
stringset, append
numberset, increment, decrement
booleanset, toggle

If older project data contains an invalid operation for the variable kind, VNC treats it as set. You should still fix the field in Properties so the route is clear.

When the node runs, VNC reads the current variable value, applies the operation, stores the result, then continues to Next.

If the selected variable is missing, the node cannot update story state. Properties and Output should point you toward the missing variable before runtime testing.

GoalSetup
Add affectionNumber variable averyTrust, operation increment, amount 1.
Mark a route openBoolean variable helpedAvery, operation set, value true.
Add text to a noteString variable clueList, operation append, append text , library key.
Flip a flagBoolean variable lightsOn, operation toggle.

Set Variable nodes are quiet, but they make later branches meaningful. Name them clearly when the route depends on them.