29. Show a caption, name or changing value
ShowMessage is useful for narration or a short caption that does not belong to an ordinary character Line. Set its block Duration in seconds; applying the event writes the action’s duration in milliseconds.
{
"type":"ShowMessage",
"text":"Later that afternoon...",
"duration":2500,
"blockInput":false
}| Text token | Displayed value |
|---|---|
| @PlayerName | The active player’s display name. |
| @SceneName | The current scene name. |
| @Score | The score variable. |
| $$variable_id | The value of a project variable. |
For example, Welcome back, @PlayerName. follows the active player’s name. Tokens supply text; they do not change a variable. An unknown variable token remains visible so you can spot the missing definition or spelling error.
The cutscene’s input-lock option already controls ordinary gameplay input. A caption’s blockInput field is a separate local presentation decision; do not scatter extra locks through every caption unless you need them.
Caption appearance belongs to the relevant message/narrator interface. A title composed of several carefully positioned elements is usually better as an authored GUI.
