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.

  1. In the navigator, click the arrow beside Data, then click Value tags.
  2. Click New. A tag called New Value Tag appears in the list, with its name selected in the inspector.
  3. Type Lantern and press Enter.
  4. Leave Tag Type on Number, and leave Default Value off. The tag starts at 0.
The Value tags page with the Lantern tag selected, and its settings in the inspector

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.

  1. In the navigator, click the arrow beside My First Adventure, then click Adventure details.
  2. Under Tags, click + Add tags. The Add Tag window lists your tags.
  3. Click Lantern to tick it, then click Add 1 tag.
Adventure details, with Lantern under Tags and its Start showing 0 (from 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

  1. In the navigator, click My First Adventure. Double-click the Harbor card anywhere except its name, then double-click the Text Event card.

  2. Click an empty part of the canvas and press F.

  3. Click + Add choice at the bottom of the Choices card, type Buy a lantern, and press Enter.

  4. On the card, click Buy a lantern. On its row in the inspector, click ✎. The choice's window opens.

  5. Next to Outcomes, click Add. In the Result window, next to Outcomes, click Add.

  6. In the Category column, click Adventure. In the Adventure column, click Tags. In the Tag column, click Lantern.

  7. Leave = as it is. In the second row, click Number. In its box, replace 0 with 1 and press Enter. The top of the window reads Outcome: Adventure → Tag 'Lantern' = '1'.

    The Outcome window: Adventure, Tags and Lantern picked, = and the number 1
  8. 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.

  9. 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.

  1. In the bar above the canvas, click My First Adventure. Double-click Road, then Text Event.

  2. 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).

  3. Double-click the word darkness in the box. Under the box, click Create Text Logic. The Text Replacement Logic window opens.

    The road's line in the inspector, darkness selected, and Create Text Logic under the box
  4. Click Add. In the Result window, next to Outcomes, click Add.

  5. In the Category column, click Text. Leave =. In the second row, click String, click its box, type darkness, and press Enter. Click Save, then Save in the Result window.

  6. Click Add again. In the Result window, next to ▸ Conditions, click Add. The Condition window opens.

  7. Click Adventure, Tags, then Lantern. Leave ==. In the second row, click Number, replace 0 with 1, and press Enter. Click Save.

  8. Next to Outcomes, click Add. Click Text, leave =, click String, click its box, type lantern light, and press Enter. Click Save, then Save in the Result window.

    The Text Replacement Logic window with two lines: Text = darkness, then if Lantern is 1, Text = lantern light
  9. 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

  1. At the top right of the editor, click ⟲ Restart. If there's no ⟲ Restart, click ▶ Play.

  2. 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.

    Play mode: The road climbs into the hills. You walk in lantern light.
  3. Click the line. The adventure ends, and the title screen comes back.

  4. Click Play, click the line, then click Take the road. This time the line ends with You walk in darkness.

  5. 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

Checked against main 9bb38dc, 2026-12-03Report a problem with this page