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
| Name | Type | Meaning |
|---|---|---|
from | Name | Required source stage before applying this transition. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
kind | "transition_quest" | Discriminant |
player | PlayerRef | Player instance whose state or inventory the invocation may access. Length: 1…256; Pattern: ^[\s\S]+$ |
quest | QuestId | Quest 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 |
to | Name | Destination 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"
}