EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

transition_quest

Advance one declared quest edge only when the current stage equals from.

Signature

{ from: Name, kind: "transition_quest", player: PlayerRef, quest: QuestId, to: Name }

Fields

NameTypeMeaning
fromNameRequired source stage before applying this transition.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
kind"transition_quest"Discriminant
playerPlayerRefPlayer instance whose state or inventory the invocation may access.
Length: 1…256; Pattern: ^[\s\S]+$
questQuestIdQuest definition whose stage and revision are selected.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: quest
toNameDestination stage after the transition commits.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$

Validated example

{
  "from": "available",
  "kind": "transition_quest",
  "player": "p1",
  "quest": "core:first_aid_quest",
  "to": "active"
}