CONTENT CONTRACT · VERSION 1
start_dialogue
Start a dialogue session of a player with a living NPC in reach.
Signature
{ dialogue: DialogueId, kind: "start_dialogue", npc: ActorRef, player: PlayerRef }Fields
| Name | Type | Meaning |
|---|---|---|
dialogue | DialogueId | Dialogue whose npc matches the target. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: dialogue |
kind | "start_dialogue" | Discriminant |
npc | ActorRef | NPC the player talks to. Length: 1…256; Pattern: ^[\s\S]+$ |
player | PlayerRef | Player that talks. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"dialogue": "core:healer_greeting",
"kind": "start_dialogue",
"npc": "a2",
"player": "p1"
}