Changes

Jump to navigation Jump to search
114 bytes added ,  18:36, 7 August 2020
Syntax correction for use of fork command (arguments in wrong order)
Line 374: Line 374:  
| Make the player eat an object
 
| Make the player eat an object
 
|-
 
|-
| <tt>fork {{t|event ID}} {{o|req}}</tt>
+
| <tt>fork {{o|req}} {{t|event ID}}</tt>
| End the current command script and starts a different script with the given ID, but only if the {{o|req}} condition is met. The {{o|req}} condition can be a mail ID or dialogue answer ID; if not specified, it checks if the <tt>specialEventVariable1</tt> variable was set (e.g. by a <tt>question</tt> event command or <tt>%fork</tt> 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. The {{o|req}} condition can be a mail ID or dialogue answer ID; if not specified, it checks if the <tt>specialEventVariable1</tt> variable was set (e.g. by a <tt>question</tt> event command or <tt>%fork</tt> dialogue command). The new script should have the same format as a normal event script, but without the mandatory three start fields. Example: <tt>/fork choseWizard finalBossWizard</tt> in the ''"Necromancer"'' script of Sebastian's 6-heart event.
 
|-
 
|-
 
| <tt>friendship {{t|npc}} {{t|amount}}</tt>
 
| <tt>friendship {{t|npc}} {{t|amount}}</tt>
30

edits

Navigation menu