User Tools

Site Tools


placeholder_expression

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
placeholder_expression [2017/06/01 08:51]
justin
placeholder_expression [2020/07/30 09:41]
justin
Line 4: Line 4:
 **Placeholder expressions** provide a way to insert dynamic values into [[string|strings]] that will get evaluated at game runtime. Examples of supported values include entity properties, global properties, and arithmetical expressions. Placeholder expressions are currently only supported by the [[Display Message]] function. **Placeholder expressions** provide a way to insert dynamic values into [[string|strings]] that will get evaluated at game runtime. Examples of supported values include entity properties, global properties, and arithmetical expressions. Placeholder expressions are currently only supported by the [[Display Message]] function.
  
-In regards to usage, the expression must be enclosed using the following syntax, which consists ​of a dollar sign and curly braces:+In regards to usage, the expression must be enclosed using the following syntax ​consisting ​of a dollar sign and curly braces:
  
-<​code ​lua>+<​code ​bauxite>
 ${expression} ${expression}
 </​code>​ </​code>​
Line 13: Line 13:
  
 ====Example:​==== ====Example:​====
-<​code ​lua>+<​code ​bauxite>
 display_message("​The value of property ABC is ${global.property[\"​ABC\"​]}"​) display_message("​The value of property ABC is ${global.property[\"​ABC\"​]}"​)
 </​code>​ </​code>​
  
 ~~NOTOC~~ ~~NOTOC~~
placeholder_expression.txt ยท Last modified: 2020/07/30 09:41 by justin