CONTENT CONTRACT · VERSION 1
dialogue
A conversation graph with one NPC.
Signature
{ entries: {DialogueEntry}, id: ContentId, initial_node: Name, kind: "dialogue", 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}$ |
kind | "dialogue" | Discriminant |
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 |
Validated example
{
"entries": [
{
"node": "q46_turn_in",
"when": [
{
"quest": "core:leather_for_everyone",
"stages": [
"ready"
]
}
]
},
{
"node": "q48_turn_in",
"when": [
{
"quest": "core:scouts_in_the_woods",
"stages": [
"ready"
]
}
]
},
{
"node": "q46_offer",
"when": [
{
"quest": "core:leather_for_everyone",
"stages": [
"offered"
]
}
]
},
{
"node": "q48_offer",
"when": [
{
"quest": "core:scouts_in_the_woods",
"stages": [
"offered"
]
}
]
},
{
"node": "q46_underway",
"when": [
{
"quest": "core:leather_for_everyone",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q48_underway",
"when": [
{
"quest": "core:scouts_in_the_woods",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "moss_court_turn_in",
"when": [
{
"quest": "core:moss_court_quest",
"stages": [
"ready"
]
}
]
},
{
"node": "moss_court_no_room",
"when": [
{
"quest": "core:moss_court_quest",
"stages": [
"offered"
]
},
{
"max": 1,
"min": 1,
"variable": "core:moss_court_blocked"
}
]
},
{
"node": "moss_court_offer",
"when": [
{
"quest": "core:moss_court_quest",
"stages": [
"offered"
]
},
{
"max": 0,
"min": 0,
"variable": "core:moss_court_blocked"
}
]
},
{
"node": "moss_court_underway",
"when": [
{
"quest": "core:moss_court_quest",
"stages": [
"active"
]
}
]
},
{
"node": "q24_follow",
"when": [
{
"quest": "core:first_hunt",
"stages": [
"active"
]
},
{
"max": 2,
"min": 2,
"variable": "core:hunt_state"
}
]
},
{
"node": "q20_turn_in",
"when": [
{
"quest": "core:cold_forge",
"stages": [
"ready"
]
}
]
},
{
"node": "q20_offer",
"when": [
{
"quest": "core:cold_forge",
"stages": [
"offered"
]
}
]
},
{
"node": "q21_turn_in",
"when": [
{
"quest": "core:axe_for_nico",
"stages": [
"ready"
]
}
]
},
{
"node": "q21_offer",
"when": [
{
"quest": "core:axe_for_nico",
"stages": [
"offered"
]
}
]
},
{
"node": "q23_turn_in",
"when": [
{
"quest": "core:blade_and_bowstring",
"stages": [
"ready"
]
}
]
},
{
"node": "q23_offer",
"when": [
{
"quest": "core:blade_and_bowstring",
"stages": [
"offered"
]
}
]
},
{
"node": "q24_homeward",
"when": [
{
"quest": "core:first_hunt",
"stages": [
"ready"
]
},
{
"max": 3,
"min": 3,
"variable": "core:hunt_state"
}
]
},
{
"node": "q24_turn_in",
"when": [
{
"quest": "core:first_hunt",
"stages": [
"ready"
]
}
]
},
{
"node": "q24_offer",
"when": [
{
"quest": "core:first_hunt",
"stages": [
"offered"
]
}
]
},
{
"node": "q31_turn_in",
"when": [
{
"quest": "core:a_roof_for_fenn",
"stages": [
"ready"
]
}
]
},
{
"node": "q31_offer",
"when": [
{
"quest": "core:a_roof_for_fenn",
"stages": [
"offered"
]
}
]
},
{
"node": "q36_turn_in",
"when": [
{
"quest": "core:strangers_tracks",
"stages": [
"ready"
]
}
]
},
{
"node": "q36_offer",
"when": [
{
"quest": "core:strangers_tracks",
"stages": [
"offered"
]
}
]
},
{
"node": "q20_underway",
"when": [
{
"quest": "core:cold_forge",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q21_underway",
"when": [
{
"quest": "core:axe_for_nico",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q23_underway",
"when": [
{
"quest": "core:blade_and_bowstring",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q24_underway",
"when": [
{
"quest": "core:first_hunt",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q31_underway",
"when": [
{
"quest": "core:a_roof_for_fenn",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q36_underway",
"when": [
{
"quest": "core:strangers_tracks",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q04_turn_in",
"when": [
{
"quest": "core:four_walls",
"stages": [
"ready"
]
}
]
},
{
"node": "q07_turn_in",
"when": [
{
"quest": "core:stone_and_hearth",
"stages": [
"ready"
]
}
]
},
{
"node": "q09_turn_in_together",
"when": [
{
"quest": "core:roofs_for_everyone",
"stages": [
"ready"
]
},
{
"players_max": 64,
"players_min": 2
}
]
},
{
"node": "q09_turn_in",
"when": [
{
"quest": "core:roofs_for_everyone",
"stages": [
"ready"
]
}
]
},
{
"node": "q09_offer",
"when": [
{
"quest": "core:roofs_for_everyone",
"stages": [
"offered"
]
}
]
},
{
"node": "q04_underway",
"when": [
{
"quest": "core:four_walls",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q07_underway",
"when": [
{
"quest": "core:stone_and_hearth",
"stages": [
"active",
"ready"
]
}
]
},
{
"node": "q09_underway",
"when": [
{
"quest": "core:roofs_for_everyone",
"stages": [
"active"
]
}
]
}
],
"id": "core:david_talk",
"initial_node": "hello",
"kind": "dialogue",
"nodes": [
{
"choices": [
{
"id": "hand_in",
"text": "core:q04_hand_in",
"when": [
{
"quest": "core:four_walls",
"stages": [
"ready"
]
}
]
}
],
"emotion": "happy",
"id": "q04_turn_in",
"quest": "core:four_walls",
"text": "core:q04_david_turn_in"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q07_hand_in",
"when": [
{
"quest": "core:stone_and_hearth",
"stages": [
"ready"
]
}
]
}
],
"emotion": "happy",
"id": "q07_turn_in",
"quest": "core:stone_and_hearth",
"text": "core:q07_david_turn_in"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q09_hand_in",
"when": [
{
"quest": "core:roofs_for_everyone",
"stages": [
"ready"
]
}
]
}
],
"emotion": "love",
"id": "q09_turn_in",
"quest": "core:roofs_for_everyone",
"text": "core:q09_david_turn_in"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q09_hand_in_together",
"when": [
{
"quest": "core:roofs_for_everyone",
"stages": [
"ready"
]
}
]
}
],
"emotion": "love",
"id": "q09_turn_in_together",
"quest": "core:roofs_for_everyone",
"text": "core:q09_david_turn_in_together"
},
{
"choices": [
{
"id": "more",
"next": "q09_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "neutral",
"id": "q09_offer",
"quest": "core:roofs_for_everyone",
"text": "core:q09_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q09_accepted",
"text": "core:q09_accept",
"when": [
{
"quest": "core:roofs_for_everyone",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q09_offer_2",
"quest": "core:roofs_for_everyone",
"text": "core:q09_david_offer_2"
},
{
"choices": [
{
"id": "more",
"next": "q09_accepted_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "neutral",
"id": "q09_accepted",
"quest": "core:roofs_for_everyone",
"text": "core:q09_david_accepted"
},
{
"choices": [],
"emotion": "neutral",
"id": "q09_accepted_2",
"quest": "core:roofs_for_everyone",
"text": "core:q09_david_accepted_2"
},
{
"choices": [
{
"id": "lost_tools",
"next": "spare",
"text": "core:q04_lost_tool",
"when": [
{
"quest": "core:four_walls",
"stages": [
"active",
"ready",
"done"
]
}
]
}
],
"emotion": "sly",
"id": "q04_underway",
"quest": "core:four_walls",
"text": "core:q04_david_underway"
},
{
"choices": [
{
"id": "lost_tools",
"next": "spare",
"text": "core:q04_lost_tool",
"when": [
{
"quest": "core:four_walls",
"stages": [
"active",
"ready",
"done"
]
}
]
}
],
"emotion": "neutral",
"id": "q07_underway",
"quest": "core:stone_and_hearth",
"text": "core:q07_david_underway"
},
{
"choices": [
{
"id": "lost_tools",
"next": "spare",
"text": "core:q04_lost_tool",
"when": [
{
"quest": "core:four_walls",
"stages": [
"active",
"ready",
"done"
]
}
]
}
],
"emotion": "love",
"id": "q09_underway",
"quest": "core:roofs_for_everyone",
"text": "core:q09_david_underway"
},
{
"choices": [],
"emotion": "neutral",
"id": "spare",
"text": "core:q04_david_spare"
},
{
"choices": [
{
"id": "lost_tools",
"next": "spare",
"text": "core:q04_lost_tool",
"when": [
{
"quest": "core:four_walls",
"stages": [
"active",
"ready",
"done"
]
}
]
}
],
"emotion": "neutral",
"id": "hello",
"text": "core:bark_david_hum"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q20_hand_in",
"when": [
{
"quest": "core:cold_forge",
"stages": [
"ready"
]
}
]
}
],
"emotion": "happy",
"id": "q20_turn_in",
"quest": "core:cold_forge",
"text": "core:q20_david_turn_in"
},
{
"choices": [
{
"id": "more",
"next": "q20_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "neutral",
"id": "q20_offer",
"quest": "core:cold_forge",
"text": "core:q20_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q20_accepted",
"text": "core:q20_accept",
"when": [
{
"quest": "core:cold_forge",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q20_offer_2",
"quest": "core:cold_forge",
"text": "core:q20_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q20_accepted",
"quest": "core:cold_forge",
"text": "core:q20_david_accepted"
},
{
"choices": [],
"emotion": "happy",
"id": "q20_underway",
"quest": "core:cold_forge",
"text": "core:q20_david_underway"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q21_hand_in",
"when": [
{
"quest": "core:axe_for_nico",
"stages": [
"ready"
]
}
]
}
],
"emotion": "happy",
"id": "q21_turn_in",
"quest": "core:axe_for_nico",
"text": "core:q21_david_turn_in"
},
{
"choices": [
{
"id": "more",
"next": "q21_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "sad",
"id": "q21_offer",
"quest": "core:axe_for_nico",
"text": "core:q21_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q21_accepted",
"text": "core:q21_accept",
"when": [
{
"quest": "core:axe_for_nico",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q21_offer_2",
"quest": "core:axe_for_nico",
"text": "core:q21_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q21_accepted",
"quest": "core:axe_for_nico",
"text": "core:q21_david_accepted"
},
{
"choices": [],
"emotion": "sly",
"id": "q21_underway",
"quest": "core:axe_for_nico",
"text": "core:q21_david_underway"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q23_hand_in",
"when": [
{
"quest": "core:blade_and_bowstring",
"stages": [
"ready"
]
}
]
}
],
"emotion": "sly",
"id": "q23_turn_in",
"quest": "core:blade_and_bowstring",
"text": "core:q23_david_turn_in"
},
{
"choices": [
{
"id": "more",
"next": "q23_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "neutral",
"id": "q23_offer",
"quest": "core:blade_and_bowstring",
"text": "core:q23_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q23_accepted",
"text": "core:q23_accept",
"when": [
{
"quest": "core:blade_and_bowstring",
"stages": [
"offered"
]
}
]
}
],
"emotion": "nervous",
"id": "q23_offer_2",
"quest": "core:blade_and_bowstring",
"text": "core:q23_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q23_accepted",
"quest": "core:blade_and_bowstring",
"text": "core:q23_david_accepted"
},
{
"choices": [],
"emotion": "neutral",
"id": "q23_underway",
"quest": "core:blade_and_bowstring",
"text": "core:q23_david_underway"
},
{
"choices": [],
"emotion": "neutral",
"id": "q24_homeward",
"text": "core:q24_david_homeward"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q24_hand_in",
"when": [
{
"quest": "core:first_hunt",
"stages": [
"ready"
]
}
]
}
],
"emotion": "happy",
"id": "q24_turn_in",
"quest": "core:first_hunt",
"text": "core:q24_david_turn_in"
},
{
"choices": [
{
"id": "more",
"next": "q24_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "neutral",
"id": "q24_offer",
"quest": "core:first_hunt",
"text": "core:q24_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q24_accepted",
"text": "core:q24_accept",
"when": [
{
"quest": "core:first_hunt",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q24_offer_2",
"quest": "core:first_hunt",
"text": "core:q24_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q24_accepted",
"quest": "core:first_hunt",
"text": "core:q24_david_accepted"
},
{
"choices": [],
"emotion": "neutral",
"id": "q24_underway",
"quest": "core:first_hunt",
"text": "core:q24_david_underway"
},
{
"choices": [],
"emotion": "neutral",
"id": "q24_follow",
"quest": "core:first_hunt",
"text": "core:q24_david_follow"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q31_hand_in",
"when": [
{
"quest": "core:a_roof_for_fenn",
"stages": [
"ready"
]
}
]
}
],
"emotion": "love",
"id": "q31_turn_in",
"quest": "core:a_roof_for_fenn",
"text": "core:q31_david_turn_in"
},
{
"choices": [
{
"id": "more",
"next": "q31_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "sly",
"id": "q31_offer",
"quest": "core:a_roof_for_fenn",
"text": "core:q31_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q31_accepted",
"text": "core:q31_accept",
"when": [
{
"quest": "core:a_roof_for_fenn",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q31_offer_2",
"quest": "core:a_roof_for_fenn",
"text": "core:q31_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q31_accepted",
"quest": "core:a_roof_for_fenn",
"text": "core:q31_david_accepted"
},
{
"choices": [],
"emotion": "neutral",
"id": "q31_underway",
"quest": "core:a_roof_for_fenn",
"text": "core:q31_david_underway"
},
{
"choices": [
{
"id": "hand_in",
"text": "core:q36_hand_in",
"when": [
{
"quest": "core:strangers_tracks",
"stages": [
"ready"
]
}
]
}
],
"emotion": "nervous",
"id": "q36_turn_in",
"quest": "core:strangers_tracks",
"text": "core:q36_david_turn_in"
},
{
"choices": [
{
"id": "more",
"next": "q36_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "nervous",
"id": "q36_offer",
"quest": "core:strangers_tracks",
"text": "core:q36_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q36_accepted",
"text": "core:q36_accept",
"when": [
{
"quest": "core:strangers_tracks",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q36_offer_2",
"quest": "core:strangers_tracks",
"text": "core:q36_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q36_accepted",
"quest": "core:strangers_tracks",
"text": "core:q36_david_accepted"
},
{
"choices": [],
"emotion": "nervous",
"id": "q36_underway",
"quest": "core:strangers_tracks",
"text": "core:q36_david_underway"
},
{
"choices": [
{
"id": "hand_in_46",
"next": "q46_shield",
"text": "core:q46_hand_in",
"when": [
{
"quest": "core:leather_for_everyone",
"stages": [
"ready"
]
}
]
}
],
"emotion": "happy",
"id": "q46_turn_in",
"quest": "core:leather_for_everyone",
"text": "core:q46_david_turn_in"
},
{
"choices": [],
"emotion": "neutral",
"id": "q46_shield",
"quest": "core:leather_for_everyone",
"text": "core:q46_david_shield"
},
{
"choices": [
{
"id": "more",
"next": "q46_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "neutral",
"id": "q46_offer",
"quest": "core:leather_for_everyone",
"text": "core:q46_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q46_accepted",
"text": "core:q46_accept",
"when": [
{
"quest": "core:leather_for_everyone",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q46_offer_2",
"quest": "core:leather_for_everyone",
"text": "core:q46_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q46_accepted",
"quest": "core:leather_for_everyone",
"text": "core:q46_david_accepted"
},
{
"choices": [],
"emotion": "neutral",
"id": "q46_underway",
"quest": "core:leather_for_everyone",
"text": "core:q46_david_offer_2"
},
{
"choices": [
{
"id": "hand_in_48",
"text": "core:q48_hand_in",
"when": [
{
"quest": "core:scouts_in_the_woods",
"stages": [
"ready"
]
}
]
}
],
"emotion": "love",
"id": "q48_turn_in",
"quest": "core:scouts_in_the_woods",
"text": "core:q48_david_turn_in"
},
{
"choices": [
{
"id": "more",
"next": "q48_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "nervous",
"id": "q48_offer",
"quest": "core:scouts_in_the_woods",
"text": "core:q48_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "q48_accepted",
"text": "core:q48_accept",
"when": [
{
"quest": "core:scouts_in_the_woods",
"stages": [
"offered"
]
}
]
}
],
"emotion": "neutral",
"id": "q48_offer_2",
"quest": "core:scouts_in_the_woods",
"text": "core:q48_david_offer_2"
},
{
"choices": [],
"emotion": "neutral",
"id": "q48_accepted",
"quest": "core:scouts_in_the_woods",
"text": "core:q48_david_accepted"
},
{
"choices": [],
"emotion": "neutral",
"id": "q48_underway",
"quest": "core:scouts_in_the_woods",
"text": "core:q48_david_underway"
},
{
"choices": [
{
"id": "more",
"next": "moss_court_offer_2",
"text": "core:talk_more",
"when": []
}
],
"emotion": "neutral",
"id": "moss_court_offer",
"quest": "core:moss_court_quest",
"text": "core:moss_court_david_offer"
},
{
"choices": [
{
"id": "accept",
"next": "moss_court_accepted",
"text": "core:moss_court_accept",
"when": [
{
"quest": "core:moss_court_quest",
"stages": [
"offered"
]
}
]
}
],
"emotion": "nervous",
"id": "moss_court_offer_2",
"quest": "core:moss_court_quest",
"text": "core:moss_court_david_offer_2"
},
{
"choices": [],
"emotion": "nervous",
"id": "moss_court_no_room",
"quest": "core:moss_court_quest",
"text": "core:moss_court_david_no_room"
},
{
"choices": [],
"emotion": "neutral",
"id": "moss_court_accepted",
"quest": "core:moss_court_quest",
"text": "core:moss_court_david_accepted"
},
{
"choices": [],
"emotion": "neutral",
"id": "moss_court_underway",
"quest": "core:moss_court_quest",
"text": "core:moss_court_david_underway"
},
{
"choices": [
{
"id": "hand_in_moss_court",
"next": "moss_court_thanks",
"text": "core:moss_court_hand_in",
"when": [
{
"quest": "core:moss_court_quest",
"stages": [
"ready"
]
}
]
}
],
"emotion": "love",
"id": "moss_court_turn_in",
"quest": "core:moss_court_quest",
"text": "core:moss_court_david_turn_in"
},
{
"choices": [],
"emotion": "happy",
"id": "moss_court_thanks",
"quest": "core:moss_court_quest",
"text": "core:moss_court_david_thanks"
}
],
"npc": "core:david"
}