CONTENT CONTRACT · VERSION 1
trigger
A visible circle around a map anchor that raises trigger_reached.
Signature
{ anchor: AnchorRef, elsewhere: (TextKey)?, gather: TriggerGather, id: ContentId, kind: "trigger", radius_mm: PositiveDistance, waiting: (TextKey)?, when: {StoryCondition} }Fields
| Name | Type | Meaning |
|---|---|---|
anchor | AnchorRef | Centre of the circle, an anchor of the world map. Length: 1…226; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}/[a-z][a-z0-9_]{0,95}$; Reference: map.anchor |
elsewhere | TextKey | Text the awaited players elsewhere see (with a marker on the circle); absent: a general one. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
gather | TriggerGather | Who has to stand in it before it fires. |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "trigger" | Discriminant |
radius_mm | PositiveDistance | Radius of the circle. Range: 1…2147483647; Unit: mm |
waiting | TextKey | Text the players inside see while others are still missing (`all_online`); `{present}` and `{needed}` are replaced by the counts. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
when | {StoryCondition} | Quest stages under which the circle shows and fires (all must hold; a shared quest's stage is the world's, a personal one the player's); empty: always. Items: 0…16 |
Validated example
{
"anchor": "core:valley/backpath_1",
"gather": "any",
"id": "core:backpath_1",
"kind": "trigger",
"radius_mm": 6000,
"when": [
{
"quest": "core:the_back_path",
"stages": [
"active"
]
},
{
"max": 1,
"min": 1,
"variable": "core:fenn_leads"
},
{
"max": 0,
"min": 0,
"variable": "core:q49_path"
}
]
}