Changes

Jump to navigation Jump to search
→‎Elsewhere: add a second action to examples so it's clear how to run more than one
Line 210: Line 210:  
<li>A [[Modding:Dialogue|dialogue string]] using the <samp>$action</samp> command. For example:
 
<li>A [[Modding:Dialogue|dialogue string]] using the <samp>$action</samp> command. For example:
 
<syntaxhighlight lang="js">
 
<syntaxhighlight lang="js">
"Mon": "Hi there! Here's 10g, don't spend it all once.#$action AddMoney 10"
+
"Mon": "Hi there! Here's 10g and a parsnip, don't spend it all once.#$action AddMoney 10#$action AddItem (O)24"
 
</syntaxhighlight></li>
 
</syntaxhighlight></li>
    
<li>An [[Modding:Event data|event script]] using the <samp>action</samp> command. For example:
 
<li>An [[Modding:Event data|event script]] using the <samp>action</samp> command. For example:
 
<syntaxhighlight lang="js">
 
<syntaxhighlight lang="js">
"{{ModId}}_Event": "continue/64 15/farmer 64 16 2 Abigail 64 18 0/pause 1500/speak Abigail \"Hi. Here's 10g.\"/action AddMoney 10/pause 500/end"
+
"{{ModId}}_Event": "continue/64 15/farmer 64 16 2 Abigail 64 18 0/pause 1500/speak Abigail \"Hi. Here's 10g and a parsnip.\"/action AddMoney 10/Action AddItem (O)24/pause 500/end"
 
</syntaxhighlight></li>
 
</syntaxhighlight></li>
    
<li>A [[Modding:Mail data|mail letter]] using the <samp>%action</samp> command. For example:
 
<li>A [[Modding:Mail data|mail letter]] using the <samp>%action</samp> command. For example:
 
<syntaxhighlight lang="js">
 
<syntaxhighlight lang="js">
"{{ModId}}_Letter": "Hey there!^Here's 10g. Take care!^  -Abigail%action AddMoney 10%%[#]A gift from Abigail"
+
"{{ModId}}_Letter": "Hey there!^Here's 10g and a parsnip. Take care!^  -Abigail%action AddMoney 10%% %action Additem (O)24%%[#]A gift from Abigail"
 
</syntaxhighlight></li>
 
</syntaxhighlight></li>
  
translators
8,446

edits

Navigation menu