Skip to content

Dialog beta ​

Class of @v12-engine/engine

ts
export declare class Dialog

What is said in a world

Members ​

constructor ​

ts
constructor(world: World);

Constructs a new instance of the Dialog class

say ​

ts
say(to: Audience, line: LineDef, run?: number): SaidLine;

Says a line, now. On its own it waits for nothing: in a sequence, talk says lines one after the other, each for as long as it lasts. run is the sequence that waits on it, which skipping the line hurries along

skip ​

ts
skip(player: PlayerId): void;

A player asks to skip the line they hear: it ends, and a conversation goes on to its next line. Only a line said to them alone can be: what others hear too goes on for them