Changes

Jump to navigation Jump to search
→‎Dialogue changes: update for build 24015 (added $query)
Line 5,897: Line 5,897:  
| <samp>$action {{t|action}}</samp>
 
| <samp>$action {{t|action}}</samp>
 
| Run a [[Modding:Trigger actions|trigger action string]], like <samp>$action AddMoney 500</samp> to add {{price|500}} to the current player.
 
| Run a [[Modding:Trigger actions|trigger action string]], like <samp>$action AddMoney 500</samp> to add {{price|500}} to the current player.
 +
|-
 +
| <samp>$query {{t|query}}#{{t|if true}}&#124;{{t|if false}}</samp>
 +
| Show different dialogue text depending on the [[Modding:Game state queries|game state query]] in {{t|query}}. For example:
 +
<syntaxhighlight lang="js">
 +
"Mon": "$query !PLAYER_VISITED_LOCATION Current Mine#Did you know there's an old abandoned mine up in the mountain? Apparently it's crawling with monsters!|I heard you went into the old mines up in the mountain!#Did you find anything tasty?$h"
 +
</syntaxhighlight>
 
|-
 
|-
 
| <samp>$t {{t|topic ID}} {{o|day length}}</samp>
 
| <samp>$t {{t|topic ID}} {{o|day length}}</samp>
translators
8,445

edits

Navigation menu