Variables
Variables remember information throughout the story. They track player choices, character relationships, or item collections.
Steps to Set a Variable:
- Write
<<set $variableName to value>> - Replace
variableNamewith a descriptive name (no spaces) - Replace
valuewith 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