Alterações

Saltar para a navegação Saltar para a pesquisa
18 bytes adicionados ,  20h39min de 8 de novembro de 2021
sem resumo de edição
Linha 196: Linha 196:     
==Format==
 
==Format==
Dialogue text can contain tokens and commands which control the dialogue box, change the text (e.g. switch between gender-specific strings), inject values, etc. These are parsed by the <samp>Dialogue</samp> class.
+
Dialogue text can contain tokens and commands which control the dialogue box, change the text (''e.g.,'' switch between gender-specific strings), inject values, etc. These are parsed by the <samp>Dialogue</samp> class.
    
Special tokens:
 
Special tokens:
Linha 275: Linha 275:  
|-
 
|-
 
| <samp>$c {{t|probability}}#{{t|text1}}#{{t|text2}}</samp>
 
| <samp>$c {{t|probability}}#{{t|text1}}#{{t|text2}}</samp>
| 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}}.  For example: <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.
 
|-
 
|-
 
| <samp>$d {{t|bus|joja|cc}}</samp>
 
| <samp>$d {{t|bus|joja|cc}}</samp>
Linha 391: Linha 391:  
The third response, <code>$r 43 -10 summer_Sat_13#Snoop around in your room</code>, sets response ID 43, reduces Haley's friendship by 10 points, and brings up the dialogue <code>summer_Sat_13</code> (Haley says, "What? You'd better not be doing that!").  All of the other responses set response ID 42, increase Haley's friendship by 10 points, and bring up the dialogue <code>summer_Sat_12</code> ("Hmm... sounds like a lot of work.").
 
The third response, <code>$r 43 -10 summer_Sat_13#Snoop around in your room</code>, sets response ID 43, reduces Haley's friendship by 10 points, and brings up the dialogue <code>summer_Sat_13</code> (Haley says, "What? You'd better not be doing that!").  All of the other responses set response ID 42, increase Haley's friendship by 10 points, and bring up the dialogue <code>summer_Sat_12</code> ("Hmm... sounds like a lot of work.").
   −
The next time <code>summer_Sat</code> is chosen, one of the response IDs listed in the <code>$q</code> command will have been given (either 42 or 43).  Therefore, the <code>$q</code> and everything after is scrapped, and dialogue <code>summer_Sat_old</code> is put in its place.  This new dialogue uses the <code>$p</code> command to change Haley's dialogue based on whether or not you gave response ID 43 to any previous question.  If you answered "Snoop around your room," everything before the <code>|</code> will be used, so Haley will now say, "Farming sounds so boring... Hey, you better not be snooping around in my room anymore!"  If response ID 43 has not been given (in this case, you must have given response ID 42, i.e. one of the other three responses to the previous question), everything after the <code>|</code> will be used, so Haley will instead say, "Farming sounds so boring... But I guess it could get you in pretty good shape."
+
The next time <code>summer_Sat</code> is chosen, one of the response IDs listed in the <code>$q</code> command will have been given (either 42 or 43).  Therefore, the <code>$q</code> and everything after is scrapped, and dialogue <code>summer_Sat_old</code> is put in its place.  This new dialogue uses the <code>$p</code> command to change Haley's dialogue based on whether or not you gave response ID 43 to any previous question.  If you answered "Snoop around your room," everything before the <code>|</code> will be used, so Haley will now say, "Farming sounds so boring... Hey, you better not be snooping around in my room anymore!"  If response ID 43 has not been given (in this case, you must have given response ID 42, ''i.e.,'' one of the other three responses to the previous question), everything after the <code>|</code> will be used, so Haley will instead say, "Farming sounds so boring... But I guess it could get you in pretty good shape."
    
===Comandos substitutos===
 
===Comandos substitutos===
105 639

edições

Menu de navegação