How it works
Tags and who holds them
What a tag is, the kinds of tag, which things hold tags, and when their values are set.
Tags are what your adventure remembers: how many coins the player has, whether a door is open, which character is leading. Two ideas make tags work: a tag is defined once, and its value lives on whatever holds it.
Defined once, held by many
You define a tag on a page under Data in the navigator, such as Value tags: its name, its kind and the value it starts with.
The value lives on a holder. The adventure can hold a tag, and so can a scene, an event, a character, a prop, an ability and other things. Each holder keeps its own value: if two characters hold the tag Health, each has its own Health.
| Kind of tag | Holds |
|---|---|
| Value tags | A number or some text |
| Asset tags | A picture |
| Reference tags | A pointer to something: a character, a scene, a prop and so on |
| List tags | A list of items, in order |
| Choice tags | One or several picks from a set of options |
Starting values
A holder gets its tags, and their starting values, from:
- The adventure: Adventure details › Tags. Every new playthrough starts with these values.
- A scene or an event: the inspector's Initial Tags section. A scene's are set each time the player goes to it with Start Scene; an event's each time it starts.
A starting value shown grayed, such as 0 (from tag), is the tag's own Default Value.
Reading and changing a tag
In the logic editor, pick a tag through its holder: Adventure › Tags › the tag for the adventure's, This (Scene) or This (Event) for the scene's or event's own.
- Changing a tag on a holder that doesn't have it yet adds it there, at the tag's Default Value, then changes it: += 1 on a new number tag gives 1.
- Checking a tag a holder doesn't have fails, whatever the comparison, even !=. That's why Remember what the player did gives the adventure its tag at the start.
A number tag can have a Minimum and a Maximum: changes never take it past them.
How long values last
The adventure's tags last for the whole playthrough, and a saved game keeps every holder's tags. A new playthrough starts again from the starting values.
Watch tags while you play-test
While play-testing, click Panel in the play bar (or press F1). In the Adventure tab, open your adventure's
row, then Tags: each tag and its value. Add adds a tag, a value can be changed in place, and Remove takes a
tag away, to try things out.
