How do I make something happen when a number changes?
Add a behavior. A behavior is "if this, then that", and the engine runs it without the AI. If affection is set to open a secret at 80, it opens at exactly 80.
- On the canvas, click + Behavior in the Add row at the bottom of the card.
- Set When it fires to Variable crosses threshold. Pick the variable, Rises above and the number.
- Click Add an effect and pick what happens.
| Effect | What it does |
|---|---|
| Show notification | Pops a note up for the player |
| Change variable | Sets, adds, subtracts, multiplies, toggles or appends |
| Tell the AI | Slips the AI a line the player can't see |
| Enable lore entry | Opens a piece of standby lore |
| Play music / Play sound effect | Starts a track |
| Unlock a moment | Gives the player a card with a title and a picture |
| Enable/disable scenario | Opens or closes a dungeon or chapter |
One behavior can have several effects, and they run in order.
Variable crosses threshold fires once, at the moment the number crosses the line. Variable changes fires every time the value changes. For "warn me when health drops below 20", use the threshold.
ONLY IF adds conditions, such as coins being at least 5. Under the other options, Max fires set to 1 makes it a one-off, and Cooldown sets the fewest turns between firings.
A playtest shows why a behavior did not fire, for example "Affection is 62 / needs 80, 18 to go".
