Changes

Jump to navigation Jump to search
203 bytes added ,  20:41, 27 August 2021
Expand and correct the description of quickQuestion
Line 457: Line 457:  
| Show a dialogue with some answers and an optional question. When the player chooses the answer matching the <tt>fork{{t|answer index}}</tt> (like <tt>fork0</tt> for the first answer), the <tt>specialEventVariable1</tt> variable is set. Usually followed by a <tt>fork</tt> command.
 
| Show a dialogue with some answers and an optional question. When the player chooses the answer matching the <tt>fork{{t|answer index}}</tt> (like <tt>fork0</tt> for the first answer), the <tt>specialEventVariable1</tt> variable is set. Usually followed by a <tt>fork</tt> command.
 
|-
 
|-
| <tt>quickquestion "#{{t|question1}}#{{t|question2}}#{{t|question3}}(break){{t|command}}#{{t|answer1 script}}(break){{t|answer2 script}}(break){{t|answer3 script}}\\"</tt>
+
| <tt>quickQuestion {{t|question}}#{{t|answer1}}#{{t|answer2}}#{{t|question3}}(break){{t|answer1 script}}(break){{t|answer2 script}}(break){{t|answer3 script}}</tt>
| Show a dialogue box with some answers and an optional question. When the player chooses an answer, the event script continues with no other effect.
+
| Show a dialogue box with an optional question and some answers. The answer scripts are sequences of commands separated by <tt>\\</tt>. When the player chooses an answer, the relevant answer script is executed and then the event continues. Usually used when an NPC's response will depend on the answer chosen but nothing else in the event has to depend on it.
 
|-
 
|-
 
| <tt>removeItem {{t|object ID}}</tt>
 
| <tt>removeItem {{t|object ID}}</tt>

Navigation menu