Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Modding:Trigger actions
(view source)
Revision as of 21:29, 4 January 2024
3 bytes added
,
4 January
→Elsewhere
:
fix typo, tweak capitalization for consistency
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 and a parsnip, don't spend it all once.#$action AddMoney 10#$action AddItem (O)24"
+
"Mon": "Hi there! Here's 10g and a parsnip, don't spend it all
at
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 and a parsnip.\"/action AddMoney 10/
Action
AddItem (O)24/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>
Pathoschild
translators
8,438
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Modding
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version