Line 111: |
Line 111: |
| {| class="wikitable" | | {| class="wikitable" |
| |- | | |- |
− | | <tt>$q {{t|?}} {{t|?}}#{{t|text}}</tt> | + | | <tt>$q {{t|response IDs}} {{t|fallback}}#{{t|text}}</tt> |
− | | Show a dialogue box containing the given question text. | + | | Show a dialogue box containing the given question text. If {{t|response IDs}} (a list delimited by <code>/</code>) contains an answer already given, the question is skipped (along with the rest of this dialogue line), and instead the dialogue entry identified by {{t|fallback}} will be appended to whatever precedes this $q command. The {{t|fallback}} dialogue typically uses a $p command to adjust the text based on the player's answer to this question. |
| |- | | |- |
− | | <tt>$r {{t|value A}} {{t|value B}} {{t|response ID}}#{{t|answer text}}</tt> | + | | <tt>$r {{t|response ID}} {{t|friendship}} {{t|reaction}}#{{t|answer text}}</tt> |
− | | Define a response option to a $q question dialogue. {{t|answer text}} is the text shown. {{t|Value A}} is used to group responses for future reference. {{t|Value B}} defines the change in friendship value, positive or negative, if this response is selected. {{t|response ID}} names the dialogue entry from the NPC's <tt>Content\Characters\Dialogue\*.xnb</tt> file that will be the NPC's reaction if this response is selected by the player. | + | | Define a response option to a $q question dialogue. {{t|answer text}} is the text shown. {{t|response ID}} is used to group responses for future reference (multiple answers can share an answer ID). {{t|friendship}} defines the change in friendship value, positive or negative, if this response is selected. {{t|reaction}} names the dialogue entry from the NPC's <tt>Content\Characters\Dialogue\*.xnb</tt> file that will be the NPC's reaction if this response is selected by the player. |
| |- | | |- |
− | | <tt>$p {{t|value}}</tt> | + | | <tt>$p {{t|response ID}}#{{t|match text}}|{{t|no-match text}}</tt> |
− | | Stands for "dialoguePrerequisite". {{t|value}} refers to the value of a response picked by the player to a preceding $r-question. | + | | Stands for "dialoguePrerequisite". Shows different text depending on whether the player gave a particular answer to a previously-asked question. If {{t|response ID}} matches an answer the player gave, {{t|match text}} is shown; otherwise, {{t|no-match text}} is shown. These texts, separated by <code>|</code>, can each contain multiple commands separated by <code>#</code>. |
| |- | | |- |
| | <tt>$b</tt> | | | <tt>$b</tt> |