Changes

Jump to navigation Jump to search
340 bytes added ,  22:16, 30 January 2021
→‎Dialogue commands: expand and correct $d info
Line 276: Line 276:  
| Show {{t|text1}} with a {{t|probability}} between 0 and 1; otherwise, show {{t|text2}}.  E.g. <code>$c 0.9</code> for a 90% chance of {{t|text1}} and a 10% chance of {{t|text2}}.  NOTE: Replacer commands (see below) do not work in {{t|text1}}. This does not need to be the first command in a dialogue string. It is unaffected by daily luck.
 
| Show {{t|text1}} with a {{t|probability}} between 0 and 1; otherwise, show {{t|text2}}.  E.g. <code>$c 0.9</code> for a 90% chance of {{t|text1}} and a 10% chance of {{t|text2}}.  NOTE: Replacer commands (see below) do not work in {{t|text1}}. This does not need to be the first command in a dialogue string. It is unaffected by daily luck.
 
|-
 
|-
| <tt>$d {{t|bus|joja|cc|kent}}</tt>
+
| <tt>$d {{t|state id}}#{{t|text1}}&#124;{{t|text2}}</tt>
| dialogueDependingOnWorldState<br/>
+
| Show one of two dialogue strings based on a predefined condition: <tt>bus</tt> (whether the bus is repaired), <tt>joja</tt> (whether the Joja Mart is still in business), <tt>cc</tt> or <tt>communitycenter</tt> (whether the Community Center is accessible), or <tt>kent</tt> (whether [[Kent]] has returned to the valley). The dialogue string must start with <tt>$d</tt>, everything up to the first <code>&#124;</code> symbol is shown if the condition matches, and everything after that is shown if the condition doesn't match.
<code>"Tue4": "$d</code> {{t|dependence}}<code>#|Dialogue when dependence value is true.|Dialogue in other situations.",</code><br/>
+
 
The dependence can take one of four values: "bus": is the bus fixed?; "joja": is Joja Mart in business?; "cc": has the Community Center been completed?; "kent": has Kent returned to the valley? This command must start the dialogue string and does not allow for any other dialogue commands in the string.
+
For example:
 +
<source lang="js">"Mon2": "$d kent#Yesterday I visited Yoba's Altar to give thanks for my husband's safe return.|Yesterday I visited Yoba's Altar to ask for my husband's safe return.#$e#I'm trying to stay positive, but it's hard sometimes.$s"</source>
 
|-
 
|-
 
| <tt>$y</tt>
 
| <tt>$y</tt>
translators
8,447

edits

Navigation menu