Counters and Gauges
Counters, as the name suggests, allow you to count things. This can be useful, for example, to calculate a score, to count the number of times a player goes through a given sequence, or to symbolize health points.
Counters add complexity that makes certain types of exports impossible. To continue supporting these exports (Lunii and PDF), you can create your story in simplified mode. But in this case, counters will not be activated.
To create a counter, click on the Create a new counter button from the Variables tool. This will open this popup:
Counter creation popup.
The name of the counter will allow you to identify it in different parts of the editor (graph, conditions, etc.). The initial value is the value of the counter at the start of your story, and the min. and max. values are the limits that your counter cannot exceed.
The Variables tool also displays the list of counters already created:
List of counters.
From this list, you can modify the name, and the different values of all your counters. And by clicking on the button you can delete it.
Displaying Gauges
Gauges are visible counters on the reader's interface. They are placed in the game bar at the top left, like this:
Reader's game bar with a hero and a gauge.
By default, counters are invisible to the player and will rather be used to create conditions. But you can choose to display one or two on the reader's interface. To do this, simply activate the Display on interface option.
Counter with gauge.
With the position option, you can decide the display order of the gauges. Various types of gauges are available allowing you to modify their display on the reader:
It is also possible to add a condition on the gauge so that it only appears on the reader at certain times. This can be useful, for example, to display a number of health points only during a fight.
Displaying a Counter in Text
All counters can be displayed in the texts of sequences and choices. For more information, please refer to the next chapter.