CONTENT CONTRACT · VERSION 1
set_objective_progress
Set or add progress on an active objective; completed objectives stay latched.
Signature
{ add: (SignedInt)?, kind: "set_objective_progress", objective: Name, player: (PlayerRef)?, quest: QuestId, value: (Count)? }Fields
| Name | Type | Meaning |
|---|---|---|
add | SignedInt | Progress delta; exactly one of value and add. Range: -9007199254740991…9007199254740991; Unit: integer |
kind | "set_objective_progress" | Discriminant |
objective | Name | Quest-local objective identity. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
player | PlayerRef | Player; required for an each quest. Length: 1…256; Pattern: ^[\s\S]+$ |
quest | QuestId | Quest identity. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: quest |
value | Count | Absolute progress; exactly one of value and add. Range: 0…2147483647; Unit: count |
Validated example
{
"kind": "set_objective_progress",
"objective": "objective_1",
"quest": "reference:camp",
"value": 1
}