CONTENT CONTRACT · VERSION 1
QuestObjective
A latched objective; type determines its required parameters.
Signature
{ after: (Name)?, animal: (AnimalId)?, boss: (EnemyId)?, choice: (Name)?, count: (PositiveCount)?, crop: (CropId)?, cutscene: (CutsceneId)?, each_player: (boolean)?, elsewhere: (TextKey)?, enemy: (EnemyId)?, faction: (ContentId)?, group: (Name)?, hidden: (boolean)?, id: Name, item: (QuestItems)?, jump: (ObjectiveJump)?, map_marker: (ObjectiveMarker)?, name: (DisplayText)?, npc: (NpcId)?, object: (WorldObjectId)?, puzzle: (PuzzleId)?, repair_materials: (boolean)?, skill: (SkillId)?, stored: (boolean)?, structure: (QuestStructures)?, text: (TextKey)?, to: (DeliveryTarget)?, type: ObjectiveType, ["until"]: (QuestWait)?, variable: (VariableId)?, waiting: (TextKey)?, where: (QuestWhere)?, who_present: (TriggerGather)? }Fields
| Name | Type | Meaning |
|---|---|---|
after | Name | Objective that must finish before counting starts. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
animal | AnimalId | Animal definition for herd. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: animal |
boss | EnemyId | Boss for defeat; mutually exclusive with enemy. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: enemy |
choice | Name | Required dialogue choice, if any. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
count | PositiveCount | Required amount; absent: one. Range: 1…2147483647; Unit: count |
crop | CropId | Crop for plant or harvest. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: crop |
cutscene | CutsceneId | Scene for watch. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: cutscene |
each_player | boolean | For a shared have objective: every online player must hold count matching items at the same time; no party amount scaling. |
elsewhere | TextKey | For shared reach with all_online: localized hint for players elsewhere; absent: the general gathering hint. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
enemy | EnemyId | Enemy for defeat. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: enemy |
faction | ContentId | For defeat: only enemies of this faction count (deaths and yields); with neither enemy nor boss, any of them. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
group | Name | For defeat: only enemies of this spawn group count (`spawn.group`); with neither enemy nor boss, any of them. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
hidden | boolean | Hide this objective; absent: false. |
id | Name | Quest-local unique identity. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
item | QuestItems | Item for gather, craft, have, deliver or give; optional for cook and catch. |
jump | ObjectiveJump | For custom: the player's deed its handlers count, for the keeper's story jump; required for custom objectives of chapter quests. |
map_marker | ObjectiveMarker | Override the marker derived from where or npc. |
name | DisplayText | Required player-assigned sign name, if any. Length: 1…4096; Pattern: ^[\s\S]*$ |
npc | NpcId | Target NPC and speech bubble. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: npc |
object | WorldObjectId | World object for find. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: world_object |
puzzle | PuzzleId | Puzzle group for solve. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: puzzle |
repair_materials | boolean | For gather or have with one item: derive the fixed amount from all matching start-map placements of this quest's repair objectives and their repair recipes; excludes count and party scaling. |
skill | SkillId | Lesson for learn: the skill its teacher teaches. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: skill |
stored | boolean | For have: count chest contents instead of player inventories. |
structure | QuestStructures | Structure for build, place or repair. |
text | TextKey | Optional localized label. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
to | DeliveryTarget | Recipient for deliver; items are consumed on handover. |
type | ObjectiveType | Event matcher. |
until | QuestWait | Time boundary for wait. |
variable | VariableId | Integer variable for custom. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable |
waiting | TextKey | For shared reach with all_online: localized waiting text; absent: the general gathering hint. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
where | QuestWhere | Spatial restriction on matching facts. |
who_present | TriggerGather | For reach: require all active online players simultaneously, as for gathering triggers; absent: any player. |