Skip to content

chat beta ​

Function of @v12-engine/engine

ts
export declare function chat(world: World, player: PlayerId, text: string, to?: string, by?: string): void;

A player says a line (chatted): to their side, or to everyone, and to who watches either way. Spaces run together, and cut to the game's length (RuleSettings.talk); nothing for an empty line, a message for too many in a while; and as the beforeTalk hook lets it, which may change the words or who hears them