Skip to content

CinematicChoice beta ​

Interface of @v12-engine/engine

ts
export interface CinematicChoice

A player picked an answer of a choice of a cinematic on their screen (the engine's cinematicChoice event), as their screen said with the cinematicChoice command: the rules branch on it (waitFor(cinematicChoiceEvent, ...)), so that the story's branch is the same on every screen and in a replay

Members ​

choice ​

ts
choice: string;

The id of the answer picked

cinematic ​

ts
cinematic: string;

Which of the view's cinematics

player ​

ts
player: PlayerId;

Whose screen it was picked on

question ​

ts
question: string;

The choice's name in the cinematic (choice when it gave none), and the answer's id

timedOut ​

ts
timedOut: boolean;

Whether nobody picked and the time ran out on its default