SELECT OPTION ENDOPTION ENDSELECT
[[SELECT: question]] [[OPTION: answer1]] … [[ENDOPTION]] [[OPTION(logical_condition): answer2]] … [[ENDOPTION]] [[ENDSELECT]]
This Action displays a question to the user and waits for a choice among multiple options.
Selecting one of the options will display the subsequent text and/or execute the actions present until the [[ENDOPTION]]
block related to that option.
- Example 1:
{[[(F), ON_ENTER_ROOM:REPEAT]] You finally found the secret chamber of the dread lord [[SELECT: What do you want to do? ]]
[[OPTION: Challenge the curse and sit on the throne]] You dare to challenge the curse! As black light descends upon you,
the realization of how foolish you were strikes you... [[QUEST_FAILED]] [[ENDOPTION]] [[OPTION: Read the words on the grimoire]]
When you finish reading the words, the candles light up after a silent sparkle, then light starts to spread to all the dungeon.
You break the curse! [[QUEST_OBJECTIVE_COMPLETED]] [[QUEST_COMPLETE]] [[ENDOPTION]] [[OPTION]] Nothing [[ENDOPTION]] [[ENDSELECT]]}
Within a SELECT
action, you can also use the [[OPTION(logical_condition): answer ]]
action, which will only appear if the logical_condition is true.
- Example 2:
{[[(F), ON_ENTER_ROOM:REPEAT]] You finally found the secret chamber of the dread lord [[SELECT: What do you want to do? ]]
[[OPTION: Turn on the candles with a torch]] No matter how much you try, these candles cannot be lit by a torch
[[ENDOPTION]] [[OPTION(magical_torch = 1): Use the magical torch to turn on the light]] The magical candles light on after a
gentle touch. You can feel a magical current flowing through all the room. You break the curse! [[QUEST_OBJECTIVE_COMPLETED]]
[[QUEST_COMPLETE]] [[ENDOPTION]] [[OPTION: Nothing]] [[ENDOPTION]] [[ENDSELECT]]}
magical_torch
is equal to 1. In this case, the OPTION()
Action has been used to display a button depending on whether the heroes have found a special object.