EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

VariableDefinition

Package-owned state with a typed declaration and virtual initial value.

Signature

{ id: ContentId, lifetime: (VariableLifetime)?, owner_scope: OwnerScope, value: VariableDeclaration }

Fields

NameTypeMeaning
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}$
lifetimeVariableLifetimeHow long a world or player variable lives: through one run of a quest (back to its initial value when the quest starts over) or as story memory. Required for world and player variables; an actor variable lives with its figure and states none.
owner_scopeOwnerScopeKind of persistent owner allowed to store this variable.
valueVariableDeclarationTyped payload checked against its owning declaration.