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.

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 must be escaped with backslashes.

Example:

display_message("Hello world! This is a string. ${global.property[\"test\"]}")
placeholder_expression.1496331268.txt.gz · Last modified: 2017/06/01 08:34 by justin