CONTENT CONTRACT · VERSION 1
QuestDefinition
A quest with fixed lifecycle and declarative objectives.
Signature
{ description: TextKey, giver: (NpcId)?, id: ContentId, name: TextKey, objectives: {QuestObjective}, offer: (QuestOffer)?, reward_parts: ({QuestRewardPart})?, rewards: {QuestReward}, storyline: (QuestStoryline)?, who: (QuestWho)?, xp: (PositiveCount)? }Fields
| Name | Type | Meaning |
|---|---|---|
description | TextKey | Quest description. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
giver | NpcId | NPC offering this quest. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: npc |
id | ContentId | Package-qualified identity. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
name | TextKey | Quest title. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
objectives | {QuestObjective} | Objectives in display order. Items: 1…64 |
offer | QuestOffer | Absent: auto. |
reward_parts | {QuestRewardPart} | Additional independently receipted completion rewards. Stable quest-local IDs preserve payment when quest parts are merged or extended. Items: 1…64 |
rewards | {QuestReward} | Item grants and permanent recipe unlocks. Items: 0…16 |
storyline | QuestStoryline | Absent: side. |
who | QuestWho | Absent: together. |
xp | PositiveCount | Experience granted once on completion. Range: 1…2147483647; Unit: count |