Skip to content

Text tokens ​

A text token is a word in angle brackets that is replaced when the text is shown. Write Well met, <player name>! in a conversation and the player sees Well met, Aldric!. Tokens let one text work for every character, class and quest.

Where you can use them ​

Tokens work in the texts the player reads:

  • the name and description of a quest, its objectives and its hand-in text;
  • conversation chat and response texts;
  • the title and text of the default popup.

The editors say so in the tooltip of a field that takes tokens, and the tooltip lists them.

The tokens ​

TokenWhat it saysWorks in
<player name>The name of the player characterEverywhere
<player class>The class of the player characterEverywhere
<player level>The level of the player characterEverywhere
<party size>How many members the party hasEverywhere
<world name>The name of the world the player is inEverywhere
<zone>The zone the party is in: the top one, Elderwood when it is in The Old MillEverywhere
<sub zone>The sub-zone the party is in (the zone again when it is in no sub-zone)Everywhere
<npc name>The name of the NPC the player is talking toConversation text only
<quest name>The name of the questQuest text only
<quest level>The level of the questQuest text only
<progress>How far the objective is, a numberObjective text only
<target>How far the objective has to go, a numberObjective text only

"Bring me <target> wolf pelts, <player class>" becomes Bring me 10 wolf pelts, Mage. An objective text such as Wolf pelts: <progress> / <target> shows how far the player has got and how far the objective goes.

Rules ​

  • Capitals, underscores and spaces do not matter. <Player Name>, <player_name> and <player name> are the same token.
  • Something in angle brackets that is not a token is left as it is. <sigh> stays <sigh>. A typo such as <player nane> is not replaced either; the quest editor warns about the unknown words.
  • A token that has nothing to say gets a plain fallback, never a gap. A token outside the place it works in (an NPC name in a quest description) is filled with the fallback:
TokenFallback
<player name>Adventurer
<player class>adventurer
<player level>, <party size>, <quest level>?
<world name>this land
<zone>the wilds
<sub zone>this place
<npc name>someone
<quest name>the quest
<progress>0
<target>1

Not the same as effect placeholders ​

The <Effect1> and <EffectText1> placeholders of ability and effect descriptions look alike but are a separate thing, filled in from the effects the text belongs to. See Child effects and auras.

Tokens of your own ​

A game can add tokens with a little code, such as <guild name>. See Text tokens: how they are built (Advanced).

See also ​