User Tools

Site Tools


placeholder_expression

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 consisting 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.txt · Last modified: 2017/06/01 08:54 by justin