EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

PlacementLock

A lock on a placed gate: a player's interaction spends keys from a shared world counter and unlocks it for good (the placement's `variable` becomes 1); the gate stays closed while its variable is 0 (an implicit `closed_when`).

Signature

{ consume: PositiveCount, counter: VariableId, locked: TextKey }

Fields

NameTypeMeaning
consumePositiveCountKeys one unlocking spends; with fewer the gate stays locked and the player reads `locked`.
Range: 1…2147483647; Unit: count
counterVariableIdWorld int variable counting the keys (small keys of one dungeon, or its big key).
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable
lockedTextKeyNotice for a player without enough keys.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text