Skip to content

Speaker

Someone who talks in dialogue: the name shown over what they say and their portrait, in a DialogueBox. A Dialogue on the same entity is said by them, and so is a line anywhere that starts with their name (“Guide: Over here!”), so the player can answer back. Put one on an empty entity for someone who isn’t in the level (a narrator, a voice on the radio).

Each is listed as its key in the scene file and the MCP tools, then its kind of value, its default and what it does.

  • name: text = null. The name shown over what they say, and that lines start with to be said by them. Empty uses the entity’s name. (Plain text: the speaker’s own name, which lines start with.) (Field: text.)
  • portraitImage: text = null. Their picture, shown in the box’s portrait while they talk. Empty shows no portrait. (A picture in Assets, e.g. “Sprites/back.png”.) (Field: an image.)

Not saved with the scene; scripts read them, and entity_get shows them as live while the game plays.

  • shownName: text. The name shown: Name, or the entity’s when that’s empty.

Scripts use it as Speaker: its methods, events and values that aren’t saved with the scene.