Pular para o conteúdo principal

Option Dialogue

The Option Dialogue entry presents the player with a set of choices. Each choice can trigger different actions, allowing for branching narratives.

Configuration

text

" required> The text content or question displayed above the options.

columns

" default="1"> Number of columns to arrange the option buttons in.

speaker

"> Reference to a speaker entry to define who is talking.

Options

A list of DialogueOption objects.

text

" required> Text displayed on the option button.

triggers

"> Triggers to run when this option is selected.

criteria

"> Criteria required for this option to be visible/selectable.

Triggers

startTriggers

"> Triggers to fire when this dialogue starts.

endTriggers

"> Triggers to fire when the dialogue ends (option selected).

cancelTriggers

"> Triggers to fire if the dialogue is cancelled (e.g. via ESC key).

type: dialogue_option
text: "What brings you here?"
options:
- text: "I'm looking for a quest."
triggers: [ ... ]
- text: "Just passing through."
triggers: [ ... ]