Skip to content

five-on-it / packages/missions/src/schema / EVENT_PATTERN

Variable: EVENT_PATTERN ​

const EVENT_PATTERN: RegExp

Defined in: packages/missions/src/schema.ts:1158

The events a rule can wait for: the mission's start, completion and failure; an objective's start, completion and failure; the player entering or leaving a zone; the player getting into or out of a mission vehicle's driving seat, the vehicle being wrecked, or carjacked (its driver pulled out, by anyone), unlocked (by its key, an unlockVehicle, or picked), its lock picked, stored or resprayed in a garage; the player entering a garage actor's bay; a timer running out; the player picking up, dropping or giving (into a container) an item, by the item's id; the player opening or shutting a door actor, or a door actor being unlocked (by its key, its code, an unlock); the player opening a container actor or a terminal actor's screen; a conversation ending, declined (a call declined, let ring out or hung up, a face-to-face one walked away from) or one of its choices picked; a button of an app pressed (its if held); the player walking or driving into a restricted zone (trespass); an item bought at a shop; a race's gate, lap and finish passed by the player; a junction switched by hand (signal:<place>.switched) and back to its plan (.restored); the room clock passing a time (time:HH:MM; after a skip, only the times of its last hour); the weather turning to a kind (weather:<kind>); a prop actor knocked loose (prop:<id>.destroyed); a message with an id read on the phone (message:<id>.read); the player's Wanted level changing (wanted:changed), going up or down (wanted:up, wanted:down) or reaching so many stars (wanted:0 … wanted:5).