Skip to content

Dialog ​

Shows the text that someone says

Parameters ​

ИмяTypeOptionalDescription
personstring⭕Person ID, any name, or undefined
contentTextContent❌Dialog text
emotionstring✔️Person Emotion

Usage ​

ts
engine.script({
  start: [
    engine.action.dialog(
      "character id",
      "Show mini-person with 'happy' emotion",
      "happy"
    ),
    engine.action.dialog("???", engine.t("UnknownPersonLyrics")),
    engine.action.dialog(undefined, "No Name!"),
    engine.action.dialog("character id", "You'r age is {{age}}"),
  ],
});

Released under the ISC License.