Skip to reading
The GUI Designer

Display variables and translate the wording

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

A label can show live game values. Use two dollar signs followed by the exact variable ID, such as $$score. The designer may show the token while you author; check the resolved result in gameplay.

Source table from Display variables and translate the wording, page 18
Element textExample during play
Score: $$scoreScore: 1.0
Objective: $$objectiveObjective: Find the missing winding key.
@PlayerNameThe active player character's name.

1. In Variable Designer, define score as Number starting at 0 and objective as String starting with your instruction.

2. Set Score Label's Text to Score: $$score.

3. Set Objective Label's Text to Objective: $$objective.

4. Run an action that changes a value, then check the label in a gameplay preview.

Figure 13. The score label after the Add a point event. A whole amount may be displayed with .0 after numeric arithmetic.

Translate text, keep IDs stable#

Use the Translate button beside the Text editor to work with that player-facing wording in the translation workflow. Keep variable tokens and IDs intact. Translating the sentence does not mean translating score into a different runtime key.

Try longer translated labels and accented characters with your chosen font. Buttons need enough space for the translated caption, not just the shortest English wording.

The element's Editor Name is for finding it in the studio. Text is what the player reads. Changing one does not automatically change the other.

Page 18 of 57Permalink
Go to page