Skip to content

Events & Quests ​

This is how the story and the rules of the world are told. Three systems work together:

Start here

Build your first quest (kill three wolves, hand in, get paid): it uses the quest editor, a conversation, an NPC and a world, about 20 minutes.

  • An event is "when this happens, if that is true, do these things". It is the general tool: open a door when the switch is flipped, spawn bandits when the party enters the forest road, set a flag when the king dies.
  • A quest is something the player takes on: objectives to complete, rewards, requirements, what happens if it is failed or given up.
  • A conversation (in Behaviors) is how a quest is usually offered and handed in.
PageWhat it covers
EventsThe Events editor: triggers, conditions, actions, local variables
Local EventsThe small events of a place (a plate opens a door), made with the world open, with wires in the viewport
Event triggersEvery trigger, by category
Event actionsEvery action, by category
QuestsThe Quests editor: objectives, rewards, requirements, repeating, failing, giving up
Quest LinesQuests in steps that make a story
Global VariablesNamed values that events, conditions and quests share, and that are saved
PopupsMessages, tutorials and toasts built as scenes

The conditions are in Conditions, the requirements and rewards that quests use in Requirements and Rewards.

How they fit together ​

text
          the world                        the game
   a trigger area is entered ─┐
   an NPC dies ─────────┤   Event          Quest objective
   a timer runs out ────┼─► triggers ───►  (uses a trigger too:
   a quest completes ───┘     │             "kill 3 wolves")
                              ▼
                      conditions hold?  (the "if")
                              │ yes
                              ▼
                  actions, one after another
        spawn · open a door · start a quest · set a variable · show a popup

A trigger listens to something in the game. The same triggers are used by events (to start them) and by quest objectives (to complete them): "kill 3 wolves" is an objective with an Entity Death Type trigger and a count of 3. This is why there is one list of triggers, not two.

The run-time state is separate from your data ​

The events, quests and quest lines you make in the editor are definitions; they are never changed while the game runs. When a game starts, the game makes working copies of them. The copies hold the state: which events have run, which quests are active, how many wolves have been killed. The state is saved with the game, and a new game starts from the definitions again. (This is the definition and instance split.)

Good to know ​

  • A game start trigger fires once per game. Not on a load, and not each time the party changes world.
  • Triggers survive a change of world. They are taken off before the old world goes and put back in the new one, and a kill count keeps its count.
  • Time waits count on the running game clock. A cooldown of 24 hours takes 24 hours of game time, also if the time was skipped with an action.
  • An action that cannot do its job fails, and its event with it. It does not wait for ever.
  • Words in text. The texts of quests and conversations can use <player name>, <npc name>, <quest name> and a few more: see Quests.

See also ​