EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

PortalDefinition

A passage one way: a player who steps into the circle around `from` while `when` holds fades out and arrives at `to` (another outdoor map, a room or the same map). Back is a second portal; the package shows the place itself (a structure or world object).

Signature

{ closed: (TextKey)?, fade: PortalFade, from: MapPoint, id: ContentId, 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}$
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