EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

portal

A passage from a point of one map to a point of another (or a room): fade, condition and a closed hint.

Signature

{ closed: (TextKey)?, fade: PortalFade, from: MapPoint, id: ContentId, kind: "portal", radius_mm: PortalRadius, to: MapPoint, when: ({StoryCondition})? }

Fields

NameTypeMeaning
closedTextKeyText a player sees who steps in while the passage is closed; absent: none.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
fadePortalFadeThe fade of the passage.
fromMapPointCentre of the circle that takes a player along.
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"portal"Discriminant
radius_mmPortalRadiusRadius of the circle.
Range: 500…8000; Unit: mm
toMapPointWhere the player arrives.
when{StoryCondition}Conditions under which the passage is open (all must hold; a shared quest's stage is the world's, a personal one the player's); absent: always.
Items: 1…16

Validated example

{
  "fade": {
    "in_ms": 600,
    "out_ms": 400,
    "rgb": [
      0,
      0,
      0
    ]
  },
  "from": "reference:tide_pool/homeward",
  "id": "reference:from_tide_pool",
  "kind": "portal",
  "radius_mm": 1500,
  "to": {
    "map": "core:valley",
    "position_mm": [
      36000,
      0,
      51000
    ]
  }
}