five-on-it / packages/missions/src/schema / Reply
Interface: Reply
Defined in: packages/missions/src/schema.ts:1515
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; } | {fuse:string; }; }; } | {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; } | {fuse:string; }; }; } | {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; }; } | {explode: {at:string;size:"small"|"medium"|"large"; }; } | {spawnObject: {at?:string;object:string; }; } | {removeObject:string; } | {repairVehicle:string; } | {npcDo: {do:"sit"|"dance"|"smoke"|"lie"|"lean"|"phone"|"point"|"handsUp"|"stop";npc:string;seconds?:number; }; } | {noise: {at:string;radius:number; }; } | {chaos: {at:string;event:"riot"|"bridge"|"blackout"|"petrol"; }; } | {setSignal: {group?:"north-south"|"east-west";junction:string;seconds?:number;state:"green"|"red"|"flashing"|"auto"; }; })[]
Defined in: packages/missions/src/schema.ts:1523
Run when picked and the if holds.
failText?
optionalfailText?:string
Defined in: packages/missions/src/schema.ts:1525
What the contact answers when the if does not hold.
id
id:
string
Defined in: packages/missions/src/schema.ts:1517
Its id, unique in the message.
if?
optionalif?:Condition
Defined in: packages/missions/src/schema.ts:1521
Checked when picked.
text
text:
string
Defined in: packages/missions/src/schema.ts:1519
What the player answers (up to 60 characters).