This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
placeholder_expression [2017/06/01 08:46] – justin | placeholder_expression [2021/04/21 20:23] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | **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. These 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 |
- | In regards | + | <WRAP center round info 100%> |
+ | Since placeholder expressions are parsed during a [[script|script' | ||
+ | </ | ||
- | < | + | In regards to usage, the expression must be enclosed using the following syntax consisting of a dollar sign and curly braces: |
+ | |||
+ | < | ||
${expression} | ${expression} | ||
</ | </ | ||
Line 13: | Line 17: | ||
====Example: | ====Example: | ||
- | < | + | < |
- | display_message(" | + | display_message(" |
</ | </ | ||
~~NOTOC~~ | ~~NOTOC~~ |