How-to
React to something with a trigger
Run logic whenever something happens in the game, such as the player going into a scene.
Before you start
- Decide what to react to and what to do. This page counts the scenes the player goes into, in a number tag the
adventure holds, such as
Visits(Value tags, Adventure details › Tags).
Steps
- On the Adventure Builder, in the adventure's view, drag Trigger from the Add panel onto the canvas, and select it. The inspector shows Trigger type: leave it on Logic event.
- Click the Trigger Statement's Edit…. In the Trigger window, click Adventure, then, in the column of events, Navigates into any scene. Click Save.
- Click 0 logic lines… under it, then Add.
- In the Result window, next to Outcomes, click Add. Click Adventure › Tags › your tag, change =
to +=, then in the second row click Number, replace
0with1and pressEnter. - Click Save in the Outcome and Result windows, then in the logic list.
Check it worked
The trigger's inspector reads Adventure → Navigates into any scene and 1 logic line…. Play-test and open Panel › Adventure › your adventure › Tags: the tag went up by 1 when the first scene started.
Good to know
- A trigger on the adventure's view watches all the time; one inside a scene, only while that scene is current.
- Other events include Property Changes (a tag changed), Gets tag added and the player's keys. Trigger type › On Key Action reacts to a key from the Key Map page.
See also
Checked against main 9bb38dc, 2026-12-03Report a problem with this page