five-on-it / packages/missions/src/schema / DialogueChoice
Variable: DialogueChoice
constDialogueChoice:ZodObject<{do:ZodOptional<ZodArray<ZodUnion<readonly [ZodObject<{showText:ZodString; },$strict>,ZodObject<{sendMessage:ZodObject<{from:ZodString;id:ZodOptional<...>;text:ZodString; },$strict>; },$strict>,ZodObject<{setFlag:ZodString; },$strict>,ZodObject<{clearFlag:ZodString; },$strict>,ZodObject<{startTimer:ZodObject<{id:ZodString;seconds:ZodNumber; },$strict>; },$strict>,ZodObject<{stopTimer:ZodString; },$strict>,ZodObject<{add:ZodObject<{counter:ZodString;value:ZodUnion<...>; },$strict>; },$strict>,ZodObject<{set:ZodObject<{counter:ZodString;value:ZodUnion<...>; },$strict>; },$strict>,ZodObject<{spawn:ZodObject<{at:ZodOptional<...>;count:ZodOptional<...>;group:ZodString; },$strict>; },$strict>,ZodObject<{setWanted:ZodNumber; },$strict>,ZodObject<{give:ZodObject<{count:ZodDefault<...>;item:ZodString; },$strict>; },$strict>,ZodObject<{take:ZodObject<{count:ZodOptional<...>;tag:ZodString; },$strict>; },$strict>,ZodObject<{lock:ZodObject<{door:ZodString; },$strict>; },$strict>,ZodObject<{unlock:ZodObject<{door:ZodString; },$strict>; },$strict>,ZodObject<{lockVehicle:ZodString; },$strict>,ZodObject<{unlockVehicle:ZodString; },$strict>,ZodObject<{giveKey:ZodString; },$strict>,ZodObject<{spawnItem:ZodObject<{at:ZodString;count:ZodDefault<...>;item:ZodString; },$strict>; },$strict>,ZodObject<{alert:ZodObject<{npc:ZodOptional<...>; },$strict>; },$strict>,ZodObject<{calm:ZodObject<{npc:ZodOptional<...>; },$strict>; },$strict>,ZodObject<{cameraOff:ZodObject<{camera:ZodString; },$strict>; },$strict>,ZodObject<{cameraOn:ZodObject<{camera:ZodString; },$strict>; },$strict>,ZodObject<{reward:ZodObject<{cash:ZodDefault<...>;rep:ZodDefault<...>; },$strict>; },$strict>,ZodObject<{complete:ZodLiteral<true>; },$strict>,ZodObject<{fail:ZodUnion<readonly [ZodLiteral<...>,ZodObject<..., ...>]>; },$strict>,ZodObject<{win:ZodString; },$strict>,ZodObject<{message:ZodObject<{choices:ZodOptional<...>;from:ZodString;id:ZodOptional<...>;text:ZodString; },$strict>; },$strict>,ZodObject<{call:ZodObject<{dialogue:ZodString;from:ZodString; },$strict>; },$strict>,ZodObject<{addContact:ZodObject<{contact:ZodString;dialogue:ZodOptional<...>; },$strict>; },$strict>,ZodObject<{removeContact:ZodString; },$strict>,ZodObject<{installApp:ZodString; },$strict>,ZodObject<{removeApp:ZodString; },$strict>,ZodObject<{waypoint:ZodString; },$strict>,ZodObject<{clearWaypoint:ZodLiteral<true>; },$strict>,ZodObject<{setClock:ZodString; },$strict>,ZodObject<{setPace:ZodNumber; },$strict>,ZodObject<{setWeather:ZodObject<{intensity:ZodDefault<...>;kind:ZodEnum<...>;minutes:ZodOptional<...>;over:ZodDefault<...>; },$strict>; },$strict>,ZodObject<{skipTime:ZodObject<{hours:ZodNumber;text:ZodOptional<...>; },$strict>; },$strict>,ZodObject<{setSignal:ZodObject<{group:ZodOptional<...>;junction:ZodString;seconds:ZodOptional<...>;state:ZodEnum<...>; },$strict>; },$strict>]>>>;failText:ZodOptional<ZodString>;id:ZodString;if:ZodOptional<ZodType<Condition,unknown,$ZodTypeInternals<Condition,unknown>>>;next:ZodOptional<ZodString>;text:ZodString; },$strict>
Defined in: packages/missions/src/schema.ts:1401
A choice of a conversation: what the player says, an if checked when it is picked (failText answers when it does not hold, and the conversation stays where it was), the actions it runs, the node it leads to (none: the conversation ends there).