Skip to main content

Variables

Variables remember information throughout the story. They track player choices, character relationships, or item collections.

Steps to Set a Variable:

  1. Write <<set $variableName to value>>
  2. Replace variableName with a descriptive name (no spaces)
  3. Replace value with a number or text in quotes

Example:

title: TrackChoice
---
You helped the villager.
<<set $helpedVillager to true>>
<<set $reputation to 5>>
===
warning

Tip: Variable names must start with $ and cannot contain spaces.

Variables persist across all nodes in the same story playthrough.

You may see official documentation for more information: Logic and Variables