EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

PuzzleDefinition

A puzzle group: switches and pushable stones of one place, solved once its conditions and sequence hold. Solved stays solved (`solved` becomes 1, `puzzle_solved` is raised). Unsolved, it resets through its reset switch, and, when it has stones, by itself once no player is in its area.

Signature

{ anchor: AnchorRef, blocked: (VariableId)?, grid: (PuzzleGrid)?, id: ContentId, name: TextKey, playing: (VariableId)?, progress: (VariableId)?, radius_mm: number, reset: (Name)?, resets: (VariableId)?, round: (VariableId)?, rounds: ({{Name}})?, solved: VariableId, solved_when: {VariableCondition}, stones: ({Name})? }

Fields

NameTypeMeaning
anchorAnchorRefCentre of its area, an anchor of the map the puzzle stands on (in a room with the anchor's `inside`); every placement it names stands where the anchor does.
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
blockedVariableIdWorld bool variable that is 1 while an older world could not take the puzzle's pieces at their places (something not of the map, a player's building, stands on a piece or on the grid): the pieces never move one by one; the room tries again on every load. Absent: not published.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable
gridPuzzleGridGrid of its pushable stones; required with stones.
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}$
nameTextKeyName of the puzzle shown in the reset vote.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text
playingVariableIdWorld bool variable a handler sets while it plays the round to the players; steps struck meanwhile do not count. Absent: every step counts.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable
progressVariableIdWorld int variable holding how many steps of the current round are done; required with rounds (only it outlasts saving).
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable
radius_mmnumberRadius of its area: players inside it are asked before a reset, and an empty area resets an unsolved puzzle with stones.
Range: 2000…60000; Unit: mm
resetNamePlacement of a lever switch outside the grid that resets it (stones home, switches and progress back); with other players in the area, everyone inside votes first.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
resetsVariableIdWorld int variable counting its resets (for hints). Absent: not counted.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable
roundVariableIdWorld int variable holding how many rounds are done; required with more than one round.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable
rounds{{Name}}Rounds of switch placements (local IDs of `map.structures`) that must turn active in order, one round after the other; others are ignored, a repeat of the last counted one does not count again, a wrong one starts the round over (counting as its first when it is the first). Finished rounds stay finished. Absent: no sequence.
Items: 1…8
solvedVariableIdWorld bool variable that becomes 1 when it is solved.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: variable
solved_when{VariableCondition}World-variable conditions that must all hold to solve it (plates pressed, fires lit); empty: only the sequence.
Items: 0…16
stones{Name}Placements of its pushable stones (local IDs of `map.structures`), each on a cell of the grid: their start cells, where a reset returns them.
Items: 1…32; Unique entries