Changes

No change in size ,  00:40, 8 November 2021
m
Text replacement - "''e.g.''," to "''e.g.,''"
Line 23: Line 23:  
Notes:
 
Notes:
 
* 'NPC name' means their internal English name, not the translatable display name.
 
* 'NPC name' means their internal English name, not the translatable display name.
* Most text is case-sensitive (''e.g.'', <samp>Mon</samp> is not the same as <samp>mon</samp>).
+
* Most text is case-sensitive (''e.g.,'' <samp>Mon</samp> is not the same as <samp>mon</samp>).
 
* The game's logic for these codes is in <samp>GameLocation::checkEventPrecondition</samp>.
 
* The game's logic for these codes is in <samp>GameLocation::checkEventPrecondition</samp>.
   Line 47: Line 47:  
|-
 
|-
 
| <samp>r {{t|number}}</samp>
 
| <samp>r {{t|number}}</samp>
| A random probability check, where {{t|number}} is the probability between 0 and 1 (''e.g.'', 0.2 for 20% chance).
+
| A random probability check, where {{t|number}} is the probability between 0 and 1 (''e.g.,'' 0.2 for 20% chance).
 
|-
 
|-
 
| <samp>v {{t|name}}</samp>
 
| <samp>v {{t|name}}</samp>
Line 388: Line 388:  
|-
 
|-
 
| <samp>fork {{o|req}} {{t|event ID}}</samp>
 
| <samp>fork {{o|req}} {{t|event ID}}</samp>
| End the current command script and starts a different script with the given ID, but only if the {{o|req}} condition is met. (Example: <samp>/fork choseWizard finalBossWizard</samp> in the ''"Necromancer"'' script of Sebastian's 6-heart event.) The {{o|req}} condition can be a mail ID or dialogue answer ID; if not specified, it checks if the <samp>specialEventVariable1</samp> variable was set (''e.g.'', by a <samp>question</samp> event command or <samp>%fork</samp> dialogue command). The new script should have the same format as a normal event script, but without the mandatory three start fields.
+
| End the current command script and starts a different script with the given ID, but only if the {{o|req}} condition is met. (Example: <samp>/fork choseWizard finalBossWizard</samp> in the ''"Necromancer"'' script of Sebastian's 6-heart event.) The {{o|req}} condition can be a mail ID or dialogue answer ID; if not specified, it checks if the <samp>specialEventVariable1</samp> variable was set (''e.g.,'' by a <samp>question</samp> event command or <samp>%fork</samp> dialogue command). The new script should have the same format as a normal event script, but without the mandatory three start fields.
 
|-
 
|-
 
| <samp>friendship {{t|npc}} {{t|amount}}</samp>
 
| <samp>friendship {{t|npc}} {{t|amount}}</samp>
106,473

edits