Text Notation
Text notation is a set of embeddable notations usable in the text field of the "Show Text", "Add Choice", and "Add Button" event content. You can embed variables, character names, item names, parameter values, line breaks, and more inside the text.
TIP
When you select any of the three event content items above in the editor, you can find the same information inside the editor by pressing the "Text Notation Help" button at the bottom of the properties panel.
Introduction
In the text field of text-oriented event content ("Show Text", "Add Choice", "Add Button"), you can embed not only plain text but also the following information.
- Variable values ("Your gold is 100")
- Character / item names ("Hero Kanami used a Potion!")
- Parameter values ("HP is 50 / 100")
- Current event flags (
"true"/"false")
The three event content items use the same notation for these features.
Scope:
| Event content | Text notation usable in the text field |
|---|---|
| Show Text | ✅ Yes |
| Add Choice | ✅ Yes |
| Add Button | ✅ Yes |
Embedding Variables
User variables
Use {variable_name} to embed the value saved by "Assign Variable" or "Show Number Input" event content as-is.
| Notation | Example | Expanded result |
|---|---|---|
{variable_name} | Your gold is {gold} | Your gold is 100 |
{"variable_name"} | {"player_name"} | "Taro" (quotes added, for use when treating as a string inside a formula) |
Constant variables
| Notation | Example | Expanded result |
|---|---|---|
{c.time} | Play time: {c.time} | Play time: 01:23:45 (HH:MM:SS total play time) |
Embedding Character / Item / State / Parameter Names
Use the @-prefixed notation to embed the name (display name). If translation data exists, multi-language display is automatic (see Translation / Multi-language).
Character names
| Notation | Meaning | Example |
|---|---|---|
{@char.<char ID>} | Specify by the key defined in the Char tab | {@char.KANAMI} → Kanami |
{@char.MEM_N} | N-th party member (N=0,1,2,...) | {@char.MEM_0} → First member's name |
{@char.OPP_N} | N-th enemy group member | {@char.OPP_0} → First enemy's name |
Clamping behavior
If you specify a number that is too large, such as {@char.MEM_99}, it is clamped to the last member (large numbers are not ignored; the end is returned instead).
Item / Attach / State / Parameter names
| Notation | Meaning | Example |
|---|---|---|
{@item.<item ID>} | Specify by the key defined in the Item tab / Attach tab | {@item.IT_POTION} → Potion |
{@state.<state ID>} | Key defined in the State tab | {@state.POISON} → Poison |
{@param.<parameter ID>} | Key defined in the Parameter tab (display name) | {@param.HP} → HP (or translated name) |
Nested expansion
With {@<kind>.{variable_name}}, you can use a variable's value as the key for the @ notation.
Example: when variable party_leader contains "KANAMI",
{@char.{party_leader}} → {@char.KANAMI} → KanamiBehavior when unresolved
If the corresponding ID does not exist, the notation is replaced with an empty string, and during development you are notified in the editor (the raw notation is never shown to the player).
Embedding Parameter Values
Using the form <reference>.<parameter key>[.detail property], you can embed a parameter's numeric value. For reference meanings, see the Formula Reference.
Practical references in the text field
| Reference | Meaning |
|---|---|
PARTY.<parameter> / PRT.<parameter> | Party-shared parameters (GOLD etc., group ON targets) |
TROOP.<parameter> / TRP.<parameter> | Enemy group-shared parameters |
MEM_0.<parameter> MEM_1.<parameter> ... | N-th party member |
OPP_0.<parameter> OPP_1.<parameter> ... | N-th enemy member |
MEMS_AVG.<parameter> | Average over all party members |
MEMS_MAX.<parameter> / MEMS_MIN.<parameter> | Max / min over all party members |
OPPS_AVG.<parameter> / OPPS_MAX.<parameter> / OPPS_MIN.<parameter> | Aggregation over all enemies |
CHARS_AVG.<parameter> / CHARS_MAX.<parameter> / CHARS_MIN.<parameter> | Aggregation over all characters |
Detail properties (optional, default .NOW)
| Detail | Meaning |
|---|---|
.ROOT | Character parameter max value only (equipment / state excluded) |
.BASE | Max value + equipment (state excluded) |
.MAX | Max value + equipment + state additions (all) |
.NOW | Current value (default when omitted) |
.RATE | Current / MAX (0.0-1.0) |
Reserved parameters
| Notation | Meaning |
|---|---|
MEMS.COUNT / OPPS.COUNT / CHARS.COUNT | Number of targets |
Decimal point display
Parameter values that are effectively integers omit the decimal point in the display.
| Actual value | Display |
|---|---|
100.0 | 100 |
1.5 | 1.5 (as-is) |
0.0 | 0 |
References not usable in the text field
The following always return 0 (because the context during text display is fixed).
| Reference | Alternative |
|---|---|
SELF.* / SLF.* | Use PARTY.* or MEM_0.*, etc. |
USER.* / USR.* | Same as above |
TGT.* / TARGET.* | The target is unknown at text display time, so these cannot be used |
TGTS.* | Same as above |
ACT_ITEM.* | Only for action-order formulas |
GROUP.* / GRP.* | Always equivalent to PARTY.* |
OPP_GROUP.* | Always equivalent to TROOP.* |
Embedding Local Flags (Event Switches)
The current event object's LOCAL.A through LOCAL.Z flags are expanded to the strings "true" / "false".
| Notation | Expanded result |
|---|---|
LOCAL.A | "true" or "false" |
LOCAL.B – LOCAL.Z | Same |
Toggle ON / OFF via the "Set Local Flag" event content. Each event has an independent set of 26 boolean flags (details: Formula Reference - Local Flags).
Line Breaks / Symbol Escapes
| Notation | Expanded result | Use |
|---|---|---|
[LF] | Line break | In the "Show Text" editor, pressing Enter is automatically saved as [LF] |
[COMMA] | , | For CSV output escaping, etc. |
[DQUOT] | " | For escaping double quotes |
Expansion Order and Important Constraints
Expansion order
Text is expanded in this order:
- Variable expansion: Expand
{variable_name}{"variable_name"}{c.time}{@char.*}{@item.*}{@state.*}{@param.*} - Local flag expansion: Convert
LOCAL.[A-Z]to"true"/"false" - Reference expansion: Convert
PARTY.STRMEM_0.HPetc. to numbers (decimal point omitted) - Escape restoration: Restore
[LF][COMMA][DQUOT]to actual characters (right before display)
Because of this, if a variable's contents is a string such as LOCAL.A, it is re-evaluated as LOCAL after expansion (nesting is supported, up to 100 times).
Relationship with translation
In "Show Text", the entire expanded text goes through translation processing. If the expanded string hits a translation key as-is, the translation is applied.
To translate, register the final text after special notation expansion as the key in the translation data (details: Translation / Multi-language).
Behavior when unresolved
| Notation | Expanded result |
|---|---|
{@char.nonexistent key} | Replaced with the empty string |
PARTY.nonexistent parameter | 0 |
{nonexistent variable} | The notation is left as-is (no error) |
{@<kind>.empty} | Empty string + developer notification (e.g. {@char.{undefined variable}} leading to {@char.}) |
Common Patterns
Dialogue with a character name
{@char.MEM_0}: Hello, traveling hero.Showing the current party status
Gold: PARTY.GOLD G[LF]
First member {@char.MEM_0}'s HP: MEM_0.HP / MEM_0.HP.MAXShowing enemy info
{@char.OPP_0} appeared![LF]
HP: OPP_0.HP / OPP_0.HP.MAXItem-acquisition effect
Got {@item.IT_POTION}!Dynamic display using variables
Your name is {player_name}, right?[LF]
Current score: {score}Local-flag branching dialogue (combined with formulas)
INFO
You cannot branch directly inside text. Place the alternatives on the branches of a "Conditional Branch" event content whose formula checks LOCAL.A == "true".
Showing the party's average level
Party average level: MEMS_AVG.LEVELFAQ (When Things Go Wrong)
{@char.MEM_0} displays as an empty string
- Cause: The party has no members
- Fix: Add members with the "Add Party Member" event content before the dialogue event
PARTY.STR becomes 0
- Cause: STR is a
group OFFparameter and is not registered in the party-shared storage - Fix: Use
group ONparameters (such as GOLD) for party-shared values. For individual parameters, specify a member likeMEM_0.STR
USER.STR becomes 0
- Cause: The context at text display time cannot identify a character
- Fix: Use explicit member numbers such as
MEM_0.STRorMEM_1.STR
A decimal point is displayed
- Cause: Values retrieved from a variable (
{var_1}) are not subject to decimal omission - Fix: Store an integer on the variable side. Alternatively, use
int(...)in "Assign Variable" to convert to an integer
Inserting a line break
- Pressing the Enter key in the editor automatically converts it to
[LF]on save - Typing
[LF]by hand also produces a line break
I want to display { or } as a literal character
- There is currently no escape notation for
{and} - Inserting a character that is not a valid variable name prevents it from being recognized as notation and it is displayed as-is (for example,
{ space }is not expanded)
Related references:
- Formula Reference — All references / detail properties / aggregation references
- Translation / Multi-language — How to add multi-language support
