CONTENT CONTRACT · VERSION 1
DialogueDefinition
A conversation graph with one NPC; choices only produce dialogue_choice events.
Signature
{ entries: {DialogueEntry}, id: ContentId, initial_node: Name, nodes: {DialogueNode}, npc: NpcId }Fields
| Name | Type | Meaning |
|---|---|---|
entries | {DialogueEntry} | Greetings by quest state, first match wins; none: the initial node. Items: 0…64 |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
initial_node | Name | Node shown first. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
nodes | {DialogueNode} | Nodes with unique IDs. Items: 1…256; Unique entries |
npc | NpcId | NPC definition the dialogue belongs to. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: npc |