This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
placeholder_expression [2021/04/11 20:29] – justin | placeholder_expression [2021/04/11 20:31] – 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. | ||
- | <WRAP center round info 100%> | + | <WRAP center round warn 100%> |
- | Since placeholder expressions are parsed at game time, they should be used sparingly to avoid potential slowdowns or hesitations during the execution of a [[script]]. When possible, it is recommended to store the expression into a variable and then use [[string|string concatenation]] to insert the value into the desired [[string]]. | + | Since placeholder expressions are parsed at game time, they should be used sparingly to avoid potential slowdowns or hesitations during the execution of a [[script]]. When possible, it' |
</ | </ | ||