Skip to content

Branch

Function Description

Creates a branch point for dialogue choices.

Syntax Structure

text
choice {
  [option_text] -> [target_label]
  [option_text] -> [target_label]
}

Parameter Description

ParameterRequiredExampleDescription
option_textYesGo leftChoice option text
target_labelYesleft_pathLabel to jump to when option is selected

Examples

text
# Branch with choices
choice {
  "Go left" -> left_path
  "Go right" -> right_path
}

left_path:
"narrator" "You chose to go left."

right_path:
"narrator" "You chose to go right."

Released under BSD3-Clause License.