EverambleGAME API / 1

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

NameTypeMeaning
addSignedIntProgress delta; exactly one of value and add.
Range: -9007199254740991…9007199254740991; Unit: integer
kind"set_objective_progress"Discriminant
objectiveNameQuest-local objective identity.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
playerPlayerRefPlayer; required for an each quest.
Length: 1…256; Pattern: ^[\s\S]+$
questQuestIdQuest identity.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: quest
valueCountAbsolute 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
}