Skip to content

Automated Events

What are events

The simplest definition for an event is: Something that happens in the world that has an outcome. The outcome can be positive or negative (or successful or failed), is influenced by player interaction and grants a reward to all players involved if successful.

Types of events

Events can consist of one or more phases that run in sequence or parallel. A phase is a discrete step in the event. Examples of phases:

  • Escort an NPC from point A to point B
  • Kill X to gather Y and return to Z
  • Gather X to return to Y
  • Defeat waves of monsters
  • Defeat a boss monster
  • Talk to an NPC and select the correct dialogue option
  • Break down a structure

How will Events be defined

Inside each map folder, for instance server/config/maps/city we will be able to place an 'events.js' file. This file will define:

  • How often the event repeats
  • A list of event phases, with configuration options for each phase (phase type, success condition, phase duration, etc.)
  • The rewards for successful completion of the event