User Tools

Site Tools


placeholder_expression

This is an old revision of the document!


Placeholder Expression


Placeholder expressions provide a way to insert dynamic values into 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:

${expression}

As with strings, any double quotation marks in the placeholder expression must be escaped with backslashes.

Example:

display_message("The value of property ABC is ${global.property[\"ABC\"]}")
placeholder_expression.1496332317.txt.gz · Last modified: 2017/06/01 08:51 by justin