If / Else
If/else statements change dialogue based on variables. Different content appears depending on previous player choices.
Steps:
- Write
<<if $variableName is value>> - Write the content that appears when the condition is true
- Optionally write
<<else>>followed by alternative content - Write
<<endif>>to end the block
Example:
title: Reaction
---
<<if $helpedVillager is true>>
The villager smiles and waves at you.
<<else>>
The villager looks away coldly.
<<endif>>
===
Multiple conditions can be checked by adding more <<elseif>> lines between <<if>> and <<else>>.
You may see official documentation for more information: Flow Control