Log inGet started
World

Trapwright: Dungeon Traps, Secret Rooms and Puzzles Kit

Branchmain
Commite2db3ab7ef

README.md

dungeonKit.api

The public API of Trapwright, the dungeon traps, secret rooms and puzzles kit (local Dungeon = require("dungeonKit.api")). Dungeon.place(kind, opts) makes any of the 12 traps, 7 secrets, 6 puzzles, the door or the bridge in one of 8 looks; trigger, disarm, arm, retarget, use, open, close, hit, solve, reset, repair and breakPiece act on a placed piece by id; on() listens to events; useRewrite() hands every piece to a hacking or spell power; foundCount() and hasFound() read the saved per-player secret counter. Game code and the kit's components call it.

Since 1.0.1: the arena family of boss arena hazards (Dungeon.ARENA: shockwaveRing, fallingDebris, floorPanels, pillarCover) with arenaPhase(id, n), arenaPhaseAll(n, prefix?), hitPillar(id, pillar?, by?) and covered(x, z, fromX, fromZ), the arenaPhase event, and setVisualRange(metres, every?).