Skip to content

DialogClip beta ​

Interface of @v12-engine/client

ts
export interface DialogClip extends Clip, Omit<DialogLine, 'seconds' | 'ui'>

A line of the dialog lane

Members ​

choice ​

ts
choice?: string;

A choice's name (the param its answer is kept in), where the clip is one

default ​

ts
default?: string;

For a choice: the id of the answer taken when the time is up; the first when left out

key ​

ts
key?: string;

A message of the game's for the words (GameView.hud.messages, a translation's): what the player reads in their language, text where the game has no words for it. The editor's subtitles keep a line by it

options ​

ts
options?: ChoiceOption[];

For a choice: the answers offered

question ​

ts
question?: string;

For a choice: the question shown over the answers

seconds ​

ts
seconds?: number;

For a choice: the most seconds it waits for an answer

speaker ​

ts
speaker: string;

The speaker's id in the view's list of speakers (GameView.cinematics.speakers)

text ​

ts
text: string;

The words said

then ​

ts
then?: Record<string, string>;

Where it goes for each answer: marker:<name>, end or continue