Skip to content

Option to Jump

Function Description

Creates an option that jumps to a specific label when selected.

Syntax Structure

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

Parameter Description

ParameterRequiredExampleDescription
option_textYesGo to chapter 2Choice option text
target_labelYeschapter2Label to jump to

Examples

text
# Option to jump
choice {
  "Go to chapter 2" -> chapter2
}

chapter2:
"narrator" "Chapter 2 begins..."

Released under BSD3-Clause License.