Tutorial 20 minutes
Remember what the player did
Give the adventure a tag that remembers a choice, then change a line because of it.
What you'll make
The harbor gets a third choice, Buy a lantern. A tag called Lantern remembers it, and the road's line changes because of it. With the lantern, the player reads "You walk in lantern light." Without it, "You walk in darkness."
Before you start
- Finish Choices and endings. This tutorial carries on in the same adventure.
- Have My First Adventure open in the editor.
1. Make a tag
A tag is something the adventure remembers. A value tag holds a number or some text.
- In the navigator, click the arrow beside Data, then click Value tags.
- Click New. A tag called New Value Tag appears in the list, with its name selected in the inspector.
- Type
Lanternand pressEnter. - Leave Tag Type on Number, and leave Default Value off. The tag starts at 0.

The list shows Lantern, and the navigator's row now reads Value tags (1).
2. Start the adventure without a lantern
Every playthrough should start without a lantern. Give the adventure the tag, starting at 0, so it's there for the road to check.
- In the navigator, click the arrow beside My First Adventure, then click Adventure details.
- Under Tags, click + Add tags. The Add Tag window lists your tags.
- Click Lantern to tick it, then click Add 1 tag.

A Lantern row appears under Tags. Its Start box shows 0 (from tag): the tag's default value.
3. Sell a lantern at the harbor
In the navigator, click My First Adventure. Double-click the Harbor card anywhere except its name, then double-click the Text Event card.
Click an empty part of the canvas and press
F.Click + Add choice at the bottom of the Choices card, type
Buy a lantern, and pressEnter.On the card, click Buy a lantern. On its row in the inspector, click ✎. The choice's window opens.
Next to Outcomes, click Add. In the Result window, next to Outcomes, click Add.
In the Category column, click Adventure. In the Adventure column, click Tags. In the Tag column, click Lantern.
Leave = as it is. In the second row, click Number. In its box, replace
0with1and pressEnter. The top of the window reads Outcome: Adventure → Tag 'Lantern' = '1'.
Click Save. In the Result window, next to Outcomes, click Add again. Click Navigation, then Start Scene, and in the second row Adventure, Scenes and Road. Click Save.
Click Save in the Result window, then in the choice's window.
Clicking Adventure also shows a second row with its own Tags. That row belongs to a different outcome, Add. To change a tag's value, use Tags in the Adventure column.
Buy a lantern has an exit mark on the card, like Take the road: it sets the tag, then leaves for Road.
4. Light the road
Now the road's line changes with the tag. You turn one word of the line into text logic: logic that decides what the player reads there.
In the bar above the canvas, click My First Adventure. Double-click Road, then Text Event.
Click the Basic Text card. In the inspector's Main Text box, click at the end of the line and type
You walk in darkness.(with a space before You).Double-click the word darkness in the box. Under the box, click Create Text Logic. The Text Replacement Logic window opens.

Click Add. In the Result window, next to Outcomes, click Add.
In the Category column, click Text. Leave =. In the second row, click String, click its box, type
darkness, and pressEnter. Click Save, then Save in the Result window.Click Add again. In the Result window, next to ▸ Conditions, click Add. The Condition window opens.
Click Adventure, Tags, then Lantern. Leave ==. In the second row, click Number, replace
0with1, and pressEnter. Click Save.Next to Outcomes, click Add. Click Text, leave =, click String, click its box, type
lantern light, and pressEnter. Click Save, then Save in the Result window.
Click Save in the Text Replacement Logic window.
The Text Replacement Logic window listed two lines before you saved it: Text = 'darkness', then if Adventure → Tag 'Lantern' == '1' then Text = 'lantern light'.
Lines run from top to bottom, and each Text outcome replaces the one before. The first line gives the word its usual text. The second runs only when the condition holds, and changes it. If no line gives the word any text, the player sees nothing there.
5. Play both ways
At the top right of the editor, click ⟲ Restart. If there's no ⟲ Restart, click ▶ Play.
On the title screen, click Play. Click the line, then click Buy a lantern. The road's line ends with You walk in lantern light.

Click the line. The adventure ends, and the title screen comes back.
Click Play, click the line, then click Take the road. This time the line ends with You walk in darkness.
Click the line, then click ◀ Editor.
The second playthrough starts without a lantern: every playthrough starts with the tags on Adventure details, at their starting values.
What you learned
- A value tag remembers a number or some text. You make tags on Data › Value tags.
- Adventure details › Tags gives every playthrough its tags and their starting values.
- An outcome can change a tag: Adventure › Tags › the tag, = and a value.
- A condition lets a line of logic run only when a tag has a certain value.
- Text logic turns words of a line into logic that decides what the player reads.
Next
- A screen of your own, the next tutorial, gives the adventure a HUD with a Quit button.
- Value tags describes every part of the page where you made the tag.
- Text that reads tags explains text logic, including how to show a tag's value in a line.
- The logic editor covers lines, conditions and outcomes.