# main
The one playable scene of **Wrenmoor Hall: A Haunted Heist**: a four-floor gothic manor (cellar, ground floor, upper floor, attic) standing abandoned at night in a walled garden, with the gate the players arrive at, three valuables to steal, a night watchman patrolling each lived-in floor with his own lantern, the Grey Lady haunting the attic, seven story notes and six scripted scares.
Almost nothing here is built by hand. `build.luau` reads one `GAME` table of switches and asks installed kits for everything:
| Part | Made by | Switch in `GAME` |
|---|---|---|
| The house: rooms, furniture, textured finishes, hiding places, light fittings, creaky boards, knockable vases, doors, stairs, the walking map, night lighting | manorKit | `plan`, `style`, `decay`, `seed`, `stairs` |
| The three valuables (wall safe, locked display case, painting cut from its frame), the win rule, the loot list on screen, what happens when a guard catches you, the escape | heistKit | `rules`, `lootHud`, `caught` |
| The Grey Lady, how the house acts haunted, the warning signs | hauntKit | `ghost`, `look`, `haunting`, `signs` |
| The watchmen (they see only what is lit), hiding spots, notice meters, the house alert, lures | concealKit + stealthKit | (presets in `build.luau`) |
| The lantern, flickering lights, dread, music, scares, notes and journal | horrorKit | (director fields in `build.luau`) |
## Entities
Everything hangs under the house root `WrenmoorHall`, plus:
- `PlayerSetups` / `Thief`: the first-person player prototype (humanoid body, a dark isolated camera that lights nothing by itself) and `GateSpawn` at the garden gate.
- `HorrorDirector`, `Lanterns` (stealthKit director), `StealthReadout`: the one-field choices the horror and stealth kits read.
- `Watchman_ground`, `Watchman_upper`, `Watchman_cellar`: one guard per floor on that floor's patrol loop from the house's `guardRoute` anchors, each carrying a lantern light.
- `GreyLadyDirector` and `GreyLady`: the synced haunting director and the ghost, whose lair is the attic landing.
- The loot, the escape hatch and the notes, placed from the house's room anchors.
- `BakedLighting`, `probe_volume_1`, `ReflectionProbe`: baked global illumination (lightmaps on every static surface, an irradiance probe volume for everything that moves, a reflection probe), stored in `/main_lighting.lightmapData`.
## Changing it
Change one line of `GAME` and the level re-places itself from the new house's anchors, for example `style = "nordic"`, `decay = "stormDamaged"`, `stairs = "spiral"`, `ghost = "drowned"`, `lootHud = "polaroids"`, `rules = "takeAny"`, `caught = "gameOver"`. After a change that moves the house, re-bake the lighting with the `baking` toolbox's `all` tool (about ten minutes); until then the scene shows honest realtime light.
How to play: the `how-to-play-wrenmoor-hall` guide in the `wrenmoor` package.
# wrenmoor: Wrenmoor Hall, A Haunted Heist
**Version 1.1.10.** The game package of *Wrenmoor Hall: A Haunted Heist*, a short first-person stealth horror heist for one or two players. You slip into a sealed four-floor manor at night, steal three valuables in any order past night watchmen who carry lanterns, avoid the Grey Lady (a ghost who hunts by sound and by light), and get out through the old ice-house tunnel in the cellar. A good run takes 10 to 20 minutes. Keyboard and mouse, gamepad and touch; English and Portuguese.
The game is almost entirely installed kits. This package holds only what is Wrenmoor's own: the story, the run flow, a how-to-play guide and a workflow for building a game like it.
## What is in this package
| Asset | What it is |
|---|---|
| `wrenmoor.story` (`story.module`) | The seven notes of the house as loreKit entries: a card from the buyer "C.", the watchman's log, Margery's diary, the nursery rhyme, the doctor's letter, the builder's chit about the dumbwaiter, and C.'s confession. |
| `wrenmoor.run` (`run.module`) | The run flow: the title, the game's music set, a brighter shuttered lantern style, what a guard's catch feels like (lantern out, a message, dread), the Grey Lady ending the run ("Taken"), victory with time and rank, progression saved per player, Retry. |
| `how-to-play-wrenmoor-hall` (guide) | How to play: the job, light and noise, getting caught, hiding, throwing lures, the notes, controls on every device, ranks, co-op. |
| `buildAHauntedHeist` (workflow) | A step-by-step workflow that builds a haunted heist like this one from the kits: choose, install, build, light, test, publish. |
The scene itself is `scenes/main.scene`: its `build.luau` places the level from the kits, its `entrypoint.luau` gives every player a lure pouch and starts `wrenmoor.run`.
## Made of kits
| Kit | What it does here |
|---|---|
| **manorKit** (Manor Works) | The four-floor manor: plan `manor`, gothic style, abandoned decay, 25 rooms, furniture, 64 hiding places, light fittings, creaky boards, knockable vases, 29 doors, the stairs, the walking map, night lighting, and the anchors the level is placed from. |
| **heistKit** (Light Fingers) | The three valuables (wall safe, locked display case, painting cut from its frame), the win rule, the loot list on screen, what a guard's catch does (knock-out: you wake at your floor's checkpoint, the watchmen forget you and go back to their floors, 4 s of grace), the cellar-hatch escape. English and Portuguese prompts. |
| **hauntKit** (Restless) | The Grey Lady (the `widow` kind), the classic hauntings and warning signs (frost, breath, blue flame, heartbeat), the catch. She hears and sees only what reaches her: a silent player in the dark is never found. |
| **horrorKit** and its kits (Hold Your Breath) | The lantern (flashlightKit), flickering fittings (eerieLightsKit), scripted scares (scaresKit), dread and music (tensionKit), notes and journal (loreKit). |
| **horrorStealthLink**: stealthKit + concealKit | Night watchmen who see only what is lit, notice meters, the house alert, your light and noise readout, hiding spots, lures (8 pebbles: hold Throw to aim, let go to throw). |
| **menusKit** | Title, pause, settings, game over and victory screens in the horror look, in the player's language. |
| **saveKit** | Progression saved per player. Installed in this world in its own right and declared in `package.yaml`, since the run requires `saveKit.save` itself (1.1.10; before, it came in only as a dependency of the hauntKit install and was lost when hauntKit moved). |
| aiKit, navKit, interactKit, soundstage, juiceKit, controlsKit | (dependencies) progression, guard and ghost brains, walking, prompts, music and footsteps, screen feel, controls on every device. |
## Swapping a kit's look: one setting
Open `scenes/main.scene/build.luau`. At the top is the `GAME` table; change one line and press Play (or let the editor rebuild the scene) and the running game uses the new choice:
| Setting | Kit | Choices |
|---|---|---|
| `style` | manorKit | the manor style, for example `gothic`, `georgian`, `nordic`, `artDeco`, `timberFramed` (`Manor.styles()` lists them all) |
| `decay` | manorKit | for example `pristine`, `worn`, `abandoned`, `ruined`, `storm` |
| `plan`, `seed`, `stairs` | manorKit | the house plan, its random seed, the staircase kind |
| `rules` | heistKit | `stealAll`, `quota`, `takeAny`, `grabAndRun` |
| `lootHud` | heistKit | the loot list look, for example `ledger`, `blueprint`, `polaroids` |
| `caught` | heistKit | `knockout`, `gameOver`, `jail`, `none` |
| `ghost` | hauntKit | the spirit kind (8), for example `widow`, `drowned`, `hush`, `keeper` |
| `look` | hauntKit | any of the looks on any kind (empty = the kind's own body), for example `shroud`, `drowned`, `plague`, `bride`, `lamplighter` |
| `haunting`, `signs` | hauntKit | how the house acts haunted, and the warning signs that she is near |
Checked in play: `lootHud = "blueprint"` and `look = "shroud"` came up as the blueprint loot list and the shrouded Grey Lady. A change that moves the house (style, plan, seed, stairs) also needs the lighting re-baked for the best look (the `baking` toolbox's `all` tool, about ten minutes); until then the house shows realtime light.
## Getting caught, winning, progress
- A watchman's grab: heistKit's `knockout`. You wake at the checkpoint of the floor you were on, with the loot you already took; all three watchmen forget you and walk back to their own floors; for 4 seconds nobody can catch you again.
- The Grey Lady's touch ends the run for the crew ("Taken").
- All three valuables open the ice-house hatch in the boiler room; one thief reaching it gets everyone out.
- Ranks by time: Phantom (under 10 min), Night Owl (under 14), Cat Burglar (under 20), Housebreaker. Best time, rank and nights survived are saved per player.
## Notes for the next person
Build notes, traps and what was hard are in `/NOTES.md`; the plan and story in `/design/PLAN.md`.
## Tests
`wrenmoorTests` (in this package) plays a copy of the main scene and checks the game's own rules: a night starts with three listed valuables and three watchmen on their rounds; a pebble thrown in the cellar makes its noise on the cellar floor and the cellar watchman walks to it; a watchman who grabs a lit thief knocks them out to the ground floor checkpoint with a few seconds' grace; taking all three valuables opens the cellar hatch and walking into it ends the night in the victory screen with the escape counted. Run it in a sub-client in edit mode: `zero tests run wrenmoorTests`.