Passa al contenuto principale

SELECT OPTION ENDOPTION ENDSELECT

[[SELECT: domanda]] [[OPTION: risposta1]] … [[ENDOPTION]] [[OPTION(condizione_logica): risposta2]] … [[ENDOPTION]] [[ENDSELECT]]

Questa Azione mostra una domanda all'utente e attende una scelta tra opzioni multiple. Selezionando una delle opzioni viene mostrato il testo successivo e/o eseguite le azioni presenti fino al blocco [[ENDOPTION]] relativo a quella opzione.

  • Esempio 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 seat on the throne]] You dare to challenge the curse! As black light descends upon you, the realization of how fool you were truck you... [[QUEST_FAILED]] [[ENDOPTION]] [[OPTION: Read the words on the grimoire]] When you finish to read 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]]}

Nell’Esempio 1, quando si entra nella stanza comparirà la possibilità di scegliere tra tre opzioni (vedi figura sotto) Selezionando ciascuna delle opzioni avrà come effetti Azioni differenti. In questo esempio in un caso il fallimento della questo completamento con successo della quest. In un'altro caso il fallimento. Nel terzo caso non succede nulla.

All'interno di un azione SELECT si può anche usare l'azione [[OPTION(condizione_logica): risposta ]] questa è un'azione che comparirà solo se la condizione_logica è vera.

  • Esempio 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]]}
Nell’Esempio2, quando si entra nella stanza comparirà la possibilità di scegliere tra tre opzioni (vedi figura sotto) Selezionando ciascuna delle opzioni avrà come effetti Azioni differenti. Nota che la seconda opzione comparirà soltanto se la variabile magical_torchè uguale a 1. In questo caso l'Azione OPTION() è stata usata per fare comparire un pulsante contestuale al fatto che gli eroi hanno trovato un oggetto speciale.