five-on-it / packages/missions/src/schema / MissionStart
Variable: MissionStart
constMissionStart:ZodUnion<readonly [ZodObject<{on:ZodLiteral<"join">; },$strict>,ZodObject<{on:ZodLiteral<"enter">;zone:ZodString; },$strict>,ZodObject<{from:ZodString;on:ZodLiteral<"message">;text:ZodOptional<ZodString>; },$strict>,ZodObject<{from:ZodString;on:ZodLiteral<"call">;text:ZodOptional<ZodString>; },$strict>]>
Defined in: packages/missions/src/schema.ts:1527
How a mission starts, once it is available (no mission under way, every mission its after names completed): when the player joins (in document order), when the player enters a zone, when they read the message one of its contacts sends them (message: its text, else the mission's blurb, else its title), or when they answer the call one of its contacts makes (call: the contact says its text, else the blurb or the title; a call missed or declined rings again a minute later).