EverambleGAME API / 1

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

NameTypeMeaning
anchorAnchorRefCentre 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
elsewhereTextKeyText 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
gatherTriggerGatherWho has to stand in it before it fires.
idContentIdPackage-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_mmPositiveDistanceRadius of the circle.
Range: 1…2147483647; Unit: mm
waitingTextKeyText 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"
    }
  ]
}