five-on-it / packages/missions/src/schema / Reply
Interface: Reply
Defined in: packages/missions/src/schema.ts:1254
A reply a phone message offers: what the player answers, an if checked when it is picked (failText answers when it does not hold, and the reply is not sent), the actions it runs when it does.
Properties
do?
optionaldo?: ({showText:string; } | {sendMessage: {from:string;id?:string;text:string; }; } | {setFlag:string; } | {clearFlag:string; } | {startTimer: {id:string;seconds:number; }; } | {stopTimer:string; } | {add: {counter:string;value:number| {counter:string; } | {timeLeft:true; } | {elapsed:true; } | {count: {players: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; } | {enemies: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; } | {vehicles: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; } | {items: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; }; } | {distance: ["player"| {actor:string; } | {place:string; } | {team:string; },"player"| {actor:string; } | {place:string; } | {team:string; }]; } | {health:"player"| {actor:string; } | {place:string; } | {team:string; }; } | {wanted:true; } | {phaseOf:string; } | {phase:"search"|"normal"|"alert"|"caution"|"suspicious"; } | {kills:true; } | {alerts:true; } | {seen:true; } | {form:string; } | {time:true; }; }; } | {set: {counter:string;value:number| {counter:string; } | {timeLeft:true; } | {elapsed:true; } | {count: {players: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; } | {enemies: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; } | {vehicles: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; } | {items: {caught?: ... | ...;group?: ... | ...;in?: ... | ...;near?: ... | ...;tag?: ... | ...;team?: ... | ...; }; }; } | {distance: ["player"| {actor:string; } | {place:string; } | {team:string; },"player"| {actor:string; } | {place:string; } | {team:string; }]; } | {health:"player"| {actor:string; } | {place:string; } | {team:string; }; } | {wanted:true; } | {phaseOf:string; } | {phase:"search"|"normal"|"alert"|"caution"|"suspicious"; } | {kills:true; } | {alerts:true; } | {seen:true; } | {form:string; } | {time:true; }; }; } | {spawn: {at?:string;count?:number;group:string; }; } | {setWanted:number; } | {give: {count:number;item:string; }; } | {take: {count?:number;tag:string; }; } | {lock: {door:string; }; } | {unlock: {door:string; }; } | {lockVehicle:string; } | {unlockVehicle:string; } | {giveKey:string; } | {spawnItem: {at:string;count:number;item:string; }; } | {alert: {npc?:string; }; } | {calm: {npc?:string; }; } | {cameraOff: {camera:string; }; } | {cameraOn: {camera:string; }; } | {reward: {cash:number;rep:number; }; } | {complete:true; } | {fail:true| {text:string; }; } | {win:string; } | {message: {choices?:Reply[];from:string;id?:string;text:string; }; } | {call: {dialogue:string;from:string; }; } | {addContact: {contact:string;dialogue?:string; }; } | {removeContact:string; } | {installApp:string; } | {removeApp:string; } | {waypoint:string; } | {clearWaypoint:true; } | {setClock:string; } | {setPace:number; } | {setWeather: {intensity:number;kind:"clear"|"overcast"|"rain"|"storm"|"fog"|"snow";minutes?:number;over:number; }; } | {skipTime: {hours:number;text?:string; }; } | {setSignal: {group?:"north-south"|"east-west";junction:string;seconds?:number;state:"green"|"red"|"flashing"|"auto"; }; })[]
Defined in: packages/missions/src/schema.ts:1262
Run when picked and the if holds.
failText?
optionalfailText?:string
Defined in: packages/missions/src/schema.ts:1264
What the contact answers when the if does not hold.
id
id:
string
Defined in: packages/missions/src/schema.ts:1256
Its id, unique in the message.
if?
optionalif?:Condition
Defined in: packages/missions/src/schema.ts:1260
Checked when picked.
text
text:
string
Defined in: packages/missions/src/schema.ts:1258
What the player answers (up to 60 characters).