Skip to content

Voice beta ​

Interface of @v12-engine/client

ts
export interface Voice

The lines of someone who speaks. They are heard the way they were recorded, one at a time, and after a line the speaker keeps quiet for a moment: not every order gets an answer

Members ​

abilities ​

ts
abilities?: Record<string, string>;

When it casts, by the id of the ability, next to what the ability sounds like

attack ​

ts
attack?: string;

Told to attack

death ​

ts
death?: string;

In the place of death

move ​

ts
move?: string;

Told to go somewhere. In the place of order

respond ​

ts
respond?: (context: ResponseContext) => string | null | undefined | {
        sound: string | null;
        rest?: number;
    };

What it says when picked or sent, decided in code: a line for a long walk, another for the tenth click, quiet in a cutscene. A sound's name, null for nothing, or nothing for the line above. With how long it then keeps quiet