Skip to content

Texts, tokens and pacing

Every text the reader sees can name a person, print a number, change with the world, and set its own pace. You write one text, and Intrigues fills it in when the text is shown.

Braces mark the parts Intrigues fills in. Everything outside braces is shown as you wrote it.

A Show Dialogue as you write it. The card shows the braces, not the filled-in text.

When this dialogue is shown to a conspirator who has 80 gold, and the target is Torsten, the reader sees: You came alone, Torsten. Then a short pause, then You can pay.

The same braces work in dialogue and announcement titles, texts, choices and buttons, in a scheme’s description, in the reason of a requirement, in the Message of a Log node, and in the descriptions of traits, ambitions, roles, policies, clans and cultures. A field that takes them says so in the node reference.

A token has a subject, a dot and a member: {target.Name}. The common subjects are:

Subject Means
conspirator The actor who started the scheme.
target The actor the scheme is against.
player The actor a player plays.
accomplices The scheme’s accomplices, as a list.
current The actor of the For Each Actor turn the node runs in.
scheme A variable of this scheme, such as {scheme.Spy}, or its odds and progress.
world A variable of the world, or the calendar.
text A named text, such as {text.feast_intro}.

Others read the world’s mind and clans: formula (a named number), reasons, opinion (as in {opinion @target @conspirator}), attitude, budget, relation, and this (the subject a text is shown for).

A subject alone prints the name: {target}.

Token Prints
{target.Name}, {target.FullName} The name. In a dialogue it is a link a reader can click.
{target.Age}, {target.Gender}, {target.Culture} That property.
{target.Clan}, {target.Family} The clan or the family.
{target.Role}, {target.Title} The court role and its title.
{target.PersonalRole}, {target.PersonalTitle} The calling, such as a doctor, and its title.
{target.Heir.Name}, {target.Spouse.Name} Another actor, and then that actor’s own members.
{target.Spouses} Every spouse, as a list.
{target.Gold} The actor’s own variable, here one called Gold.
{target.Clan.Tension} A variable of the actor’s clan. The same works for .Family.

See Variables and Actors.

Pronouns follow the actor’s gender: {target.he}, {target.him}, {target.his}, {target.hers} and {target.himself}. The female forms she, her and herself are read too.

A list prints its names in order: Erik, Erik and Runa, Erik, Runa and Ulf. {accomplices} is one. An empty list prints nothing. After a list only Count, First and Last may follow, as in {accomplices.Count} and {accomplices.First.Name}. {accomplices|commas} joins the names with commas only.

{world.Day} is the number of days passed since the game began. {world.Year}, {world.DayOfYear}, {world.Month} and {world.DayOfMonth} count from 1. Without a calendar the month is 1 and the day of the month is the day of the year, and {world.Date} reads Day 41 of Year 3. {world.MonthName}, {world.Weekday} and {world.Season} print nothing without a calendar, a week or a season. See Days, calendar and game speed.

A modifier follows a bar: {target.Name|upper}, lower, capital, plain (no link in a dialogue), short (a date in the calendar’s short form), commas (a list with commas only), or a number format such as {target.Gold|N0}.

To print a brace itself, write it twice: {{ and }}.

An {if} block shows its words only when a condition holds:

{if conspirator.Gold >= 100}You can afford it.{else if conspirator.Gold >= 50}It is tight.{else}You cannot pay.{end}
  • Use {else if …} and {else} for other cases, and close the block with {end}. {elseif} is read as {else if}. {endif}, {end if} and {/if} close it too.
  • Compare with =, ==, !=, <>, >, >=, < and <=. Numbers compare as numbers and text without regard to case.
  • A value alone is true when it is set and is not false or 0: {if target.Heir}.
  • Join conditions with and, or, not and parentheses.
  • Flags such as Alive, Dead, Male, Female and Player work as conditions: {if target.Male}him{else}her{end}.
  • has policy, has trait, has tradition, has tie, has memory, has ambition, has attitude and has relation ask the world’s social data, as in {if conspirator has policy Iron Oath}.

The same conditions, without braces, are written in a dialogue choice’s Available When. See Dialogues and announcements and Who? and condition lists.

A number next to a noun needs the right form. A plural block picks it:

{plural target.SpouseCount}{one}one spouse{other}{target.SpouseCount} spouses{end}

The branches are {zero}, {one}, {two}, {few}, {many} and {other}. A language uses the branches its way of counting needs. Always write {other}. A missing value, a value that is not a number, or a list reads as {other}.

A token that has no value prints nothing, as with a missing target, a role the actor does not hold, or a scheme variable outside a running scheme.

A token that names nothing, such as a typo in the subject or member, stays as you wrote it, so the mistake shows. The Studio checks texts and suggests the word you meant: Did you mean. See Problems, notes and validation.

{current} is known only while its node runs. In text that is formatted later, such as an objective or a scheme description, store the actor in a scheme variable first.

A dialogue is written letter by letter, and marks in the text shape that pace. They use the same braces and work inside {if} blocks.

Mark What it does
{pause}, {pause 1.5} Stops writing for half a second, or for the seconds you give.
{wait} Stops until the reader clicks.
{slow}, {fast}, {normal} Changes the writing speed from there on. The style’s factors are 0.5 and 2 at first.
{speed 1.5} Sets the speed to any factor.
{cue Name} A timed moment. It plays the style’s cue sound with that name, if it has one, and tells the game’s code.
{at 2.5} A voice mark: the voice reaches this point at second 2.5 of its clip.
{em}…{/em} Emphasis.
{shake}…{/shake}, {wave}…{/wave} Animated letters.

Marks print nothing outside a dialogue or an announcement. The words pause wait slow fast normal speed cue at em shake wave are reserved, so a value always has a subject: {world.Pause} is a variable.

Texts are written in Dialogues and announcements, in Schemes and in Requirements. The values come from Variables. To translate a story, see Translate your story by prompt.

Try it with Claude: “Rewrite the dialogue in Offer a Token so the king pauses before he names the price.” See How Claude builds content for how a draft is checked.