Skip to content

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.

  1. On the canvas, click + Behavior in the Add row at the bottom of the card.
  2. Set When it fires to Variable crosses threshold. Pick the variable, Rises above and the number.
  3. Click Add an effect and pick what happens.
EffectWhat it does
Show notificationPops a note up for the player
Change variableSets, adds, subtracts, multiplies, toggles or appends
Tell the AISlips the AI a line the player can't see
Enable lore entryOpens a piece of standby lore
Play music / Play sound effectStarts a track
Unlock a momentGives the player a card with a title and a picture
Enable/disable scenarioOpens 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".