Skip to main content

If / Else

If/else statements change dialogue based on variables. Different content appears depending on previous player choices.

Steps:

  1. Write <<if $variableName is value>>
  2. Write the content that appears when the condition is true
  3. Optionally write <<else>> followed by alternative content
  4. 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