Changes

added missing $query dialogue command from 1.6 page
Line 424: Line 424:  
| <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"
 
|}
 
|}
  
21

edits