Set Variable (Text)

Templated variant of Set variable for localizable strings. Resolves an ICU-format template against the current locale and assigns the result to a string variable. For the cross-cutting Condition and Timing properties shared by every event, see Event types.

The Set Variable Text event composer, expanded in the Node inspector.

Fields

Variable

The string variable to write. Pick from the editor’s variable picker.

The variable must exist in the project’s variable table and be declared as a string type.

Template

An ICU-format template string. Placeholders are filled at fire time against the current locale; see ICU format for the supported subset.

The resolved string is assigned to the variable identified by Variable.

Translator note

Optional note for translators (register, tone, placeholder semantics). Surfaced in the localization editor next to the source template. Has no runtime effect.

Max length

Optional advisory cap on the translated string length, in characters. Surfaced in the localization editor as a translator hint. Has no runtime effect; the runtime does NOT enforce truncation.

Use cases

A short status string. Pick the status variable from the Variable dropdown and write a short ICU template like Status: {status} into Template. Leave the translator fields empty. The template resolves at runtime against the current locale and writes directly into the variable.

A longer summary with translator guidance. Pick the summary variable in Variable and write a longer template that interpolates a few placeholders into Template. Fill in Translator note to flag the register and clarify what each placeholder means, then set Max length to a character cap so the localization editor flags translations that would overflow the space where the variable renders.

See also

Docs last synced: 2026-07-08
Screenshot viewer