From 6150cabcf0c477266e890d8841e949b364218fa5 Mon Sep 17 00:00:00 2001 From: Caleb LeNoir Date: Thu, 3 Dec 2026 11:14:41 -0500 Subject: [PATCH 1/5] Lay out a town's streets and square before any of it is written A place with a towns row (how many streets, whether a square) is laid out by one seeded roll: its streets and square as outdoor rooms with boxes in the town's plane, cut into a grid walked as a serpentine like a floor's so every street is reachable and none passes four doorways. Its ways in land on the square; each building the file joins to it, or makes a building of it, fronts one street (Roll::FRONTAGE_SIDE says which side); and every frontage left is a lot, a building stub dealt from data/location/town.yml and laid out when entered, as any building is. It is written once with no model: by Engine::lay_out_towns as the world is loaded, or else on the first entry. The same seed draws the same town. No street gets an exits call. A street or square is told its plan out of doors (size, town, which way each street lies, which side each building fronts it on) and named with its own instruction; every other room's requests are unchanged. The doorway moving open_the_way_in did moves to turn::doorway, shared by both. way_in now takes a place's first room with a box, so a lot or an anchor of a town is never taken for one of its streets. The doctor does not warn about a town having no layout: its streets are stood in instead. Adds the sweep world a-town-of-three-streets and the walk a-town-laid-out-before-it-is-written. --- README.md | 7 +- data/README.md | 1 + data/location/town.yml | 21 + parity/PASSING | 1 + .../a-town-laid-out-before-it-is-written.json | 623 + .../a-town-laid-out-before-it-is-written.json | 14231 ++++++++++++++++ .../a-town-laid-out-before-it-is-written.yml | 164 + parity/worlds/a-town-of-three-streets.sql | 694 + src/data.rs | 51 +- src/engine.rs | 38 + src/facts.rs | 2 +- src/layout.rs | 7 +- src/lib.rs | 1 + src/plan.rs | 93 +- src/reach.rs | 10 +- src/realization.rs | 38 + src/roll.rs | 4 + src/store.rs | 20 +- src/town.rs | 506 + src/turn.rs | 8 +- src/turn/doorway.rs | 260 + src/turn/told/realize.rs | 244 +- src/turn/town.rs | 265 + tests/town.rs | 328 + 24 files changed, 17416 insertions(+), 201 deletions(-) create mode 100644 data/location/town.yml create mode 100644 parity/goldens/a-town-laid-out-before-it-is-written.json create mode 100644 parity/records/a-town-laid-out-before-it-is-written.json create mode 100644 parity/scripts/a-town-laid-out-before-it-is-written.yml create mode 100644 parity/worlds/a-town-of-three-streets.sql create mode 100644 src/town.rs create mode 100644 src/turn/doorway.rs create mode 100644 src/turn/town.rs create mode 100644 tests/town.rs diff --git a/README.md b/README.md index 02c47d3..f6285ac 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ rule rewrites them here, and the game vendors them at the commit it pins. | `playthrough` | `Playthrough`'s readers, `Playthrough::Vitals::Condition`, `Playthrough::Toll#to_s` | who is in a room, how much is left of a body, who is fighting the party; the floors a game has reached (`playthrough_floors`, written by `turn` the first time the game stands on each), the level its player has risen to on them (on a floor whose row says `levels_up`, one past the level the game had, healed to full there and then; nobody else, and no world row, is ever raised), the hit points a body can take in this game now or when a blow or toll landed, and what the engine says to the player of a floor that raised a level, which no model is told; and a floor's countdown (`floors.minutes` from the game's arrival): when it falls in this game, which `turn` writes (`playthrough_floors.fell_at`) before a line is read and once its time is spent, killing a player who stands on it; that nobody on a fallen floor is alive in this game and no way out leads onto it, while the world's rows and every other game keep it whole; and what the engine says to the player of the time left and of a floor that gave way under them, which no model is told; and the rests a game has taken (`playthrough_rests`, written by `turn` when a `wait` in a sanctuary with no foe in it mends the player and spends an hour), and what the engine says to the player of each, which no model is told | | `ledger` | `Playthrough::Ledger` | what one person saw happen in one game, inside both of its bounds | | `memory` | `Playthrough::Memory` | which earlier exchanges come back into a prompt, ranked with Ruby's float arithmetic | -| `plan` | `Location::Plan` | a room's size, storey and ways out, said in sentences | +| `plan` | `Location::Plan` | a room's size, storey and ways out, said in sentences; a street or square of a town (`town`) is told them out of doors instead: its size, the town it is part of, which way each other street lies and which side each building fronts it on, with no wall, door or storey | | `moment` | `Playthrough::Moment` | the narration context and a character's context for the moment the player stands in | | `narration` | `Scene::Narrator#prompt_for` | the narrator's request for a typed line, what the engine already did and the moment it happens in | | `volition` | `Playthrough::Volition#choices`, `::State`, `::SystemOne#request`, `::SystemOne#decisions` | the acts a person may take and the System One request that asks which, and what it answered read back to tokens; what they may say unasked, and the speech die thrown over it | @@ -72,8 +72,9 @@ rule rewrites them here, and the game vendors them at the commit it pins. | `narrates` | none: it was written here | a game the player narrates: the facts card the player writes from, the scene waiting for their paragraph, the request a narrator would have been sent for the turn, built and never sent, and the paragraph kept beside the scene with that request, never read | | `noticed` | none: it was written here | what a game the player narrates has noticed of a room (`noticed_at` on its copy of each thing and its state for a person), the tiers that notice it (`turn::notice`), the refusal of a line naming a thing not noticed, and the doctor's findings | | `wear` | none: it was written here | where on a body a thing is worn (`items.wear`, one of `data/item/wear.yml`'s places) and whether it is worn in this game (`items.worn`, a kind of carried), and the doctor's findings (`Engine::wear_findings`): a worn thing nobody holds, two worn on one place by one body, a worn thing with no place, a place that is none; and how an engine sentence says where a thing is worn. `/wear` and `/remove` put a thing on and take it off (`room`'s `wear` and `remove` attempts), reached only through the grammar, and recorded as `wear` and `remove` on the scene. No reader is handed either; what the player wears is told to the narrator (`moment`) and to a person spoken to (`dialogue`), and only while something is worn | -| `reach` | none: it was written here | what is within arm's length in a laid-out room (your cell and the eight around it), the nearest free cell beside a thing or person you walk up to, and where a step back of two paces puts you or that there is no room behind you, with no die; and the doctor's warning for a place the party could stand in with no layout (`Engine::layout_findings`), which changes nothing. No act reads it yet and nothing a model reads names it | -| `layout` | none: it was written here | a layout for a room that stands on its own (no parent): a box at the origin of its own plane, sized from its sort's band (`data/location/size.yml`, `Roll::ROOM_SIZE` on the room's row), written as the room is first written; which side each of its ways out leaves by (`Roll::WAY_OUT_SIDE` on the doorway's row, worked out on every read and never kept) and the cell beside it, which a throw at that way out is measured to; and every such room of a story with no layout yet, laid out with a spot for each of the world's own loose things and people in it (`Engine::lay_out_rooms`, which the game runs after it pulls). A storey is compared only within one place (`plan::storey`). Nothing a model reads names any of it | +| `town` | none: it was written here | a town's streets and square (a place its world gives a `towns` row: how many streets, and whether a square): each an outdoor room with a box in the town's plane, cut into a near-square grid walked as a serpentine like a floor's so every street is reachable and none passes four doorways, the square first; its ways in landed on the first street with a doorway left; each building the world joins to the town by a doorway, or makes a building of it, drawn one street to front (`Roll::FRONTAGE_SIDE` on the building's row says which side, worked out on every read and never kept); and a lot on every frontage left, a building stub of a kind dealt from `data/location/town.yml` and laid out when somebody walks in, like any building. Returned rather than written, and written once with no model (`turn::town`): as the world is loaded (`Engine::lay_out_towns`) or else on the first entry, which then writes the street walked onto. The town place itself is never written, and no street of it gets an exits call | +| `reach` | none: it was written here | what is within arm's length in a laid-out room (your cell and the eight around it), the nearest free cell beside a thing or person you walk up to, and where a step back of two paces puts you or that there is no room behind you, with no die; and the doctor's warning for a place the party could stand in with no layout (`Engine::layout_findings`), which changes nothing; a town is not warned about, since its streets are stood in instead. No act reads it yet and nothing a model reads names it | +| `layout` | none: it was written here | a layout for a room that stands on its own (no parent): a box at the origin of its own plane, sized from its sort's band (`data/location/size.yml`, `Roll::ROOM_SIZE` on the room's row), written as the room is first written; which side each of its ways out leaves by (`Roll::WAY_OUT_SIDE` on the doorway's row, worked out on every read and never kept) and the cell beside it, which a throw at that way out is measured to; and every such room of a story with no layout yet (a town is laid out by `town` instead), laid out with a spot for each of the world's own loose things and people in it (`Engine::lay_out_rooms`, which the game runs after it pulls). A storey is compared only within one place (`plan::storey`). Nothing a model reads names any of it | | `revisit` | none: it was written here | the arrival diff: what a game saw of a room when it last left it, kept by the move that walked out, and on a walk back what has changed among it, in a closed list in the engine's words (a thing gone, held by somebody there, moved or broken; a person gone, come or dead; a way out gone or new; an event of the world in the room), kept by the move that walked back. Every game keeps both; a narrated game's arrival writer is told the list under "Since You Were Last Here" and that nothing else changed | | `glance` | `Playthrough::Glance`, `Playthrough::Availability`, `Playthrough::SlashMenu` | what a front end's panels show between turns: the room, its ways out, who and what is here, which verbs are open at what (each target one the turn plays, each closed verb closed in the refusal's words), the slash menu and the next beat; and the floor the player stands on with when it falls (`floor`), and the sentence for a floor that gave way under them (`collapse`); and for a safe room, the line saying so on the room (`here.safe`) | | `facts`, `prompt_version` | `Scene::Narrator#prompt_for`, `Playthrough::Turn`'s `_fact` builders, `Playthrough::PromptVersion::Scaffold` | what a turn hands the narrator as already done, and that scaffold rendered against fixed placeholders for the game's prompt version to digest | diff --git a/data/README.md b/data/README.md index 732d863..8dcf234 100644 --- a/data/README.md +++ b/data/README.md @@ -24,6 +24,7 @@ built against the commit it pins (`data::files`). | `physics.yml` | `room`, `turn`: the bulk and thrown-damage tables a throw reads; `carry`: what a body can hold and where | | `location/kind.yml` | `kind`: what sort of place a room may be, how cluttered, and the sort each room of a building is dealt; `schemas` offers the first two to the exits call and the buildings to the place call | | `location/size.yml` | `layout`: how big a room that stands on its own is, a band of paces for each side by its sort and a default for a room with no sort; no model reads it | +| `location/town.yml` | `town`: the building each lot of a town is dealt, by weight, every one a building of `location/kind.yml`; the kind reaches the room writer only as the lot's engine-written teaser ("A house in Thornwick.") and name | | `item/kits.yml` | `kit`: what stands in a room of each sort, what lies on or in each fixed piece in plain view, the small stuff each density lies about, what lies inside each closed piece, and the parts each piece is born with and how hard they hold; `turn` furnishes a room from it as the room is realized, and `realization` states what it wrote, less the parts; `turn` draws a closed piece's inside from it the first time anybody searches it, and takes a hold's penalty off strength when somebody tries to break a part off; `material` reads what each material settles and the names a kit writes with it, and `divide` how each tears or smashes and what that leaves; and the place on a body each thing that can be worn is worn on, which a kit row is written with | | `item/wear.yml` | `wear`: the closed list of places on a body a thing is worn on, and which place lies under which; the doctor reads it (`wear::findings`), `room` reads it for what can be put on or taken off now, and so do `item/kits.yml`'s `wear` table and the `wear` vector portion | diff --git a/data/location/town.yml b/data/location/town.yml new file mode 100644 index 0000000..b892c88 --- /dev/null +++ b/data/location/town.yml @@ -0,0 +1,21 @@ +# The buildings a town's lots are dealt: what stands on every frontage of a +# laid-out town that no building the world seeds takes. Owned by this engine +# and read by `src/town.rs`; `src/data.rs` (`town()`) declares its shape and +# refuses any other. +# +# Each key is a building of `location/kind.yml` and each value the weight it +# is dealt with, one weighted draw a lot (`Roll::INTERIOR`, on the town's own +# row). The word is written into the lot's teaser ("A house in Thornwick.") +# and decides the rooms the lot is laid out with when somebody first walks +# in, as any building's own kind does; no model picks it. +# +# The weights are a first cut for a town with no climate or terrain read +# yet: mostly houses, then the trades a town lives on. +--- +lots: + house: 10 + shop: 3 + workshop: 2 + smithy: 1 + inn: 1 + warehouse: 1 diff --git a/parity/PASSING b/parity/PASSING index be80f5e..e42789c 100644 --- a/parity/PASSING +++ b/parity/PASSING @@ -112,3 +112,4 @@ an-iron-key-is-not-torn the-story-still-needs-the-writ what-wren-wears-is-told resting-in-a-safe-room +a-town-laid-out-before-it-is-written diff --git a/parity/goldens/a-town-laid-out-before-it-is-written.json b/parity/goldens/a-town-laid-out-before-it-is-written.json new file mode 100644 index 0000000..6344c9f --- /dev/null +++ b/parity/goldens/a-town-laid-out-before-it-is-written.json @@ -0,0 +1,623 @@ +{ + "script": "a-town-laid-out-before-it-is-written", + "story": "A Town of Three Streets", + "steps": [ + { + "step": "step 1 into-thornwick", + "player": "first", + "typed": "/move Thornwick", + "dump": { + "location": { + "id": 1000000006, + "name": "the well square", + "detail": "realized" + }, + "storey": 0, + "exits": [ + { + "id": 1000000001, + "name": "The North Road", + "detail": "realized" + }, + { + "id": 1000000002, + "name": "The Shrine", + "detail": "stub" + }, + { + "id": 1000000007, + "name": "Thornwick room 2", + "detail": "stub" + }, + { + "id": 1000000009, + "name": "Thornwick room 4", + "detail": "stub" + } + ], + "here": [ + { + "id": 1000000005, + "name": "bench" + }, + { + "id": 1000000007, + "name": "cart" + }, + { + "id": 1000000006, + "name": "lamp post" + }, + { + "id": 1000000008, + "name": "tarpaulin" + } + ], + "carrying": [], + "present": [], + "foes": [], + "inscription": [], + "hp": 18, + "hp_of": {}, + "abilities": { + "strength": 12, + "dexterity": 12, + "will": 12 + }, + "dead": false, + "changed": true, + "change": "The browser turn completed.", + "refused": false, + "offers": null, + "understood": "move -> Thornwick", + "resolved_by": "grammar", + "note": "into-thornwick: completed", + "drifts": 0, + "blows": 0, + "hazards": 0, + "quest": {}, + "volitions": 0, + "acts": 0, + "ending": "none", + "ending_words": null, + "scheduled": 0, + "fired": 0, + "elapsed_minutes": 1.0, + "shown": null + } + }, + { + "step": "step 2 along-the-first-street", + "player": "first", + "typed": "/move Thornwick room 2", + "dump": { + "location": { + "id": 1000000007, + "name": "the forge lane", + "detail": "realized" + }, + "storey": 0, + "exits": [ + { + "id": 1000000005, + "name": "The Smithy", + "detail": "stub" + }, + { + "id": 1000000008, + "name": "Thornwick room 3", + "detail": "stub" + }, + { + "id": 1000000010, + "name": "Thornwick shop 1", + "detail": "stub" + }, + { + "id": 1000000006, + "name": "the well square", + "detail": "realized" + } + ], + "here": [ + { + "id": 1000000020, + "name": "bench" + }, + { + "id": 1000000021, + "name": "button" + }, + { + "id": 1000000018, + "name": "doorstep" + }, + { + "id": 1000000017, + "name": "gutter" + }, + { + "id": 1000000016, + "name": "lamp post" + }, + { + "id": 1000000019, + "name": "notice board" + }, + { + "id": 1000000022, + "name": "timetable" + } + ], + "carrying": [], + "present": [], + "foes": [], + "inscription": [ + { + "id": 1000000022, + "name": "timetable", + "text": null + } + ], + "hp": 18, + "hp_of": {}, + "abilities": { + "strength": 12, + "dexterity": 12, + "will": 12 + }, + "dead": false, + "changed": true, + "change": "The browser turn completed.", + "refused": false, + "offers": null, + "understood": "move -> the forge lane", + "resolved_by": "grammar", + "note": "along-the-first-street: completed", + "drifts": 0, + "blows": 0, + "hazards": 0, + "quest": {}, + "volitions": 0, + "acts": 0, + "ending": "none", + "ending_words": null, + "scheduled": 0, + "fired": 0, + "elapsed_minutes": 1.0, + "shown": null + } + }, + { + "step": "step 3 along-the-second-street", + "player": "first", + "typed": "/move Thornwick room 3", + "dump": { + "location": { + "id": 1000000008, + "name": "the tanners' row", + "detail": "realized" + }, + "storey": 0, + "exits": [ + { + "id": 1000000011, + "name": "Thornwick house 1", + "detail": "stub" + }, + { + "id": 1000000009, + "name": "Thornwick room 4", + "detail": "stub" + }, + { + "id": 1000000012, + "name": "Thornwick smithy 1", + "detail": "stub" + }, + { + "id": 1000000007, + "name": "the forge lane", + "detail": "realized" + } + ], + "here": [ + { + "id": 1000000026, + "name": "gutter" + }, + { + "id": 1000000025, + "name": "lamp post" + } + ], + "carrying": [], + "present": [], + "foes": [], + "inscription": [], + "hp": 18, + "hp_of": {}, + "abilities": { + "strength": 12, + "dexterity": 12, + "will": 12 + }, + "dead": false, + "changed": true, + "change": "The browser turn completed.", + "refused": false, + "offers": null, + "understood": "move -> the tanners' row", + "resolved_by": "grammar", + "note": "along-the-second-street: completed", + "drifts": 0, + "blows": 0, + "hazards": 0, + "quest": {}, + "volitions": 0, + "acts": 0, + "ending": "none", + "ending_words": null, + "scheduled": 0, + "fired": 0, + "elapsed_minutes": 1.0, + "shown": null + } + }, + { + "step": "step 4 along-the-third-street", + "player": "first", + "typed": "/move Thornwick room 4", + "dump": { + "location": { + "id": 1000000009, + "name": "the inn street", + "detail": "realized" + }, + "storey": 0, + "exits": [ + { + "id": 1000000004, + "name": "The Inn", + "detail": "stub" + }, + { + "id": 1000000013, + "name": "Thornwick smithy 2", + "detail": "stub" + }, + { + "id": 1000000008, + "name": "the tanners' row", + "detail": "realized" + }, + { + "id": 1000000006, + "name": "the well square", + "detail": "realized" + } + ], + "here": [ + { + "id": 1000000034, + "name": "bench" + }, + { + "id": 1000000035, + "name": "bent nail" + }, + { + "id": 1000000036, + "name": "button" + }, + { + "id": 1000000033, + "name": "gutter" + }, + { + "id": 1000000032, + "name": "lamp post" + } + ], + "carrying": [], + "present": [], + "foes": [], + "inscription": [], + "hp": 18, + "hp_of": {}, + "abilities": { + "strength": 12, + "dexterity": 12, + "will": 12 + }, + "dead": false, + "changed": true, + "change": "The browser turn completed.", + "refused": false, + "offers": null, + "understood": "move -> the inn street", + "resolved_by": "grammar", + "note": "along-the-third-street: completed", + "drifts": 0, + "blows": 0, + "hazards": 0, + "quest": {}, + "volitions": 0, + "acts": 0, + "ending": "none", + "ending_words": null, + "scheduled": 0, + "fired": 0, + "elapsed_minutes": 1.0, + "shown": null + } + }, + { + "step": "step 5 into-the-inn", + "player": "first", + "typed": "/move The Inn", + "dump": { + "location": { + "id": 1000000014, + "name": "The Inn room 1", + "detail": "realized" + }, + "storey": 0, + "exits": [ + { + "id": 1000000015, + "name": "The Inn room 2", + "detail": "stub" + }, + { + "id": 1000000016, + "name": "The Inn room 3", + "detail": "stub" + }, + { + "id": 1000000009, + "name": "the inn street", + "detail": "realized" + } + ], + "here": [ + { + "id": 1000000046, + "name": "benches" + }, + { + "id": 1000000051, + "name": "bowl" + }, + { + "id": 1000000050, + "name": "candle" + }, + { + "id": 1000000048, + "name": "cupboard" + }, + { + "id": 1000000049, + "name": "deck of cards" + }, + { + "id": 1000000052, + "name": "jar" + }, + { + "id": 1000000047, + "name": "shelves" + }, + { + "id": 1000000045, + "name": "table" + } + ], + "carrying": [], + "present": [], + "foes": [], + "inscription": [], + "hp": 18, + "hp_of": {}, + "abilities": { + "strength": 12, + "dexterity": 12, + "will": 12 + }, + "dead": false, + "changed": true, + "change": "The browser turn completed.", + "refused": false, + "offers": null, + "understood": "move -> The Inn", + "resolved_by": "grammar", + "note": "into-the-inn: completed", + "drifts": 0, + "blows": 0, + "hazards": 0, + "quest": {}, + "volitions": 0, + "acts": 0, + "ending": "none", + "ending_words": null, + "scheduled": 0, + "fired": 0, + "elapsed_minutes": 1.0, + "shown": null + } + }, + { + "step": "step 6 back-onto-the-street", + "player": "first", + "typed": "/move the inn street", + "dump": { + "location": { + "id": 1000000009, + "name": "the inn street", + "detail": "realized" + }, + "storey": 0, + "exits": [ + { + "id": 1000000014, + "name": "The Inn room 1", + "detail": "realized" + }, + { + "id": 1000000013, + "name": "Thornwick smithy 2", + "detail": "stub" + }, + { + "id": 1000000008, + "name": "the tanners' row", + "detail": "realized" + }, + { + "id": 1000000006, + "name": "the well square", + "detail": "realized" + } + ], + "here": [ + { + "id": 1000000034, + "name": "bench" + }, + { + "id": 1000000035, + "name": "bent nail" + }, + { + "id": 1000000036, + "name": "button" + }, + { + "id": 1000000033, + "name": "gutter" + }, + { + "id": 1000000032, + "name": "lamp post" + } + ], + "carrying": [], + "present": [], + "foes": [], + "inscription": [], + "hp": 18, + "hp_of": {}, + "abilities": { + "strength": 12, + "dexterity": 12, + "will": 12 + }, + "dead": false, + "changed": true, + "change": "moved: The Inn room 1 -> the inn street", + "refused": false, + "offers": null, + "understood": "move -> the inn street", + "resolved_by": "grammar", + "note": null, + "drifts": 0, + "blows": 0, + "hazards": 0, + "quest": {}, + "volitions": 0, + "acts": 0, + "ending": "none", + "ending_words": null, + "scheduled": 0, + "fired": 0, + "elapsed_minutes": 0.0, + "shown": null + } + }, + { + "step": "step 7 round-to-the-square", + "player": "first", + "typed": "/move the well square", + "dump": { + "location": { + "id": 1000000006, + "name": "the well square", + "detail": "realized" + }, + "storey": 0, + "exits": [ + { + "id": 1000000001, + "name": "The North Road", + "detail": "realized" + }, + { + "id": 1000000002, + "name": "The Shrine", + "detail": "stub" + }, + { + "id": 1000000007, + "name": "the forge lane", + "detail": "realized" + }, + { + "id": 1000000009, + "name": "the inn street", + "detail": "realized" + } + ], + "here": [ + { + "id": 1000000005, + "name": "bench" + }, + { + "id": 1000000007, + "name": "cart" + }, + { + "id": 1000000006, + "name": "lamp post" + }, + { + "id": 1000000008, + "name": "tarpaulin" + } + ], + "carrying": [], + "present": [], + "foes": [], + "inscription": [], + "hp": 18, + "hp_of": {}, + "abilities": { + "strength": 12, + "dexterity": 12, + "will": 12 + }, + "dead": false, + "changed": true, + "change": "moved: the inn street -> the well square", + "refused": false, + "offers": null, + "understood": "move -> the well square", + "resolved_by": "grammar", + "note": null, + "drifts": 0, + "blows": 0, + "hazards": 0, + "quest": {}, + "volitions": 0, + "acts": 0, + "ending": "none", + "ending_words": null, + "scheduled": 0, + "fired": 0, + "elapsed_minutes": 0.0, + "shown": null + } + } + ] +} diff --git a/parity/records/a-town-laid-out-before-it-is-written.json b/parity/records/a-town-laid-out-before-it-is-written.json new file mode 100644 index 0000000..8aef563 --- /dev/null +++ b/parity/records/a-town-laid-out-before-it-is-written.json @@ -0,0 +1,14231 @@ +{ + "script": "a-town-laid-out-before-it-is-written", + "steps": [ + { + "step": "step 1 into-thornwick", + "requests": [ + { + "purpose": "location", + "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 1\nteaser: A square in Thornwick, 22 by 22 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis square is 22 by 22 paces -- about 33 by 33 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: The Shrine, which fronts it on the north side; to the east, Thornwick room 2; to the south, Thornwick room 4; a way out to The North Road, which is outside Thornwick. Those are every way out of this square.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: bench, lamp post, cart.\nIn the cart: tarpaulin.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS SQUARE. It is one square of Thornwick. The player reads the square and\n the town together -- \"the of Thornwick\" -- so name the SQUARE only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this square\n is and for what you have just described along it. Never a comma in it\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "schema": { + "name": "Location::DetailSchema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player sees, hears and smells standing in this place right now. Describe THIS place only -- not what neighbours it, not what is visible out of a window or across the way, because the world around it can move. Second person. One paragraph, 4 to 6 sentences.", + "maxLength": 1200 + }, + "lore": { + "type": "string", + "description": "What this place is, who made it and what happened here. Written for the game engine rather than the player. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "name": { + "type": "string", + "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "maxLength": 60 + }, + "items": { + "type": "array", + "description": "Portable things lying loose in this place that a player could pick up and carry away. Empty is the right answer for most rooms.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "What the thing is called, as a player would type it to pick it up. A short noun phrase, 1 to 4 words, lower case unless it is a proper name. Never the name of a person or of a place.", + "maxLength": 60 + }, + "description": { + "type": "string", + "description": "What it is and what state it is in, consistent with the description of the room you just wrote. One or two sentences.", + "maxLength": 400 + }, + "use_kind": { + "type": "string", + "enum": [ + "ordinary", + "food", + "drink", + "healing", + "firestarter", + "lever", + "lockpick", + "key" + ], + "description": "The engine's physical profile: ordinary unless it is food, a drink, a healing dose, a firestarter, a prying lever, lockpicks, or a key. Choose healing only for an actual restorative dose allowed by this world. Profiles supply behavior from code, never from the description." + }, + "combustible": { + "type": "boolean", + "description": "True only if this portable thing can be destroyed by an ordinary carried firestarter: dry paper, cloth or wood. False for stone, metal, liquids, or anything uncertain." + }, + "readable": { + "type": "boolean", + "description": "True only if this thing has WRITING on it that a player could read: a note, a letter, a label, a docket, a page, a sign, an inscription. False for everything else, which is most things." + }, + "inscription": { + "type": "string", + "description": "The words written on it, exactly as they appear, and only when `readable` is true. Write what is actually on the thing -- what a player would read off it -- not a description of it. A few words, a line, or a few short lines; well under the limit, and finished rather than trailing off. Leave this out entirely when nothing is written on it.", + "maxLength": 400 + } + }, + "required": [ + "name", + "description", + "use_kind", + "combustible", + "readable" + ], + "additionalProperties": false + }, + "maxItems": 3 + }, + "people": { + "type": "array", + "description": "People who are in this place right now.", + "items": { + "type": "object", + "properties": { + "fullname": { + "type": "string", + "description": "Their full name, as a player would type it to speak to them. 2 or 3 words.", + "maxLength": 60 + }, + "nickname": { + "type": "string", + "description": "What they are called to their face. 1 or 2 words.", + "maxLength": 30 + }, + "appearance": { + "type": "string", + "description": "What somebody walking in sees of them, consistent with the room you just wrote and with the race and age you were given for them. One or two sentences.", + "maxLength": 300 + }, + "personality": { + "type": "string", + "description": "How they behave and how they treat a stranger. One or two sentences.", + "maxLength": 300 + }, + "backstory": { + "type": "string", + "description": "The life history that brought them here, the repeated choices it taught them, and why today's presence presses on an enduring aim. Third person, by name. Two or three sentences.", + "maxLength": 450 + }, + "likes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they enjoy.", + "maxLength": 160 + }, + "dislikes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they cannot stand.", + "maxLength": 160 + }, + "fears": { + "type": "string", + "description": "A comma separated list of 1 or 2 things they are afraid of.", + "maxLength": 160 + }, + "conscious_desire": { + "type": "string", + "description": "The future, standing, relationship, legacy, place or way of life they knowingly organize their choices around and would name if asked what they want from their life. Make it specific to this person and world. Do not substitute the clue, deadline, delivery, payment or room they are dealing with today. One sentence, third person, by name.", + "maxLength": 180 + }, + "unconscious_desire": { + "type": "string", + "description": "The deeper reward their choices have pursued for years and they would deny: the recognition, absolution, dependence, belonging, power or intimacy beneath the conscious account. It explains a repeated pattern in the backstory and pulls at an angle to the conscious desire, not merely today's hidden motive. One sentence, third person, by name.", + "maxLength": 180 + }, + "recognized_need": { + "type": "string", + "description": "The duty, oath, debt, craft, family burden or bodily discipline they believe they must keep over years whether they want to or not. It predates today's assignment, survives it, and can repeatedly obstruct the conscious desire. One sentence, third person, by name.", + "maxLength": 180 + }, + "unrecognized_need": { + "type": "string", + "description": "The enduring change, truth or relationship their life requires and their repeated pattern prevents them from seeing. A reader can infer it from the backstory. It cannot be completed by one confession, realization or errand: it demands a new way of choosing across the story. If they never move toward it, pursuit of the conscious desire ruins them. It must not be the conscious desire said twice. One sentence, third person, by name.", + "maxLength": 180 + }, + "desire_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly advance or protect the CONSCIOUS DESIRE in ordinary rooms. The label is the next-step expression of the larger desire, not its timescale." + }, + "need_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly move them toward the UNRECOGNIZED NEED in ordinary rooms. It may match desire_pursuit, but a different label should reflect a real conflict rather than manufactured variety." + } + }, + "required": [ + "fullname", + "nickname", + "appearance", + "personality", + "backstory", + "likes", + "dislikes", + "fears", + "conscious_desire", + "unconscious_desire", + "recognized_need", + "unrecognized_need", + "desire_pursuit", + "need_pursuit" + ], + "additionalProperties": false + }, + "maxItems": 3 + } + }, + "required": [ + "description", + "lore" + ], + "additionalProperties": false, + "strict": true + } + } + }, + { + "purpose": "arrival", + "system": "You narrate a text adventure. You write the moment a player walks into a\nplace: what reaches them first, in the second person and the present\ntense. You never break character, never offer a numbered menu, and never\nmention that you are a narrator.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\nsummary: Wren walks the streets of Thornwick.\n\n## The Place\nname: the well square\ndescription: A wide cobbled square with a well at its middle and the shrine's steps on its north side.\nlore: The town was laid out from this well.\nways out: Thornwick room 2, Thornwick room 4, The North Road, The Shrine\n\n## Who Is Here\nWren (Wren), Townsfolk -- the player, the one arriving\n\n## Just Before This\nThe player has come from The North Road. Wren arrives on the north road.\n\n## Instructions\n- The player has never been here. This is the first time they have set\n foot in it\n- Narrate discovery: what catches them on the way in, before they\n have made sense of the rest\n- Address the player as \"you\", in the present tense\n- One paragraph. Do not re-describe the place item by item -- the\n description above is already what is here, and your job is the moment\n of coming into it\n- Anyone listed above is here; write them as already present, not as\n arriving. Do not add a person who is not on that list\n- Do not name a way out that is not on the list above\n- Respect the stated length of each field\n\n## Current State On Arrival\nThe place description is the world's original account. These current records\ntake precedence over its claims about people, items and wounds. Narrate the\nrecorded crossing result as part of this arrival.\nYou are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing.\n", + "schema": { + "name": "Scene::Schema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player experiences as they arrive here, right now. Second person, present tense. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "summary": { + "type": "string", + "description": "What happened in this moment, for the game engine rather than the player. Third person. One sentence.", + "maxLength": 200 + } + }, + "required": [ + "description", + "summary" + ], + "additionalProperties": false, + "strict": true + } + } + } + ], + "written": { + "locations": { + "rows": [ + { + "id": 1000000003, + "story_id": 1000000001, + "name": "Thornwick", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "stub", + "teaser": "A small town of three streets around a square.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 40, + "depth": 40, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": null, + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000006, + "story_id": 1000000001, + "name": "the well square", + "description": "A wide cobbled square with a well at its middle and the shrine's steps on its north side.", + "lore": "The town was laid out from this well.", + "last_protagonist_visit": "2026-12-03 08:01:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A square in Thornwick, 22 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 22, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "square", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000007, + "story_id": 1000000001, + "name": "Thornwick room 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A street in Thornwick, 18 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 0, + "z": 0, + "width": 18, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000008, + "story_id": 1000000001, + "name": "Thornwick room 3", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A street in Thornwick, 18 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 22, + "z": 0, + "width": 18, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000009, + "story_id": 1000000001, + "name": "Thornwick room 4", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A street in Thornwick, 22 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 22, + "z": 0, + "width": 22, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000010, + "story_id": 1000000001, + "name": "Thornwick shop 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A shop in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "shop", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000011, + "story_id": 1000000001, + "name": "Thornwick house 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A house in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "house", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000012, + "story_id": 1000000001, + "name": "Thornwick smithy 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 8, + "depth": 8, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000013, + "story_id": 1000000001, + "name": "Thornwick smithy 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "uneasy", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 6, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + } + ], + "removed": [] + }, + "location_connections": { + "rows": [ + { + "id": 1000000007, + "location_id": 1000000006, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000008, + "location_id": 1000000007, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000009, + "location_id": 1000000007, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000010, + "location_id": 1000000008, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000011, + "location_id": 1000000008, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000012, + "location_id": 1000000009, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000013, + "location_id": 1000000006, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000014, + "location_id": 1000000009, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000015, + "location_id": 1000000006, + "connected_location_id": 1000000001, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000016, + "location_id": 1000000001, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000017, + "location_id": 1000000006, + "connected_location_id": 1000000002, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000018, + "location_id": 1000000002, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000019, + "location_id": 1000000009, + "connected_location_id": 1000000004, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000020, + "location_id": 1000000004, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000021, + "location_id": 1000000007, + "connected_location_id": 1000000005, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000022, + "location_id": 1000000005, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000023, + "location_id": 1000000007, + "connected_location_id": 1000000010, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000024, + "location_id": 1000000010, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000025, + "location_id": 1000000008, + "connected_location_id": 1000000011, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000026, + "location_id": 1000000011, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000027, + "location_id": 1000000008, + "connected_location_id": 1000000012, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000028, + "location_id": 1000000012, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000029, + "location_id": 1000000009, + "connected_location_id": 1000000013, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000030, + "location_id": 1000000013, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + } + ], + "removed": [ + 1000000001, + 1000000002, + 1000000003, + 1000000004, + 1000000005, + 1000000006 + ] + }, + "characters": { + "rows": [], + "removed": [] + }, + "items": { + "rows": [ + { + "id": 1000000001, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000002, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000003, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000004, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000003, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000005, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000001, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000006, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000002, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000007, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000003, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000008, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000004, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000007, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + } + ], + "removed": [] + }, + "quest_steps": { + "rows": [], + "removed": [] + }, + "scenes": { + "rows": [ + { + "id": 1000000002, + "story_id": 1000000001, + "location_id": 1000000006, + "previous_scene_id": 1000000001, + "description": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:01:00", + "summary": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000003, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing." + } + ], + "removed": [] + }, + "characters_scenes": { + "rows": [ + { + "character_id": 1000000001, + "scene_id": 1000000002 + } + ], + "removed": [] + }, + "interactions": { + "rows": [], + "removed": [] + }, + "playthrough_endings": { + "rows": [], + "removed": [] + }, + "playthrough_beats": { + "rows": [], + "removed": [] + }, + "playthrough_npc_states": { + "rows": [], + "removed": [] + }, + "world_events": { + "rows": [], + "removed": [] + } + } + }, + { + "step": "step 2 along-the-first-street", + "requests": [ + { + "purpose": "location", + "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 2\nteaser: A street in Thornwick, 18 by 22 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 18 by 22 paces -- about 27 by 33 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: The Smithy, which fronts it on the north side; Thornwick shop 1, which fronts it on the east side; to the south, Thornwick room 3; to the west, the well square. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter, doorstep, notice board, bench.\nIn the gutter: button.\nOn the notice board: timetable.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "schema": { + "name": "Location::DetailSchema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player sees, hears and smells standing in this place right now. Describe THIS place only -- not what neighbours it, not what is visible out of a window or across the way, because the world around it can move. Second person. One paragraph, 4 to 6 sentences.", + "maxLength": 1200 + }, + "lore": { + "type": "string", + "description": "What this place is, who made it and what happened here. Written for the game engine rather than the player. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "name": { + "type": "string", + "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "maxLength": 60 + }, + "items": { + "type": "array", + "description": "Portable things lying loose in this place that a player could pick up and carry away. Empty is the right answer for most rooms.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "What the thing is called, as a player would type it to pick it up. A short noun phrase, 1 to 4 words, lower case unless it is a proper name. Never the name of a person or of a place.", + "maxLength": 60 + }, + "description": { + "type": "string", + "description": "What it is and what state it is in, consistent with the description of the room you just wrote. One or two sentences.", + "maxLength": 400 + }, + "use_kind": { + "type": "string", + "enum": [ + "ordinary", + "food", + "drink", + "healing", + "firestarter", + "lever", + "lockpick", + "key" + ], + "description": "The engine's physical profile: ordinary unless it is food, a drink, a healing dose, a firestarter, a prying lever, lockpicks, or a key. Choose healing only for an actual restorative dose allowed by this world. Profiles supply behavior from code, never from the description." + }, + "combustible": { + "type": "boolean", + "description": "True only if this portable thing can be destroyed by an ordinary carried firestarter: dry paper, cloth or wood. False for stone, metal, liquids, or anything uncertain." + }, + "readable": { + "type": "boolean", + "description": "True only if this thing has WRITING on it that a player could read: a note, a letter, a label, a docket, a page, a sign, an inscription. False for everything else, which is most things." + }, + "inscription": { + "type": "string", + "description": "The words written on it, exactly as they appear, and only when `readable` is true. Write what is actually on the thing -- what a player would read off it -- not a description of it. A few words, a line, or a few short lines; well under the limit, and finished rather than trailing off. Leave this out entirely when nothing is written on it.", + "maxLength": 400 + } + }, + "required": [ + "name", + "description", + "use_kind", + "combustible", + "readable" + ], + "additionalProperties": false + }, + "maxItems": 3 + }, + "people": { + "type": "array", + "description": "People who are in this place right now.", + "items": { + "type": "object", + "properties": { + "fullname": { + "type": "string", + "description": "Their full name, as a player would type it to speak to them. 2 or 3 words.", + "maxLength": 60 + }, + "nickname": { + "type": "string", + "description": "What they are called to their face. 1 or 2 words.", + "maxLength": 30 + }, + "appearance": { + "type": "string", + "description": "What somebody walking in sees of them, consistent with the room you just wrote and with the race and age you were given for them. One or two sentences.", + "maxLength": 300 + }, + "personality": { + "type": "string", + "description": "How they behave and how they treat a stranger. One or two sentences.", + "maxLength": 300 + }, + "backstory": { + "type": "string", + "description": "The life history that brought them here, the repeated choices it taught them, and why today's presence presses on an enduring aim. Third person, by name. Two or three sentences.", + "maxLength": 450 + }, + "likes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they enjoy.", + "maxLength": 160 + }, + "dislikes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they cannot stand.", + "maxLength": 160 + }, + "fears": { + "type": "string", + "description": "A comma separated list of 1 or 2 things they are afraid of.", + "maxLength": 160 + }, + "conscious_desire": { + "type": "string", + "description": "The future, standing, relationship, legacy, place or way of life they knowingly organize their choices around and would name if asked what they want from their life. Make it specific to this person and world. Do not substitute the clue, deadline, delivery, payment or room they are dealing with today. One sentence, third person, by name.", + "maxLength": 180 + }, + "unconscious_desire": { + "type": "string", + "description": "The deeper reward their choices have pursued for years and they would deny: the recognition, absolution, dependence, belonging, power or intimacy beneath the conscious account. It explains a repeated pattern in the backstory and pulls at an angle to the conscious desire, not merely today's hidden motive. One sentence, third person, by name.", + "maxLength": 180 + }, + "recognized_need": { + "type": "string", + "description": "The duty, oath, debt, craft, family burden or bodily discipline they believe they must keep over years whether they want to or not. It predates today's assignment, survives it, and can repeatedly obstruct the conscious desire. One sentence, third person, by name.", + "maxLength": 180 + }, + "unrecognized_need": { + "type": "string", + "description": "The enduring change, truth or relationship their life requires and their repeated pattern prevents them from seeing. A reader can infer it from the backstory. It cannot be completed by one confession, realization or errand: it demands a new way of choosing across the story. If they never move toward it, pursuit of the conscious desire ruins them. It must not be the conscious desire said twice. One sentence, third person, by name.", + "maxLength": 180 + }, + "desire_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly advance or protect the CONSCIOUS DESIRE in ordinary rooms. The label is the next-step expression of the larger desire, not its timescale." + }, + "need_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly move them toward the UNRECOGNIZED NEED in ordinary rooms. It may match desire_pursuit, but a different label should reflect a real conflict rather than manufactured variety." + } + }, + "required": [ + "fullname", + "nickname", + "appearance", + "personality", + "backstory", + "likes", + "dislikes", + "fears", + "conscious_desire", + "unconscious_desire", + "recognized_need", + "unrecognized_need", + "desire_pursuit", + "need_pursuit" + ], + "additionalProperties": false + }, + "maxItems": 3 + } + }, + "required": [ + "description", + "lore" + ], + "additionalProperties": false, + "strict": true + } + } + }, + { + "purpose": "arrival", + "system": "You narrate a text adventure. You write the moment a player walks into a\nplace: what reaches them first, in the second person and the present\ntense. You never break character, never offer a numbered menu, and never\nmention that you are a narrator.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\nsummary: Wren walks the streets of Thornwick.\n\n## The Place\nname: the forge lane\ndescription: A narrow street of soot-dark fronts running off the square, a forge glowing at one door.\nlore: The smiths took this street first.\nways out: the well square, Thornwick room 3, The Smithy, Thornwick shop 1\n\n## Who Is Here\nWren (Wren), Townsfolk -- the player, the one arriving\n\n## Just Before This\nThe player has come from the well square. You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.\n\n## Instructions\n- The player has never been here. This is the first time they have set\n foot in it\n- Narrate discovery: what catches them on the way in, before they\n have made sense of the rest\n- Address the player as \"you\", in the present tense\n- One paragraph. Do not re-describe the place item by item -- the\n description above is already what is here, and your job is the moment\n of coming into it\n- Anyone listed above is here; write them as already present, not as\n arriving. Do not add a person who is not on that list\n- Do not name a way out that is not on the list above\n- Respect the stated length of each field\n\n## Current State On Arrival\nThe place description is the world's original account. These current records\ntake precedence over its claims about people, items and wounds. Narrate the\nrecorded crossing result as part of this arrival.\nYou are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench.\nLying here: button, timetable.\nYou are carrying: nothing.\n", + "schema": { + "name": "Scene::Schema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player experiences as they arrive here, right now. Second person, present tense. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "summary": { + "type": "string", + "description": "What happened in this moment, for the game engine rather than the player. Third person. One sentence.", + "maxLength": 200 + } + }, + "required": [ + "description", + "summary" + ], + "additionalProperties": false, + "strict": true + } + } + } + ], + "written": { + "locations": { + "rows": [ + { + "id": 1000000003, + "story_id": 1000000001, + "name": "Thornwick", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "stub", + "teaser": "A small town of three streets around a square.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 40, + "depth": 40, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": null, + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000006, + "story_id": 1000000001, + "name": "the well square", + "description": "A wide cobbled square with a well at its middle and the shrine's steps on its north side.", + "lore": "The town was laid out from this well.", + "last_protagonist_visit": "2026-12-03 08:01:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A square in Thornwick, 22 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 22, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "square", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000007, + "story_id": 1000000001, + "name": "the forge lane", + "description": "A narrow street of soot-dark fronts running off the square, a forge glowing at one door.", + "lore": "The smiths took this street first.", + "last_protagonist_visit": "2026-12-03 08:02:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 0, + "z": 0, + "width": 18, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000008, + "story_id": 1000000001, + "name": "Thornwick room 3", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A street in Thornwick, 18 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 22, + "z": 0, + "width": 18, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000009, + "story_id": 1000000001, + "name": "Thornwick room 4", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A street in Thornwick, 22 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 22, + "z": 0, + "width": 22, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000010, + "story_id": 1000000001, + "name": "Thornwick shop 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A shop in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "shop", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000011, + "story_id": 1000000001, + "name": "Thornwick house 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A house in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "house", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000012, + "story_id": 1000000001, + "name": "Thornwick smithy 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 8, + "depth": 8, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000013, + "story_id": 1000000001, + "name": "Thornwick smithy 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "uneasy", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 6, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + } + ], + "removed": [] + }, + "location_connections": { + "rows": [ + { + "id": 1000000007, + "location_id": 1000000006, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000008, + "location_id": 1000000007, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000009, + "location_id": 1000000007, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000010, + "location_id": 1000000008, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000011, + "location_id": 1000000008, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000012, + "location_id": 1000000009, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000013, + "location_id": 1000000006, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000014, + "location_id": 1000000009, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000015, + "location_id": 1000000006, + "connected_location_id": 1000000001, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000016, + "location_id": 1000000001, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000017, + "location_id": 1000000006, + "connected_location_id": 1000000002, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000018, + "location_id": 1000000002, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000019, + "location_id": 1000000009, + "connected_location_id": 1000000004, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000020, + "location_id": 1000000004, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000021, + "location_id": 1000000007, + "connected_location_id": 1000000005, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000022, + "location_id": 1000000005, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000023, + "location_id": 1000000007, + "connected_location_id": 1000000010, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000024, + "location_id": 1000000010, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000025, + "location_id": 1000000008, + "connected_location_id": 1000000011, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000026, + "location_id": 1000000011, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000027, + "location_id": 1000000008, + "connected_location_id": 1000000012, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000028, + "location_id": 1000000012, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000029, + "location_id": 1000000009, + "connected_location_id": 1000000013, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000030, + "location_id": 1000000013, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + } + ], + "removed": [ + 1000000001, + 1000000002, + 1000000003, + 1000000004, + 1000000005, + 1000000006 + ] + }, + "characters": { + "rows": [], + "removed": [] + }, + "items": { + "rows": [ + { + "id": 1000000001, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000002, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000003, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000004, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000003, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000005, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000001, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000006, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000002, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000007, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000003, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000008, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000004, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000007, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000009, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000010, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000011, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000012, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000013, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000014, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000010, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000015, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 1, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000012, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000016, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000009, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000017, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000010, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000018, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000011, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000019, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000012, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000020, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000013, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000021, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000014, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000017, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000022, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 1, + "inscription": null, + "template_id": 1000000015, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000019, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + } + ], + "removed": [] + }, + "quest_steps": { + "rows": [], + "removed": [] + }, + "scenes": { + "rows": [ + { + "id": 1000000002, + "story_id": 1000000001, + "location_id": 1000000006, + "previous_scene_id": 1000000001, + "description": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:01:00", + "summary": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000003, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing." + }, + { + "id": 1000000003, + "story_id": 1000000001, + "location_id": 1000000007, + "previous_scene_id": 1000000002, + "description": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:02:00", + "summary": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 2", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000007, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench.\nLying here: button, timetable.\nYou are carrying: nothing." + } + ], + "removed": [] + }, + "characters_scenes": { + "rows": [ + { + "character_id": 1000000001, + "scene_id": 1000000002 + }, + { + "character_id": 1000000001, + "scene_id": 1000000003 + } + ], + "removed": [] + }, + "interactions": { + "rows": [], + "removed": [] + }, + "playthrough_endings": { + "rows": [], + "removed": [] + }, + "playthrough_beats": { + "rows": [], + "removed": [] + }, + "playthrough_npc_states": { + "rows": [], + "removed": [] + }, + "world_events": { + "rows": [], + "removed": [] + } + } + }, + { + "step": "step 3 along-the-second-street", + "requests": [ + { + "purpose": "location", + "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 3\nteaser: A street in Thornwick, 18 by 18 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 18 by 18 paces -- about 27 by 27 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: to the north, the forge lane; Thornwick house 1, which fronts it on the east side; Thornwick smithy 1, which fronts it on the south side; to the west, Thornwick room 4. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square; the forge lane\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "schema": { + "name": "Location::DetailSchema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player sees, hears and smells standing in this place right now. Describe THIS place only -- not what neighbours it, not what is visible out of a window or across the way, because the world around it can move. Second person. One paragraph, 4 to 6 sentences.", + "maxLength": 1200 + }, + "lore": { + "type": "string", + "description": "What this place is, who made it and what happened here. Written for the game engine rather than the player. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "name": { + "type": "string", + "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "maxLength": 60 + }, + "items": { + "type": "array", + "description": "Portable things lying loose in this place that a player could pick up and carry away. Empty is the right answer for most rooms.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "What the thing is called, as a player would type it to pick it up. A short noun phrase, 1 to 4 words, lower case unless it is a proper name. Never the name of a person or of a place.", + "maxLength": 60 + }, + "description": { + "type": "string", + "description": "What it is and what state it is in, consistent with the description of the room you just wrote. One or two sentences.", + "maxLength": 400 + }, + "use_kind": { + "type": "string", + "enum": [ + "ordinary", + "food", + "drink", + "healing", + "firestarter", + "lever", + "lockpick", + "key" + ], + "description": "The engine's physical profile: ordinary unless it is food, a drink, a healing dose, a firestarter, a prying lever, lockpicks, or a key. Choose healing only for an actual restorative dose allowed by this world. Profiles supply behavior from code, never from the description." + }, + "combustible": { + "type": "boolean", + "description": "True only if this portable thing can be destroyed by an ordinary carried firestarter: dry paper, cloth or wood. False for stone, metal, liquids, or anything uncertain." + }, + "readable": { + "type": "boolean", + "description": "True only if this thing has WRITING on it that a player could read: a note, a letter, a label, a docket, a page, a sign, an inscription. False for everything else, which is most things." + }, + "inscription": { + "type": "string", + "description": "The words written on it, exactly as they appear, and only when `readable` is true. Write what is actually on the thing -- what a player would read off it -- not a description of it. A few words, a line, or a few short lines; well under the limit, and finished rather than trailing off. Leave this out entirely when nothing is written on it.", + "maxLength": 400 + } + }, + "required": [ + "name", + "description", + "use_kind", + "combustible", + "readable" + ], + "additionalProperties": false + }, + "maxItems": 3 + }, + "people": { + "type": "array", + "description": "People who are in this place right now.", + "items": { + "type": "object", + "properties": { + "fullname": { + "type": "string", + "description": "Their full name, as a player would type it to speak to them. 2 or 3 words.", + "maxLength": 60 + }, + "nickname": { + "type": "string", + "description": "What they are called to their face. 1 or 2 words.", + "maxLength": 30 + }, + "appearance": { + "type": "string", + "description": "What somebody walking in sees of them, consistent with the room you just wrote and with the race and age you were given for them. One or two sentences.", + "maxLength": 300 + }, + "personality": { + "type": "string", + "description": "How they behave and how they treat a stranger. One or two sentences.", + "maxLength": 300 + }, + "backstory": { + "type": "string", + "description": "The life history that brought them here, the repeated choices it taught them, and why today's presence presses on an enduring aim. Third person, by name. Two or three sentences.", + "maxLength": 450 + }, + "likes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they enjoy.", + "maxLength": 160 + }, + "dislikes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they cannot stand.", + "maxLength": 160 + }, + "fears": { + "type": "string", + "description": "A comma separated list of 1 or 2 things they are afraid of.", + "maxLength": 160 + }, + "conscious_desire": { + "type": "string", + "description": "The future, standing, relationship, legacy, place or way of life they knowingly organize their choices around and would name if asked what they want from their life. Make it specific to this person and world. Do not substitute the clue, deadline, delivery, payment or room they are dealing with today. One sentence, third person, by name.", + "maxLength": 180 + }, + "unconscious_desire": { + "type": "string", + "description": "The deeper reward their choices have pursued for years and they would deny: the recognition, absolution, dependence, belonging, power or intimacy beneath the conscious account. It explains a repeated pattern in the backstory and pulls at an angle to the conscious desire, not merely today's hidden motive. One sentence, third person, by name.", + "maxLength": 180 + }, + "recognized_need": { + "type": "string", + "description": "The duty, oath, debt, craft, family burden or bodily discipline they believe they must keep over years whether they want to or not. It predates today's assignment, survives it, and can repeatedly obstruct the conscious desire. One sentence, third person, by name.", + "maxLength": 180 + }, + "unrecognized_need": { + "type": "string", + "description": "The enduring change, truth or relationship their life requires and their repeated pattern prevents them from seeing. A reader can infer it from the backstory. It cannot be completed by one confession, realization or errand: it demands a new way of choosing across the story. If they never move toward it, pursuit of the conscious desire ruins them. It must not be the conscious desire said twice. One sentence, third person, by name.", + "maxLength": 180 + }, + "desire_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly advance or protect the CONSCIOUS DESIRE in ordinary rooms. The label is the next-step expression of the larger desire, not its timescale." + }, + "need_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly move them toward the UNRECOGNIZED NEED in ordinary rooms. It may match desire_pursuit, but a different label should reflect a real conflict rather than manufactured variety." + } + }, + "required": [ + "fullname", + "nickname", + "appearance", + "personality", + "backstory", + "likes", + "dislikes", + "fears", + "conscious_desire", + "unconscious_desire", + "recognized_need", + "unrecognized_need", + "desire_pursuit", + "need_pursuit" + ], + "additionalProperties": false + }, + "maxItems": 3 + } + }, + "required": [ + "description", + "lore" + ], + "additionalProperties": false, + "strict": true + } + } + }, + { + "purpose": "arrival", + "system": "You narrate a text adventure. You write the moment a player walks into a\nplace: what reaches them first, in the second person and the present\ntense. You never break character, never offer a numbered menu, and never\nmention that you are a narrator.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\nsummary: Wren walks the streets of Thornwick.\n\n## The Place\nname: the tanners' row\ndescription: A long street of tall narrow houses, washing strung between the upper windows.\nlore: The tanners lived here before the river moved.\nways out: the forge lane, Thornwick room 4, Thornwick house 1, Thornwick smithy 1\n\n## Who Is Here\nWren (Wren), Townsfolk -- the player, the one arriving\n\n## Just Before This\nThe player has come from the forge lane. You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.\n\n## Instructions\n- The player has never been here. This is the first time they have set\n foot in it\n- Narrate discovery: what catches them on the way in, before they\n have made sense of the rest\n- Address the player as \"you\", in the present tense\n- One paragraph. Do not re-describe the place item by item -- the\n description above is already what is here, and your job is the moment\n of coming into it\n- Anyone listed above is here; write them as already present, not as\n arriving. Do not add a person who is not on that list\n- Do not name a way out that is not on the list above\n- Respect the stated length of each field\n\n## Current State On Arrival\nThe place description is the world's original account. These current records\ntake precedence over its claims about people, items and wounds. Narrate the\nrecorded crossing result as part of this arrival.\nYou are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter.\nLying here: nothing.\nYou are carrying: nothing.\n", + "schema": { + "name": "Scene::Schema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player experiences as they arrive here, right now. Second person, present tense. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "summary": { + "type": "string", + "description": "What happened in this moment, for the game engine rather than the player. Third person. One sentence.", + "maxLength": 200 + } + }, + "required": [ + "description", + "summary" + ], + "additionalProperties": false, + "strict": true + } + } + } + ], + "written": { + "locations": { + "rows": [ + { + "id": 1000000003, + "story_id": 1000000001, + "name": "Thornwick", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "stub", + "teaser": "A small town of three streets around a square.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 40, + "depth": 40, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": null, + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000006, + "story_id": 1000000001, + "name": "the well square", + "description": "A wide cobbled square with a well at its middle and the shrine's steps on its north side.", + "lore": "The town was laid out from this well.", + "last_protagonist_visit": "2026-12-03 08:01:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A square in Thornwick, 22 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 22, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "square", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000007, + "story_id": 1000000001, + "name": "the forge lane", + "description": "A narrow street of soot-dark fronts running off the square, a forge glowing at one door.", + "lore": "The smiths took this street first.", + "last_protagonist_visit": "2026-12-03 08:02:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 0, + "z": 0, + "width": 18, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000008, + "story_id": 1000000001, + "name": "the tanners' row", + "description": "A long street of tall narrow houses, washing strung between the upper windows.", + "lore": "The tanners lived here before the river moved.", + "last_protagonist_visit": "2026-12-03 08:03:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 22, + "z": 0, + "width": 18, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000009, + "story_id": 1000000001, + "name": "Thornwick room 4", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A street in Thornwick, 22 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 22, + "z": 0, + "width": 22, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000010, + "story_id": 1000000001, + "name": "Thornwick shop 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A shop in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "shop", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000011, + "story_id": 1000000001, + "name": "Thornwick house 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A house in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "house", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000012, + "story_id": 1000000001, + "name": "Thornwick smithy 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 8, + "depth": 8, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000013, + "story_id": 1000000001, + "name": "Thornwick smithy 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "uneasy", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 6, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + } + ], + "removed": [] + }, + "location_connections": { + "rows": [ + { + "id": 1000000007, + "location_id": 1000000006, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000008, + "location_id": 1000000007, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000009, + "location_id": 1000000007, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000010, + "location_id": 1000000008, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000011, + "location_id": 1000000008, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000012, + "location_id": 1000000009, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000013, + "location_id": 1000000006, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000014, + "location_id": 1000000009, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000015, + "location_id": 1000000006, + "connected_location_id": 1000000001, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000016, + "location_id": 1000000001, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000017, + "location_id": 1000000006, + "connected_location_id": 1000000002, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000018, + "location_id": 1000000002, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000019, + "location_id": 1000000009, + "connected_location_id": 1000000004, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000020, + "location_id": 1000000004, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000021, + "location_id": 1000000007, + "connected_location_id": 1000000005, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000022, + "location_id": 1000000005, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000023, + "location_id": 1000000007, + "connected_location_id": 1000000010, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000024, + "location_id": 1000000010, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000025, + "location_id": 1000000008, + "connected_location_id": 1000000011, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000026, + "location_id": 1000000011, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000027, + "location_id": 1000000008, + "connected_location_id": 1000000012, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000028, + "location_id": 1000000012, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000029, + "location_id": 1000000009, + "connected_location_id": 1000000013, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000030, + "location_id": 1000000013, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + } + ], + "removed": [ + 1000000001, + 1000000002, + 1000000003, + 1000000004, + 1000000005, + 1000000006 + ] + }, + "characters": { + "rows": [], + "removed": [] + }, + "items": { + "rows": [ + { + "id": 1000000001, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000002, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000003, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000004, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000003, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000005, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000001, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000006, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000002, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000007, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000003, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000008, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000004, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000007, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000009, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000010, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000011, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000012, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000013, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000014, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000010, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000015, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 1, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000012, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000016, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000009, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000017, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000010, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000018, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000011, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000019, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000012, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000020, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000013, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000021, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000014, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000017, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000022, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 1, + "inscription": null, + "template_id": 1000000015, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000019, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000023, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000024, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000025, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000023, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000026, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000024, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + } + ], + "removed": [] + }, + "quest_steps": { + "rows": [], + "removed": [] + }, + "scenes": { + "rows": [ + { + "id": 1000000002, + "story_id": 1000000001, + "location_id": 1000000006, + "previous_scene_id": 1000000001, + "description": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:01:00", + "summary": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000003, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing." + }, + { + "id": 1000000003, + "story_id": 1000000001, + "location_id": 1000000007, + "previous_scene_id": 1000000002, + "description": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:02:00", + "summary": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 2", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000007, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench.\nLying here: button, timetable.\nYou are carrying: nothing." + }, + { + "id": 1000000004, + "story_id": 1000000001, + "location_id": 1000000008, + "previous_scene_id": 1000000003, + "description": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:03:00", + "summary": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 3", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000008, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter.\nLying here: nothing.\nYou are carrying: nothing." + } + ], + "removed": [] + }, + "characters_scenes": { + "rows": [ + { + "character_id": 1000000001, + "scene_id": 1000000002 + }, + { + "character_id": 1000000001, + "scene_id": 1000000003 + }, + { + "character_id": 1000000001, + "scene_id": 1000000004 + } + ], + "removed": [] + }, + "interactions": { + "rows": [], + "removed": [] + }, + "playthrough_endings": { + "rows": [], + "removed": [] + }, + "playthrough_beats": { + "rows": [], + "removed": [] + }, + "playthrough_npc_states": { + "rows": [], + "removed": [] + }, + "world_events": { + "rows": [], + "removed": [] + } + } + }, + { + "step": "step 4 along-the-third-street", + "requests": [ + { + "purpose": "location", + "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 4\nteaser: A street in Thornwick, 22 by 18 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 22 by 18 paces -- about 33 by 27 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: to the north, the well square; to the east, the tanners' row; The Inn, which fronts it on the south side; Thornwick smithy 2, which fronts it on the west side. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter, bench.\nIn the gutter: bent nail, button.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square; the forge lane; the tanners' row\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "schema": { + "name": "Location::DetailSchema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player sees, hears and smells standing in this place right now. Describe THIS place only -- not what neighbours it, not what is visible out of a window or across the way, because the world around it can move. Second person. One paragraph, 4 to 6 sentences.", + "maxLength": 1200 + }, + "lore": { + "type": "string", + "description": "What this place is, who made it and what happened here. Written for the game engine rather than the player. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "name": { + "type": "string", + "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "maxLength": 60 + }, + "items": { + "type": "array", + "description": "Portable things lying loose in this place that a player could pick up and carry away. Empty is the right answer for most rooms.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "What the thing is called, as a player would type it to pick it up. A short noun phrase, 1 to 4 words, lower case unless it is a proper name. Never the name of a person or of a place.", + "maxLength": 60 + }, + "description": { + "type": "string", + "description": "What it is and what state it is in, consistent with the description of the room you just wrote. One or two sentences.", + "maxLength": 400 + }, + "use_kind": { + "type": "string", + "enum": [ + "ordinary", + "food", + "drink", + "healing", + "firestarter", + "lever", + "lockpick", + "key" + ], + "description": "The engine's physical profile: ordinary unless it is food, a drink, a healing dose, a firestarter, a prying lever, lockpicks, or a key. Choose healing only for an actual restorative dose allowed by this world. Profiles supply behavior from code, never from the description." + }, + "combustible": { + "type": "boolean", + "description": "True only if this portable thing can be destroyed by an ordinary carried firestarter: dry paper, cloth or wood. False for stone, metal, liquids, or anything uncertain." + }, + "readable": { + "type": "boolean", + "description": "True only if this thing has WRITING on it that a player could read: a note, a letter, a label, a docket, a page, a sign, an inscription. False for everything else, which is most things." + }, + "inscription": { + "type": "string", + "description": "The words written on it, exactly as they appear, and only when `readable` is true. Write what is actually on the thing -- what a player would read off it -- not a description of it. A few words, a line, or a few short lines; well under the limit, and finished rather than trailing off. Leave this out entirely when nothing is written on it.", + "maxLength": 400 + } + }, + "required": [ + "name", + "description", + "use_kind", + "combustible", + "readable" + ], + "additionalProperties": false + }, + "maxItems": 3 + }, + "people": { + "type": "array", + "description": "People who are in this place right now.", + "items": { + "type": "object", + "properties": { + "fullname": { + "type": "string", + "description": "Their full name, as a player would type it to speak to them. 2 or 3 words.", + "maxLength": 60 + }, + "nickname": { + "type": "string", + "description": "What they are called to their face. 1 or 2 words.", + "maxLength": 30 + }, + "appearance": { + "type": "string", + "description": "What somebody walking in sees of them, consistent with the room you just wrote and with the race and age you were given for them. One or two sentences.", + "maxLength": 300 + }, + "personality": { + "type": "string", + "description": "How they behave and how they treat a stranger. One or two sentences.", + "maxLength": 300 + }, + "backstory": { + "type": "string", + "description": "The life history that brought them here, the repeated choices it taught them, and why today's presence presses on an enduring aim. Third person, by name. Two or three sentences.", + "maxLength": 450 + }, + "likes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they enjoy.", + "maxLength": 160 + }, + "dislikes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they cannot stand.", + "maxLength": 160 + }, + "fears": { + "type": "string", + "description": "A comma separated list of 1 or 2 things they are afraid of.", + "maxLength": 160 + }, + "conscious_desire": { + "type": "string", + "description": "The future, standing, relationship, legacy, place or way of life they knowingly organize their choices around and would name if asked what they want from their life. Make it specific to this person and world. Do not substitute the clue, deadline, delivery, payment or room they are dealing with today. One sentence, third person, by name.", + "maxLength": 180 + }, + "unconscious_desire": { + "type": "string", + "description": "The deeper reward their choices have pursued for years and they would deny: the recognition, absolution, dependence, belonging, power or intimacy beneath the conscious account. It explains a repeated pattern in the backstory and pulls at an angle to the conscious desire, not merely today's hidden motive. One sentence, third person, by name.", + "maxLength": 180 + }, + "recognized_need": { + "type": "string", + "description": "The duty, oath, debt, craft, family burden or bodily discipline they believe they must keep over years whether they want to or not. It predates today's assignment, survives it, and can repeatedly obstruct the conscious desire. One sentence, third person, by name.", + "maxLength": 180 + }, + "unrecognized_need": { + "type": "string", + "description": "The enduring change, truth or relationship their life requires and their repeated pattern prevents them from seeing. A reader can infer it from the backstory. It cannot be completed by one confession, realization or errand: it demands a new way of choosing across the story. If they never move toward it, pursuit of the conscious desire ruins them. It must not be the conscious desire said twice. One sentence, third person, by name.", + "maxLength": 180 + }, + "desire_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly advance or protect the CONSCIOUS DESIRE in ordinary rooms. The label is the next-step expression of the larger desire, not its timescale." + }, + "need_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly move them toward the UNRECOGNIZED NEED in ordinary rooms. It may match desire_pursuit, but a different label should reflect a real conflict rather than manufactured variety." + } + }, + "required": [ + "fullname", + "nickname", + "appearance", + "personality", + "backstory", + "likes", + "dislikes", + "fears", + "conscious_desire", + "unconscious_desire", + "recognized_need", + "unrecognized_need", + "desire_pursuit", + "need_pursuit" + ], + "additionalProperties": false + }, + "maxItems": 3 + } + }, + "required": [ + "description", + "lore" + ], + "additionalProperties": false, + "strict": true + } + } + }, + { + "purpose": "arrival", + "system": "You narrate a text adventure. You write the moment a player walks into a\nplace: what reaches them first, in the second person and the present\ntense. You never break character, never offer a numbered menu, and never\nmention that you are a narrator.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\nsummary: Wren walks the streets of Thornwick.\n\n## The Place\nname: the inn street\ndescription: A short street that bends back to the square, the inn's painted sign hanging over it.\nlore: Drovers stop here on the way to market.\nways out: the tanners' row, the well square, The Inn, Thornwick smithy 2\n\n## Who Is Here\nWren (Wren), Townsfolk -- the player, the one arriving\n\n## Just Before This\nThe player has come from the tanners' row. You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.\n\n## Instructions\n- The player has never been here. This is the first time they have set\n foot in it\n- Narrate discovery: what catches them on the way in, before they\n have made sense of the rest\n- Address the player as \"you\", in the present tense\n- One paragraph. Do not re-describe the place item by item -- the\n description above is already what is here, and your job is the moment\n of coming into it\n- Anyone listed above is here; write them as already present, not as\n arriving. Do not add a person who is not on that list\n- Do not name a way out that is not on the list above\n- Respect the stated length of each field\n\n## Current State On Arrival\nThe place description is the world's original account. These current records\ntake precedence over its claims about people, items and wounds. Narrate the\nrecorded crossing result as part of this arrival.\nYou are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, bench.\nLying here: bent nail, button.\nYou are carrying: nothing.\n", + "schema": { + "name": "Scene::Schema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player experiences as they arrive here, right now. Second person, present tense. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "summary": { + "type": "string", + "description": "What happened in this moment, for the game engine rather than the player. Third person. One sentence.", + "maxLength": 200 + } + }, + "required": [ + "description", + "summary" + ], + "additionalProperties": false, + "strict": true + } + } + } + ], + "written": { + "locations": { + "rows": [ + { + "id": 1000000003, + "story_id": 1000000001, + "name": "Thornwick", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "stub", + "teaser": "A small town of three streets around a square.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 40, + "depth": 40, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": null, + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000006, + "story_id": 1000000001, + "name": "the well square", + "description": "A wide cobbled square with a well at its middle and the shrine's steps on its north side.", + "lore": "The town was laid out from this well.", + "last_protagonist_visit": "2026-12-03 08:01:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A square in Thornwick, 22 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 22, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "square", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000007, + "story_id": 1000000001, + "name": "the forge lane", + "description": "A narrow street of soot-dark fronts running off the square, a forge glowing at one door.", + "lore": "The smiths took this street first.", + "last_protagonist_visit": "2026-12-03 08:02:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 0, + "z": 0, + "width": 18, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000008, + "story_id": 1000000001, + "name": "the tanners' row", + "description": "A long street of tall narrow houses, washing strung between the upper windows.", + "lore": "The tanners lived here before the river moved.", + "last_protagonist_visit": "2026-12-03 08:03:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 22, + "z": 0, + "width": 18, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000009, + "story_id": 1000000001, + "name": "the inn street", + "description": "A short street that bends back to the square, the inn's painted sign hanging over it.", + "lore": "Drovers stop here on the way to market.", + "last_protagonist_visit": "2026-12-03 08:04:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 22 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 22, + "z": 0, + "width": 22, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000010, + "story_id": 1000000001, + "name": "Thornwick shop 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A shop in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "shop", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000011, + "story_id": 1000000001, + "name": "Thornwick house 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A house in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "house", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000012, + "story_id": 1000000001, + "name": "Thornwick smithy 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 8, + "depth": 8, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000013, + "story_id": 1000000001, + "name": "Thornwick smithy 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "uneasy", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 6, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + } + ], + "removed": [] + }, + "location_connections": { + "rows": [ + { + "id": 1000000007, + "location_id": 1000000006, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000008, + "location_id": 1000000007, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000009, + "location_id": 1000000007, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000010, + "location_id": 1000000008, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000011, + "location_id": 1000000008, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000012, + "location_id": 1000000009, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000013, + "location_id": 1000000006, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000014, + "location_id": 1000000009, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000015, + "location_id": 1000000006, + "connected_location_id": 1000000001, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000016, + "location_id": 1000000001, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000017, + "location_id": 1000000006, + "connected_location_id": 1000000002, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000018, + "location_id": 1000000002, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000019, + "location_id": 1000000009, + "connected_location_id": 1000000004, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000020, + "location_id": 1000000004, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000021, + "location_id": 1000000007, + "connected_location_id": 1000000005, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000022, + "location_id": 1000000005, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000023, + "location_id": 1000000007, + "connected_location_id": 1000000010, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000024, + "location_id": 1000000010, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000025, + "location_id": 1000000008, + "connected_location_id": 1000000011, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000026, + "location_id": 1000000011, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000027, + "location_id": 1000000008, + "connected_location_id": 1000000012, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000028, + "location_id": 1000000012, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000029, + "location_id": 1000000009, + "connected_location_id": 1000000013, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000030, + "location_id": 1000000013, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + } + ], + "removed": [ + 1000000001, + 1000000002, + 1000000003, + 1000000004, + 1000000005, + 1000000006 + ] + }, + "characters": { + "rows": [], + "removed": [] + }, + "items": { + "rows": [ + { + "id": 1000000001, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000002, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000003, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000004, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000003, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000005, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000001, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000006, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000002, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000007, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000003, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000008, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000004, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000007, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000009, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000010, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000011, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000012, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000013, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000014, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000010, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000015, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 1, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000012, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000016, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000009, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000017, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000010, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000018, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000011, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000019, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000012, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000020, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000013, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000021, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000014, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000017, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000022, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 1, + "inscription": null, + "template_id": 1000000015, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000019, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000023, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000024, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000025, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000023, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000026, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000024, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000027, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000028, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000029, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000030, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000031, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000032, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000027, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000033, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000028, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000034, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000029, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000035, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000030, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000036, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000031, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + } + ], + "removed": [] + }, + "quest_steps": { + "rows": [], + "removed": [] + }, + "scenes": { + "rows": [ + { + "id": 1000000002, + "story_id": 1000000001, + "location_id": 1000000006, + "previous_scene_id": 1000000001, + "description": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:01:00", + "summary": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000003, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing." + }, + { + "id": 1000000003, + "story_id": 1000000001, + "location_id": 1000000007, + "previous_scene_id": 1000000002, + "description": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:02:00", + "summary": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 2", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000007, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench.\nLying here: button, timetable.\nYou are carrying: nothing." + }, + { + "id": 1000000004, + "story_id": 1000000001, + "location_id": 1000000008, + "previous_scene_id": 1000000003, + "description": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:03:00", + "summary": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 3", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000008, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter.\nLying here: nothing.\nYou are carrying: nothing." + }, + { + "id": 1000000005, + "story_id": 1000000001, + "location_id": 1000000009, + "previous_scene_id": 1000000004, + "description": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:04:00", + "summary": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 4", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000009, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, bench.\nLying here: bent nail, button.\nYou are carrying: nothing." + } + ], + "removed": [] + }, + "characters_scenes": { + "rows": [ + { + "character_id": 1000000001, + "scene_id": 1000000002 + }, + { + "character_id": 1000000001, + "scene_id": 1000000003 + }, + { + "character_id": 1000000001, + "scene_id": 1000000004 + }, + { + "character_id": 1000000001, + "scene_id": 1000000005 + } + ], + "removed": [] + }, + "interactions": { + "rows": [], + "removed": [] + }, + "playthrough_endings": { + "rows": [], + "removed": [] + }, + "playthrough_beats": { + "rows": [], + "removed": [] + }, + "playthrough_npc_states": { + "rows": [], + "removed": [] + }, + "world_events": { + "rows": [], + "removed": [] + } + } + }, + { + "step": "step 5 into-the-inn", + "requests": [ + { + "purpose": "location", + "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: The Inn\nteaser: A low inn with a painted sign over its door.\n\n## Instructions\nWrite this place out in full. It is a BUILDING -- somewhere with rooms\ninside it that a player walks into and moves around in.\n- The description is what the player reads as they come in. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Do NOT describe the floor plan: how many rooms there are, where the stairs\n are and which door leads where are the game's to decide, out of the answers\n below, and it will tell you room by room as the player reaches them\n- Do not name anybody standing here and do not list anything lying here.\n People and things belong to the rooms, and each room is written as it is\n reached\n- Respect the stated length of each field\n\n## What Kind Of Building This Is\nThe game lays the inside out itself -- every room, every door, every stair\n-- from the answers to these, and then writes each room as the player\nreaches it. You are choosing what KIND of place this is, not drawing it.\n- Answer for the place you have just described and for the story it stands in\n- Every one of them can be left out, and the quietest answer is usually the\n right one: one floor, nothing underneath, nothing dangerous, nothing that\n hurts you\n- A HAZARD is not atmosphere. It takes hit points off everybody who walks\n through those rooms, every turn in some cases, so pick one only for a\n place that really is flooded, unlit, silent or airless\n- A GRADIENT is only worth saying when the place itself makes it true: a\n cellar that gets worse the further down you go, a tower that gets worse\n the higher you climb\n", + "schema": { + "name": "Location::PlaceSchema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player sees, hears and smells standing in this place right now. Describe THIS place only -- not what neighbours it, not what is visible out of a window or across the way, because the world around it can move. Second person. One paragraph, 4 to 6 sentences.", + "maxLength": 1200 + }, + "lore": { + "type": "string", + "description": "What this place is, who made it and what happened here. Written for the game engine rather than the player. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "place_kind": { + "type": "string", + "enum": [ + "house", + "farmhouse", + "mansion", + "apartment block", + "inn", + "shop", + "office building", + "guildhall", + "workshop", + "smithy", + "mill", + "factory", + "warehouse", + "barn", + "temple", + "library", + "school", + "hospital", + "theatre", + "bathhouse", + "barracks", + "fortress", + "jail", + "tower", + "lighthouse", + "warren", + "ruin", + "spaceship", + "space station" + ], + "description": "What sort of place with rooms this is -- a building, a ship, a station -- as the game will lay out and furnish its rooms: pick the closest. The game decides which rooms it has and what stands in each; you describe it from outside and at its way in." + }, + "parameters": { + "type": "object", + "properties": { + "storeys_above": { + "type": "string", + "enum": [ + "ground floor only", + "one storey up", + "two storeys up" + ], + "description": "How far up it goes, counting the ground floor. Most buildings are one floor." + }, + "storeys_below": { + "type": "string", + "enum": [ + "none", + "a cellar", + "two levels down", + "deep" + ], + "description": "How far down it goes below the ground floor. Most buildings have nothing under them." + }, + "danger": { + "type": "string", + "enum": [ + "safe", + "uneasy", + "dangerous" + ], + "description": "How likely a room of it is to hold something that means the player harm. Most buildings are safe." + }, + "gradient": { + "type": "string", + "enum": [ + "the same throughout", + "worse the deeper you go", + "worse the higher you climb" + ], + "description": "Whether that gets worse in one direction. Only say so when the place itself makes it true -- a cellar that gets worse the further down you go, a tower that gets worse the higher you climb." + }, + "hazard": { + "type": "string", + "enum": [ + "none", + "flooded", + "unlit", + "silent", + "airless" + ], + "description": "What standing in its rooms does to a person, if anything. NONE is the right answer for almost every building: this is not atmosphere, it is a place that takes hit points off whoever walks through it." + } + }, + "required": [], + "additionalProperties": false, + "description": "What kind of building this is. Every field is optional; leave one out and the game takes the quietest option. Answer for the place you have just described." + } + }, + "required": [ + "description", + "lore" + ], + "additionalProperties": false, + "strict": true + } + } + }, + { + "purpose": "location", + "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: The Inn room 1\nteaser: A room inside The Inn, 5 by 9 paces on storey 0.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis room is 5 by 9 paces -- about 8 by 14 metres. It is on storey 0 of The Inn, which is 10 by 9 paces across; storey 0 is the ground floor. Its ways out: a door in the east wall, to The Inn room 2; a stair up to The Inn room 3, on storey 1; a way out to the inn street, which is outside The Inn. Those are every way out of this room.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: table, benches, shelves, cupboard (unsearched).\nOn the table: deck of cards, candle.\nOn the shelves: bowl, jar.\nNobody has searched the cupboard yet, so do not say what is in it.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS ROOM. It is one room inside The Inn. The player reads the room and\n the place together -- \"the of The Inn\" -- so name the ROOM only,\n and never put the place's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the counting room\", \"the cold\n store\", \"the harbourmaster's office\". Name it for what the floor plan above\n says this room is and for what you have just described standing in it. Never\n a comma in it\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "schema": { + "name": "Location::DetailSchema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player sees, hears and smells standing in this place right now. Describe THIS place only -- not what neighbours it, not what is visible out of a window or across the way, because the world around it can move. Second person. One paragraph, 4 to 6 sentences.", + "maxLength": 1200 + }, + "lore": { + "type": "string", + "description": "What this place is, who made it and what happened here. Written for the game engine rather than the player. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "name": { + "type": "string", + "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "maxLength": 60 + }, + "items": { + "type": "array", + "description": "Portable things lying loose in this place that a player could pick up and carry away. Empty is the right answer for most rooms.", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "What the thing is called, as a player would type it to pick it up. A short noun phrase, 1 to 4 words, lower case unless it is a proper name. Never the name of a person or of a place.", + "maxLength": 60 + }, + "description": { + "type": "string", + "description": "What it is and what state it is in, consistent with the description of the room you just wrote. One or two sentences.", + "maxLength": 400 + }, + "use_kind": { + "type": "string", + "enum": [ + "ordinary", + "food", + "drink", + "healing", + "firestarter", + "lever", + "lockpick", + "key" + ], + "description": "The engine's physical profile: ordinary unless it is food, a drink, a healing dose, a firestarter, a prying lever, lockpicks, or a key. Choose healing only for an actual restorative dose allowed by this world. Profiles supply behavior from code, never from the description." + }, + "combustible": { + "type": "boolean", + "description": "True only if this portable thing can be destroyed by an ordinary carried firestarter: dry paper, cloth or wood. False for stone, metal, liquids, or anything uncertain." + }, + "readable": { + "type": "boolean", + "description": "True only if this thing has WRITING on it that a player could read: a note, a letter, a label, a docket, a page, a sign, an inscription. False for everything else, which is most things." + }, + "inscription": { + "type": "string", + "description": "The words written on it, exactly as they appear, and only when `readable` is true. Write what is actually on the thing -- what a player would read off it -- not a description of it. A few words, a line, or a few short lines; well under the limit, and finished rather than trailing off. Leave this out entirely when nothing is written on it.", + "maxLength": 400 + } + }, + "required": [ + "name", + "description", + "use_kind", + "combustible", + "readable" + ], + "additionalProperties": false + }, + "maxItems": 3 + }, + "people": { + "type": "array", + "description": "People who are in this place right now.", + "items": { + "type": "object", + "properties": { + "fullname": { + "type": "string", + "description": "Their full name, as a player would type it to speak to them. 2 or 3 words.", + "maxLength": 60 + }, + "nickname": { + "type": "string", + "description": "What they are called to their face. 1 or 2 words.", + "maxLength": 30 + }, + "appearance": { + "type": "string", + "description": "What somebody walking in sees of them, consistent with the room you just wrote and with the race and age you were given for them. One or two sentences.", + "maxLength": 300 + }, + "personality": { + "type": "string", + "description": "How they behave and how they treat a stranger. One or two sentences.", + "maxLength": 300 + }, + "backstory": { + "type": "string", + "description": "The life history that brought them here, the repeated choices it taught them, and why today's presence presses on an enduring aim. Third person, by name. Two or three sentences.", + "maxLength": 450 + }, + "likes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they enjoy.", + "maxLength": 160 + }, + "dislikes": { + "type": "string", + "description": "A comma separated list of 2 or 3 things they cannot stand.", + "maxLength": 160 + }, + "fears": { + "type": "string", + "description": "A comma separated list of 1 or 2 things they are afraid of.", + "maxLength": 160 + }, + "conscious_desire": { + "type": "string", + "description": "The future, standing, relationship, legacy, place or way of life they knowingly organize their choices around and would name if asked what they want from their life. Make it specific to this person and world. Do not substitute the clue, deadline, delivery, payment or room they are dealing with today. One sentence, third person, by name.", + "maxLength": 180 + }, + "unconscious_desire": { + "type": "string", + "description": "The deeper reward their choices have pursued for years and they would deny: the recognition, absolution, dependence, belonging, power or intimacy beneath the conscious account. It explains a repeated pattern in the backstory and pulls at an angle to the conscious desire, not merely today's hidden motive. One sentence, third person, by name.", + "maxLength": 180 + }, + "recognized_need": { + "type": "string", + "description": "The duty, oath, debt, craft, family burden or bodily discipline they believe they must keep over years whether they want to or not. It predates today's assignment, survives it, and can repeatedly obstruct the conscious desire. One sentence, third person, by name.", + "maxLength": 180 + }, + "unrecognized_need": { + "type": "string", + "description": "The enduring change, truth or relationship their life requires and their repeated pattern prevents them from seeing. A reader can infer it from the backstory. It cannot be completed by one confession, realization or errand: it demands a new way of choosing across the story. If they never move toward it, pursuit of the conscious desire ruins them. It must not be the conscious desire said twice. One sentence, third person, by name.", + "maxLength": 180 + }, + "desire_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly advance or protect the CONSCIOUS DESIRE in ordinary rooms. The label is the next-step expression of the larger desire, not its timescale." + }, + "need_pursuit": { + "type": "string", + "enum": [ + "keep", + "obtain", + "reach", + "attend", + "avoid", + "withhold", + "offer" + ], + "description": "Which listed ENGINE ACT could repeatedly move them toward the UNRECOGNIZED NEED in ordinary rooms. It may match desire_pursuit, but a different label should reflect a real conflict rather than manufactured variety." + } + }, + "required": [ + "fullname", + "nickname", + "appearance", + "personality", + "backstory", + "likes", + "dislikes", + "fears", + "conscious_desire", + "unconscious_desire", + "recognized_need", + "unrecognized_need", + "desire_pursuit", + "need_pursuit" + ], + "additionalProperties": false + }, + "maxItems": 3 + } + }, + "required": [ + "description", + "lore" + ], + "additionalProperties": false, + "strict": true + } + } + }, + { + "purpose": "arrival", + "system": "You narrate a text adventure. You write the moment a player walks into a\nplace: what reaches them first, in the second person and the present\ntense. You never break character, never offer a numbered menu, and never\nmention that you are a narrator.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\nsummary: Wren walks the streets of Thornwick.\n\n## The Place\nname: The Inn room 1\ndescription: A taproom with a long bench under the window and a cold hearth.\nlore: The drovers drink here.\nways out: The Inn room 2, The Inn room 3, the inn street\n\n## Who Is Here\nWren (Wren), Townsfolk -- the player, the one arriving\n\n## Just Before This\nThe player has come from the inn street. You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.\n\n## Instructions\n- The player has never been here. This is the first time they have set\n foot in it\n- Narrate discovery: what catches them on the way in, before they\n have made sense of the rest\n- Address the player as \"you\", in the present tense\n- One paragraph. Do not re-describe the place item by item -- the\n description above is already what is here, and your job is the moment\n of coming into it\n- Anyone listed above is here; write them as already present, not as\n arriving. Do not add a person who is not on that list\n- Do not name a way out that is not on the list above\n- Respect the stated length of each field\n\n## Current State On Arrival\nThe place description is the world's original account. These current records\ntake precedence over its claims about people, items and wounds. Narrate the\nrecorded crossing result as part of this arrival.\nYou are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: table, benches, shelves, cupboard.\nLying here: deck of cards, candle, bowl, jar.\nYou are carrying: nothing.\n", + "schema": { + "name": "Scene::Schema", + "description": null, + "schema": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "What the player experiences as they arrive here, right now. Second person, present tense. One paragraph, 3 to 5 sentences.", + "maxLength": 900 + }, + "summary": { + "type": "string", + "description": "What happened in this moment, for the game engine rather than the player. Third person. One sentence.", + "maxLength": 200 + } + }, + "required": [ + "description", + "summary" + ], + "additionalProperties": false, + "strict": true + } + } + } + ], + "written": { + "locations": { + "rows": [ + { + "id": 1000000003, + "story_id": 1000000001, + "name": "Thornwick", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "stub", + "teaser": "A small town of three streets around a square.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 40, + "depth": 40, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": null, + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000004, + "story_id": 1000000001, + "name": "The Inn", + "description": "A low timbered inn with a painted sign of a plough.", + "lore": "The inn is as old as the square.", + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "realized", + "teaser": "A low inn with a painted sign over its door.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 10, + "depth": 9, + "population": "nobody", + "generation_checkpoint": null, + "surface": null, + "kind": "inn", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000006, + "story_id": 1000000001, + "name": "the well square", + "description": "A wide cobbled square with a well at its middle and the shrine's steps on its north side.", + "lore": "The town was laid out from this well.", + "last_protagonist_visit": "2026-12-03 08:01:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A square in Thornwick, 22 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 22, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "square", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000007, + "story_id": 1000000001, + "name": "the forge lane", + "description": "A narrow street of soot-dark fronts running off the square, a forge glowing at one door.", + "lore": "The smiths took this street first.", + "last_protagonist_visit": "2026-12-03 08:02:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 0, + "z": 0, + "width": 18, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000008, + "story_id": 1000000001, + "name": "the tanners' row", + "description": "A long street of tall narrow houses, washing strung between the upper windows.", + "lore": "The tanners lived here before the river moved.", + "last_protagonist_visit": "2026-12-03 08:03:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 22, + "z": 0, + "width": 18, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000009, + "story_id": 1000000001, + "name": "the inn street", + "description": "A short street that bends back to the square, the inn's painted sign hanging over it.", + "lore": "Drovers stop here on the way to market.", + "last_protagonist_visit": "2026-12-03 08:04:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 22 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 22, + "z": 0, + "width": 22, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000010, + "story_id": 1000000001, + "name": "Thornwick shop 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A shop in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "shop", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000011, + "story_id": 1000000001, + "name": "Thornwick house 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A house in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "house", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000012, + "story_id": 1000000001, + "name": "Thornwick smithy 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 8, + "depth": 8, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000013, + "story_id": 1000000001, + "name": "Thornwick smithy 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "uneasy", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 6, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000014, + "story_id": 1000000001, + "name": "The Inn room 1", + "description": "A taproom with a long bench under the window and a cold hearth.", + "lore": "The drovers drink here.", + "last_protagonist_visit": "2026-12-03 08:05:00", + "parent_location_id": 1000000004, + "detail_level": "realized", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 0.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "common room", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000015, + "story_id": 1000000001, + "name": "The Inn room 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 0.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 5, + "y": 0, + "z": 0, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "kitchen", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000016, + "story_id": 1000000001, + "name": "The Inn room 3", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 1.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 1, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "sleeping quarters", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000017, + "story_id": 1000000001, + "name": "The Inn room 4", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 1.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 5, + "y": 0, + "z": 1, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "sleeping quarters", + "density": null, + "sanctuary": 0 + } + ], + "removed": [] + }, + "location_connections": { + "rows": [ + { + "id": 1000000007, + "location_id": 1000000006, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000008, + "location_id": 1000000007, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000009, + "location_id": 1000000007, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000010, + "location_id": 1000000008, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000011, + "location_id": 1000000008, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000012, + "location_id": 1000000009, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000013, + "location_id": 1000000006, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000014, + "location_id": 1000000009, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000015, + "location_id": 1000000006, + "connected_location_id": 1000000001, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000016, + "location_id": 1000000001, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000017, + "location_id": 1000000006, + "connected_location_id": 1000000002, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000018, + "location_id": 1000000002, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000021, + "location_id": 1000000007, + "connected_location_id": 1000000005, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000022, + "location_id": 1000000005, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000023, + "location_id": 1000000007, + "connected_location_id": 1000000010, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000024, + "location_id": 1000000010, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000025, + "location_id": 1000000008, + "connected_location_id": 1000000011, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000026, + "location_id": 1000000011, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000027, + "location_id": 1000000008, + "connected_location_id": 1000000012, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000028, + "location_id": 1000000012, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000029, + "location_id": 1000000009, + "connected_location_id": 1000000013, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000030, + "location_id": 1000000013, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000031, + "location_id": 1000000014, + "connected_location_id": 1000000015, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000032, + "location_id": 1000000015, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000033, + "location_id": 1000000016, + "connected_location_id": 1000000017, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000034, + "location_id": 1000000017, + "connected_location_id": 1000000016, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000035, + "location_id": 1000000014, + "connected_location_id": 1000000016, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "taking stairs", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000036, + "location_id": 1000000016, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "taking stairs", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000037, + "location_id": 1000000014, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000038, + "location_id": 1000000009, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + } + ], + "removed": [ + 1000000001, + 1000000002, + 1000000003, + 1000000004, + 1000000005, + 1000000006 + ] + }, + "characters": { + "rows": [], + "removed": [] + }, + "items": { + "rows": [ + { + "id": 1000000001, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000002, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000003, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000004, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000003, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000005, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000001, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000006, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000002, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000007, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000003, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000008, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000004, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000007, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000009, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000010, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000011, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000012, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000013, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000014, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000010, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000015, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 1, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000012, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000016, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000009, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000017, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000010, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000018, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000011, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000019, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000012, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000020, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000013, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000021, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000014, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000017, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000022, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 1, + "inscription": null, + "template_id": 1000000015, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000019, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000023, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000024, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000025, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000023, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000026, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000024, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000027, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000028, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000029, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000030, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000031, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000032, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000027, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000033, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000028, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000034, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000029, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000035, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000030, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000036, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000031, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000037, + "character_id": null, + "name": "table", + "description": "The table, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/table", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000038, + "character_id": null, + "name": "benches", + "description": "The benches, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 4, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "common room/benches", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000039, + "character_id": null, + "name": "shelves", + "description": "The shelves, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 0, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/shelves", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000040, + "character_id": null, + "name": "cupboard", + "description": "The cupboard, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 3, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "closed", + "within_id": null, + "how": null, + "kit_key": "common room/cupboard", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000041, + "character_id": null, + "name": "deck of cards", + "description": "The deck of cards, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000037, + "how": "on", + "kit_key": "common room/table/deck of cards", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000042, + "character_id": null, + "name": "candle", + "description": "The candle, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000037, + "how": "on", + "kit_key": "common room/table/candle", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000043, + "character_id": null, + "name": "bowl", + "description": "The bowl, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000039, + "how": "on", + "kit_key": "common room/shelves/bowl", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000044, + "character_id": null, + "name": "jar", + "description": "The jar, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000039, + "how": "on", + "kit_key": "common room/shelves/jar", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000045, + "character_id": null, + "name": "table", + "description": "The table, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000037, + "bulk": "immovable", + "x": 4, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/table", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000046, + "character_id": null, + "name": "benches", + "description": "The benches, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000038, + "bulk": "immovable", + "x": 1, + "y": 4, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "common room/benches", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000047, + "character_id": null, + "name": "shelves", + "description": "The shelves, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000039, + "bulk": "immovable", + "x": 0, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/shelves", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000048, + "character_id": null, + "name": "cupboard", + "description": "The cupboard, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000040, + "bulk": "immovable", + "x": 4, + "y": 3, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "closed", + "within_id": null, + "how": null, + "kit_key": "common room/cupboard", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000049, + "character_id": null, + "name": "deck of cards", + "description": "The deck of cards, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000041, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000045, + "how": "on", + "kit_key": "common room/table/deck of cards", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000050, + "character_id": null, + "name": "candle", + "description": "The candle, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000042, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000045, + "how": "on", + "kit_key": "common room/table/candle", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000051, + "character_id": null, + "name": "bowl", + "description": "The bowl, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000043, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000047, + "how": "on", + "kit_key": "common room/shelves/bowl", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000052, + "character_id": null, + "name": "jar", + "description": "The jar, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000044, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000047, + "how": "on", + "kit_key": "common room/shelves/jar", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + } + ], + "removed": [] + }, + "quest_steps": { + "rows": [], + "removed": [] + }, + "scenes": { + "rows": [ + { + "id": 1000000002, + "story_id": 1000000001, + "location_id": 1000000006, + "previous_scene_id": 1000000001, + "description": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:01:00", + "summary": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000003, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing." + }, + { + "id": 1000000003, + "story_id": 1000000001, + "location_id": 1000000007, + "previous_scene_id": 1000000002, + "description": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:02:00", + "summary": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 2", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000007, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench.\nLying here: button, timetable.\nYou are carrying: nothing." + }, + { + "id": 1000000004, + "story_id": 1000000001, + "location_id": 1000000008, + "previous_scene_id": 1000000003, + "description": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:03:00", + "summary": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 3", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000008, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter.\nLying here: nothing.\nYou are carrying: nothing." + }, + { + "id": 1000000005, + "story_id": 1000000001, + "location_id": 1000000009, + "previous_scene_id": 1000000004, + "description": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:04:00", + "summary": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 4", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000009, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, bench.\nLying here: bent nail, button.\nYou are carrying: nothing." + }, + { + "id": 1000000006, + "story_id": 1000000001, + "location_id": 1000000014, + "previous_scene_id": 1000000005, + "description": "You arrive at The Inn room 1. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: table, benches, shelves, cupboard. Lying here: deck of cards, candle, bowl, jar. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:05:00", + "summary": "You arrive at The Inn room 1. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: table, benches, shelves, cupboard. Lying here: deck of cards, candle, bowl, jar. You are carrying: nothing.", + "is_opening": 0, + "typed": "move The Inn", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000004, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: table, benches, shelves, cupboard.\nLying here: deck of cards, candle, bowl, jar.\nYou are carrying: nothing." + } + ], + "removed": [] + }, + "characters_scenes": { + "rows": [ + { + "character_id": 1000000001, + "scene_id": 1000000002 + }, + { + "character_id": 1000000001, + "scene_id": 1000000003 + }, + { + "character_id": 1000000001, + "scene_id": 1000000004 + }, + { + "character_id": 1000000001, + "scene_id": 1000000005 + }, + { + "character_id": 1000000001, + "scene_id": 1000000006 + } + ], + "removed": [] + }, + "interactions": { + "rows": [], + "removed": [] + }, + "playthrough_endings": { + "rows": [], + "removed": [] + }, + "playthrough_beats": { + "rows": [], + "removed": [] + }, + "playthrough_npc_states": { + "rows": [], + "removed": [] + }, + "world_events": { + "rows": [], + "removed": [] + } + } + }, + { + "step": "step 6 back-onto-the-street", + "requests": [], + "written": { + "locations": { + "rows": [ + { + "id": 1000000003, + "story_id": 1000000001, + "name": "Thornwick", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "stub", + "teaser": "A small town of three streets around a square.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 40, + "depth": 40, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": null, + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000004, + "story_id": 1000000001, + "name": "The Inn", + "description": "A low timbered inn with a painted sign of a plough.", + "lore": "The inn is as old as the square.", + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "realized", + "teaser": "A low inn with a painted sign over its door.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 10, + "depth": 9, + "population": "nobody", + "generation_checkpoint": null, + "surface": null, + "kind": "inn", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000006, + "story_id": 1000000001, + "name": "the well square", + "description": "A wide cobbled square with a well at its middle and the shrine's steps on its north side.", + "lore": "The town was laid out from this well.", + "last_protagonist_visit": "2026-12-03 08:01:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A square in Thornwick, 22 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 22, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "square", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000007, + "story_id": 1000000001, + "name": "the forge lane", + "description": "A narrow street of soot-dark fronts running off the square, a forge glowing at one door.", + "lore": "The smiths took this street first.", + "last_protagonist_visit": "2026-12-03 08:02:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 0, + "z": 0, + "width": 18, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000008, + "story_id": 1000000001, + "name": "the tanners' row", + "description": "A long street of tall narrow houses, washing strung between the upper windows.", + "lore": "The tanners lived here before the river moved.", + "last_protagonist_visit": "2026-12-03 08:03:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 22, + "z": 0, + "width": 18, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000009, + "story_id": 1000000001, + "name": "the inn street", + "description": "A short street that bends back to the square, the inn's painted sign hanging over it.", + "lore": "Drovers stop here on the way to market.", + "last_protagonist_visit": "2026-12-03 08:04:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 22 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 22, + "z": 0, + "width": 22, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000010, + "story_id": 1000000001, + "name": "Thornwick shop 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A shop in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "shop", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000011, + "story_id": 1000000001, + "name": "Thornwick house 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A house in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "house", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000012, + "story_id": 1000000001, + "name": "Thornwick smithy 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 8, + "depth": 8, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000013, + "story_id": 1000000001, + "name": "Thornwick smithy 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "uneasy", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 6, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000014, + "story_id": 1000000001, + "name": "The Inn room 1", + "description": "A taproom with a long bench under the window and a cold hearth.", + "lore": "The drovers drink here.", + "last_protagonist_visit": "2026-12-03 08:05:00", + "parent_location_id": 1000000004, + "detail_level": "realized", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 0.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "common room", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000015, + "story_id": 1000000001, + "name": "The Inn room 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 0.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 5, + "y": 0, + "z": 0, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "kitchen", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000016, + "story_id": 1000000001, + "name": "The Inn room 3", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 1.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 1, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "sleeping quarters", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000017, + "story_id": 1000000001, + "name": "The Inn room 4", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 1.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 5, + "y": 0, + "z": 1, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "sleeping quarters", + "density": null, + "sanctuary": 0 + } + ], + "removed": [] + }, + "location_connections": { + "rows": [ + { + "id": 1000000007, + "location_id": 1000000006, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000008, + "location_id": 1000000007, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000009, + "location_id": 1000000007, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000010, + "location_id": 1000000008, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000011, + "location_id": 1000000008, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000012, + "location_id": 1000000009, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000013, + "location_id": 1000000006, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000014, + "location_id": 1000000009, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000015, + "location_id": 1000000006, + "connected_location_id": 1000000001, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000016, + "location_id": 1000000001, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000017, + "location_id": 1000000006, + "connected_location_id": 1000000002, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000018, + "location_id": 1000000002, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000021, + "location_id": 1000000007, + "connected_location_id": 1000000005, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000022, + "location_id": 1000000005, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000023, + "location_id": 1000000007, + "connected_location_id": 1000000010, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000024, + "location_id": 1000000010, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000025, + "location_id": 1000000008, + "connected_location_id": 1000000011, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000026, + "location_id": 1000000011, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000027, + "location_id": 1000000008, + "connected_location_id": 1000000012, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000028, + "location_id": 1000000012, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000029, + "location_id": 1000000009, + "connected_location_id": 1000000013, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000030, + "location_id": 1000000013, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000031, + "location_id": 1000000014, + "connected_location_id": 1000000015, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000032, + "location_id": 1000000015, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000033, + "location_id": 1000000016, + "connected_location_id": 1000000017, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000034, + "location_id": 1000000017, + "connected_location_id": 1000000016, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000035, + "location_id": 1000000014, + "connected_location_id": 1000000016, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "taking stairs", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000036, + "location_id": 1000000016, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "taking stairs", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000037, + "location_id": 1000000014, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000038, + "location_id": 1000000009, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + } + ], + "removed": [ + 1000000001, + 1000000002, + 1000000003, + 1000000004, + 1000000005, + 1000000006 + ] + }, + "characters": { + "rows": [], + "removed": [] + }, + "items": { + "rows": [ + { + "id": 1000000001, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000002, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000003, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000004, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000003, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000005, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000001, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000006, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000002, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000007, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000003, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000008, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000004, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000007, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000009, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000010, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000011, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000012, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000013, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000014, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000010, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000015, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 1, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000012, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000016, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000009, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000017, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000010, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000018, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000011, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000019, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000012, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000020, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000013, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000021, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000014, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000017, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000022, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 1, + "inscription": null, + "template_id": 1000000015, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000019, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000023, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000024, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000025, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000023, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000026, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000024, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000027, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000028, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000029, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000030, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000031, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000032, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000027, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000033, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000028, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000034, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000029, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000035, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000030, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000036, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000031, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000037, + "character_id": null, + "name": "table", + "description": "The table, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/table", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000038, + "character_id": null, + "name": "benches", + "description": "The benches, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 4, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "common room/benches", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000039, + "character_id": null, + "name": "shelves", + "description": "The shelves, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 0, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/shelves", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000040, + "character_id": null, + "name": "cupboard", + "description": "The cupboard, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 3, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "closed", + "within_id": null, + "how": null, + "kit_key": "common room/cupboard", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000041, + "character_id": null, + "name": "deck of cards", + "description": "The deck of cards, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000037, + "how": "on", + "kit_key": "common room/table/deck of cards", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000042, + "character_id": null, + "name": "candle", + "description": "The candle, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000037, + "how": "on", + "kit_key": "common room/table/candle", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000043, + "character_id": null, + "name": "bowl", + "description": "The bowl, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000039, + "how": "on", + "kit_key": "common room/shelves/bowl", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000044, + "character_id": null, + "name": "jar", + "description": "The jar, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000039, + "how": "on", + "kit_key": "common room/shelves/jar", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000045, + "character_id": null, + "name": "table", + "description": "The table, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000037, + "bulk": "immovable", + "x": 4, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/table", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000046, + "character_id": null, + "name": "benches", + "description": "The benches, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000038, + "bulk": "immovable", + "x": 1, + "y": 4, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "common room/benches", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000047, + "character_id": null, + "name": "shelves", + "description": "The shelves, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000039, + "bulk": "immovable", + "x": 0, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/shelves", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000048, + "character_id": null, + "name": "cupboard", + "description": "The cupboard, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000040, + "bulk": "immovable", + "x": 4, + "y": 3, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "closed", + "within_id": null, + "how": null, + "kit_key": "common room/cupboard", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000049, + "character_id": null, + "name": "deck of cards", + "description": "The deck of cards, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000041, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000045, + "how": "on", + "kit_key": "common room/table/deck of cards", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000050, + "character_id": null, + "name": "candle", + "description": "The candle, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000042, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000045, + "how": "on", + "kit_key": "common room/table/candle", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000051, + "character_id": null, + "name": "bowl", + "description": "The bowl, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000043, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000047, + "how": "on", + "kit_key": "common room/shelves/bowl", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000052, + "character_id": null, + "name": "jar", + "description": "The jar, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000044, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000047, + "how": "on", + "kit_key": "common room/shelves/jar", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + } + ], + "removed": [] + }, + "quest_steps": { + "rows": [], + "removed": [] + }, + "scenes": { + "rows": [ + { + "id": 1000000002, + "story_id": 1000000001, + "location_id": 1000000006, + "previous_scene_id": 1000000001, + "description": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:01:00", + "summary": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000003, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing." + }, + { + "id": 1000000003, + "story_id": 1000000001, + "location_id": 1000000007, + "previous_scene_id": 1000000002, + "description": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:02:00", + "summary": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 2", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000007, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench.\nLying here: button, timetable.\nYou are carrying: nothing." + }, + { + "id": 1000000004, + "story_id": 1000000001, + "location_id": 1000000008, + "previous_scene_id": 1000000003, + "description": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:03:00", + "summary": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 3", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000008, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter.\nLying here: nothing.\nYou are carrying: nothing." + }, + { + "id": 1000000005, + "story_id": 1000000001, + "location_id": 1000000009, + "previous_scene_id": 1000000004, + "description": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:04:00", + "summary": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 4", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000009, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, bench.\nLying here: bent nail, button.\nYou are carrying: nothing." + }, + { + "id": 1000000006, + "story_id": 1000000001, + "location_id": 1000000014, + "previous_scene_id": 1000000005, + "description": "You arrive at The Inn room 1. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: table, benches, shelves, cupboard. Lying here: deck of cards, candle, bowl, jar. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:05:00", + "summary": "You arrive at The Inn room 1. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: table, benches, shelves, cupboard. Lying here: deck of cards, candle, bowl, jar. You are carrying: nothing.", + "is_opening": 0, + "typed": "move The Inn", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000004, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: table, benches, shelves, cupboard.\nLying here: deck of cards, candle, bowl, jar.\nYou are carrying: nothing." + } + ], + "removed": [] + }, + "characters_scenes": { + "rows": [ + { + "character_id": 1000000001, + "scene_id": 1000000002 + }, + { + "character_id": 1000000001, + "scene_id": 1000000003 + }, + { + "character_id": 1000000001, + "scene_id": 1000000004 + }, + { + "character_id": 1000000001, + "scene_id": 1000000005 + }, + { + "character_id": 1000000001, + "scene_id": 1000000006 + } + ], + "removed": [] + }, + "interactions": { + "rows": [], + "removed": [] + }, + "playthrough_endings": { + "rows": [], + "removed": [] + }, + "playthrough_beats": { + "rows": [], + "removed": [] + }, + "playthrough_npc_states": { + "rows": [], + "removed": [] + }, + "world_events": { + "rows": [], + "removed": [] + } + } + }, + { + "step": "step 7 round-to-the-square", + "requests": [], + "written": { + "locations": { + "rows": [ + { + "id": 1000000003, + "story_id": 1000000001, + "name": "Thornwick", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "stub", + "teaser": "A small town of three streets around a square.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 40, + "depth": 40, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": null, + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000004, + "story_id": 1000000001, + "name": "The Inn", + "description": "A low timbered inn with a painted sign of a plough.", + "lore": "The inn is as old as the square.", + "last_protagonist_visit": null, + "parent_location_id": null, + "detail_level": "realized", + "teaser": "A low inn with a painted sign over its door.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 10, + "depth": 9, + "population": "nobody", + "generation_checkpoint": null, + "surface": null, + "kind": "inn", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000006, + "story_id": 1000000001, + "name": "the well square", + "description": "A wide cobbled square with a well at its middle and the shrine's steps on its north side.", + "lore": "The town was laid out from this well.", + "last_protagonist_visit": "2026-12-03 08:01:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A square in Thornwick, 22 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 22, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "square", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000007, + "story_id": 1000000001, + "name": "the forge lane", + "description": "A narrow street of soot-dark fronts running off the square, a forge glowing at one door.", + "lore": "The smiths took this street first.", + "last_protagonist_visit": "2026-12-03 08:02:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 22 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 0, + "z": 0, + "width": 18, + "depth": 22, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000008, + "story_id": 1000000001, + "name": "the tanners' row", + "description": "A long street of tall narrow houses, washing strung between the upper windows.", + "lore": "The tanners lived here before the river moved.", + "last_protagonist_visit": "2026-12-03 08:03:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 18 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 22, + "y": 22, + "z": 0, + "width": 18, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000009, + "story_id": 1000000001, + "name": "the inn street", + "description": "A short street that bends back to the square, the inn's painted sign hanging over it.", + "lore": "Drovers stop here on the way to market.", + "last_protagonist_visit": "2026-12-03 08:04:00", + "parent_location_id": 1000000003, + "detail_level": "realized", + "teaser": "A street in Thornwick, 22 by 18 paces.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 22, + "z": 0, + "width": 22, + "depth": 18, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "street", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000010, + "story_id": 1000000001, + "name": "Thornwick shop 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A shop in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "shop", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000011, + "story_id": 1000000001, + "name": "Thornwick house 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A house in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "house", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000012, + "story_id": 1000000001, + "name": "Thornwick smithy 1", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 8, + "depth": 8, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000013, + "story_id": 1000000001, + "name": "Thornwick smithy 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000003, + "detail_level": "stub", + "teaser": "A smithy in Thornwick.", + "mobile": 0, + "danger": "uneasy", + "hazard": null, + "hazard_die": null, + "x": null, + "y": null, + "z": null, + "width": 9, + "depth": 6, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "smithy", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000014, + "story_id": 1000000001, + "name": "The Inn room 1", + "description": "A taproom with a long bench under the window and a cold hearth.", + "lore": "The drovers drink here.", + "last_protagonist_visit": "2026-12-03 08:05:00", + "parent_location_id": 1000000004, + "detail_level": "realized", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 0.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 0, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "common room", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000015, + "story_id": 1000000001, + "name": "The Inn room 2", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 0.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 5, + "y": 0, + "z": 0, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "kitchen", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000016, + "story_id": 1000000001, + "name": "The Inn room 3", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 1.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 0, + "y": 0, + "z": 1, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "sleeping quarters", + "density": null, + "sanctuary": 0 + }, + { + "id": 1000000017, + "story_id": 1000000001, + "name": "The Inn room 4", + "description": null, + "lore": null, + "last_protagonist_visit": null, + "parent_location_id": 1000000004, + "detail_level": "stub", + "teaser": "A room inside The Inn, 5 by 9 paces on storey 1.", + "mobile": 0, + "danger": "safe", + "hazard": null, + "hazard_die": null, + "x": 5, + "y": 0, + "z": 1, + "width": 5, + "depth": 9, + "population": null, + "generation_checkpoint": null, + "surface": null, + "kind": "sleeping quarters", + "density": null, + "sanctuary": 0 + } + ], + "removed": [] + }, + "location_connections": { + "rows": [ + { + "id": 1000000007, + "location_id": 1000000006, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000008, + "location_id": 1000000007, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000009, + "location_id": 1000000007, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000010, + "location_id": 1000000008, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000011, + "location_id": 1000000008, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000012, + "location_id": 1000000009, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000013, + "location_id": 1000000006, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000014, + "location_id": 1000000009, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000015, + "location_id": 1000000006, + "connected_location_id": 1000000001, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000016, + "location_id": 1000000001, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000017, + "location_id": 1000000006, + "connected_location_id": 1000000002, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000018, + "location_id": 1000000002, + "connected_location_id": 1000000006, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000021, + "location_id": 1000000007, + "connected_location_id": 1000000005, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000022, + "location_id": 1000000005, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000023, + "location_id": 1000000007, + "connected_location_id": 1000000010, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000024, + "location_id": 1000000010, + "connected_location_id": 1000000007, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000025, + "location_id": 1000000008, + "connected_location_id": 1000000011, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000026, + "location_id": 1000000011, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000027, + "location_id": 1000000008, + "connected_location_id": 1000000012, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000028, + "location_id": 1000000012, + "connected_location_id": 1000000008, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000029, + "location_id": 1000000009, + "connected_location_id": 1000000013, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000030, + "location_id": 1000000013, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000031, + "location_id": 1000000014, + "connected_location_id": 1000000015, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000032, + "location_id": 1000000015, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000033, + "location_id": 1000000016, + "connected_location_id": 1000000017, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000034, + "location_id": 1000000017, + "connected_location_id": 1000000016, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000035, + "location_id": 1000000014, + "connected_location_id": 1000000016, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "taking stairs", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000036, + "location_id": 1000000016, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "taking stairs", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000037, + "location_id": 1000000014, + "connected_location_id": 1000000009, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + }, + { + "id": 1000000038, + "location_id": 1000000009, + "connected_location_id": 1000000014, + "distance": "adjacent", + "time_to_travel": "about a minute", + "travel_method": "walking", + "hazard": null, + "hazard_die": null, + "barrier": "open", + "key_template_id": null + } + ], + "removed": [ + 1000000001, + 1000000002, + 1000000003, + 1000000004, + 1000000005, + 1000000006 + ] + }, + "characters": { + "rows": [], + "removed": [] + }, + "items": { + "rows": [ + { + "id": 1000000001, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000002, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000003, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000004, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000003, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000005, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000001, + "bulk": "immovable", + "x": 2, + "y": 20, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000006, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000002, + "bulk": "immovable", + "x": 4, + "y": 7, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "square/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000007, + "character_id": null, + "name": "cart", + "description": "The cart, fixed in place.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000003, + "bulk": "immovable", + "x": 1, + "y": 13, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "square/cart", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000008, + "character_id": null, + "name": "tarpaulin", + "description": "The tarpaulin, in the cart.", + "properties": null, + "location_id": 1000000006, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000004, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000007, + "how": "in", + "kit_key": "square/cart/tarpaulin", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "cloth", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000009, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000010, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000011, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000012, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000013, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000014, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000010, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000015, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": null, + "readable": 1, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000012, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000016, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000009, + "bulk": "immovable", + "x": 33, + "y": 19, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000017, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000010, + "bulk": "immovable", + "x": 24, + "y": 0, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000018, + "character_id": null, + "name": "doorstep", + "description": "The doorstep, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000011, + "bulk": "immovable", + "x": 22, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/doorstep", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000019, + "character_id": null, + "name": "notice board", + "description": "The notice board, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000012, + "bulk": "immovable", + "x": 31, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "street/notice board", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000020, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000013, + "bulk": "immovable", + "x": 24, + "y": 15, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000021, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000014, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000017, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000022, + "character_id": null, + "name": "timetable", + "description": "The timetable, on the notice board.", + "properties": null, + "location_id": 1000000007, + "playthrough_id": 1000000001, + "readable": 1, + "inscription": null, + "template_id": 1000000015, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000019, + "how": "on", + "kit_key": "street/notice board/timetable", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000023, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000024, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000025, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000023, + "bulk": "immovable", + "x": 38, + "y": 35, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000026, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000008, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000024, + "bulk": "immovable", + "x": 22, + "y": 37, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000027, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000028, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000029, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000030, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000031, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000028, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000032, + "character_id": null, + "name": "lamp post", + "description": "The lamp post, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000027, + "bulk": "immovable", + "x": 18, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/lamp post", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000033, + "character_id": null, + "name": "gutter", + "description": "The gutter, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000028, + "bulk": "immovable", + "x": 18, + "y": 30, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "hollow", + "within_id": null, + "how": null, + "kit_key": "street/gutter", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000034, + "character_id": null, + "name": "bench", + "description": "The bench, fixed in place.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000029, + "bulk": "immovable", + "x": 6, + "y": 23, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "street/bench", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000035, + "character_id": null, + "name": "bent nail", + "description": "The bent nail, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000030, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/bent nail", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "metal", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000036, + "character_id": null, + "name": "button", + "description": "The button, in the gutter.", + "properties": null, + "location_id": 1000000009, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000031, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000033, + "how": "in", + "kit_key": "street/gutter/button", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000037, + "character_id": null, + "name": "table", + "description": "The table, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/table", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000038, + "character_id": null, + "name": "benches", + "description": "The benches, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 1, + "y": 4, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "common room/benches", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000039, + "character_id": null, + "name": "shelves", + "description": "The shelves, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 0, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/shelves", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000040, + "character_id": null, + "name": "cupboard", + "description": "The cupboard, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "immovable", + "x": 4, + "y": 3, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "closed", + "within_id": null, + "how": null, + "kit_key": "common room/cupboard", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000041, + "character_id": null, + "name": "deck of cards", + "description": "The deck of cards, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000037, + "how": "on", + "kit_key": "common room/table/deck of cards", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000042, + "character_id": null, + "name": "candle", + "description": "The candle, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000037, + "how": "on", + "kit_key": "common room/table/candle", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000043, + "character_id": null, + "name": "bowl", + "description": "The bowl, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000039, + "how": "on", + "kit_key": "common room/shelves/bowl", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000044, + "character_id": null, + "name": "jar", + "description": "The jar, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": null, + "readable": 0, + "inscription": null, + "template_id": null, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000039, + "how": "on", + "kit_key": "common room/shelves/jar", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000045, + "character_id": null, + "name": "table", + "description": "The table, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000037, + "bulk": "immovable", + "x": 4, + "y": 8, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/table", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000046, + "character_id": null, + "name": "benches", + "description": "The benches, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000038, + "bulk": "immovable", + "x": 1, + "y": 4, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "nothing", + "within_id": null, + "how": null, + "kit_key": "common room/benches", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000047, + "character_id": null, + "name": "shelves", + "description": "The shelves, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000039, + "bulk": "immovable", + "x": 0, + "y": 1, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "top", + "within_id": null, + "how": null, + "kit_key": "common room/shelves", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000048, + "character_id": null, + "name": "cupboard", + "description": "The cupboard, fixed in place.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000040, + "bulk": "immovable", + "x": 4, + "y": 3, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "fixture", + "holds": "closed", + "within_id": null, + "how": null, + "kit_key": "common room/cupboard", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "wood", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000049, + "character_id": null, + "name": "deck of cards", + "description": "The deck of cards, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000041, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000045, + "how": "on", + "kit_key": "common room/table/deck of cards", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": "paper", + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000050, + "character_id": null, + "name": "candle", + "description": "The candle, on the table.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000042, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 1, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000045, + "how": "on", + "kit_key": "common room/table/candle", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000051, + "character_id": null, + "name": "bowl", + "description": "The bowl, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000043, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000047, + "how": "on", + "kit_key": "common room/shelves/bowl", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + }, + { + "id": 1000000052, + "character_id": null, + "name": "jar", + "description": "The jar, on the shelves.", + "properties": null, + "location_id": 1000000014, + "playthrough_id": 1000000001, + "readable": 0, + "inscription": null, + "template_id": 1000000044, + "bulk": "handy", + "x": null, + "y": null, + "use_kind": "ordinary", + "combustible": 0, + "disposition": "intact", + "fragility": "sturdy", + "tier": "portable", + "holds": null, + "within_id": 1000000047, + "how": "on", + "kit_key": "common room/shelves/jar", + "noticed_at": null, + "searched_at": null, + "hold": null, + "material": null, + "wear": null, + "worn": 0, + "supply": null + } + ], + "removed": [] + }, + "quest_steps": { + "rows": [], + "removed": [] + }, + "scenes": { + "rows": [ + { + "id": 1000000002, + "story_id": 1000000001, + "location_id": 1000000006, + "previous_scene_id": 1000000001, + "description": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:01:00", + "summary": "You arrive at the well square. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: bench, lamp post, cart. Lying here: tarpaulin. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000003, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: bench, lamp post, cart.\nLying here: tarpaulin.\nYou are carrying: nothing." + }, + { + "id": 1000000003, + "story_id": 1000000001, + "location_id": 1000000007, + "previous_scene_id": 1000000002, + "description": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:02:00", + "summary": "You arrive at the forge lane. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench. Lying here: button, timetable. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 2", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000007, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, doorstep, notice board, bench.\nLying here: button, timetable.\nYou are carrying: nothing." + }, + { + "id": 1000000004, + "story_id": 1000000001, + "location_id": 1000000008, + "previous_scene_id": 1000000003, + "description": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:03:00", + "summary": "You arrive at the tanners' row. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter. Lying here: nothing. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 3", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000008, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter.\nLying here: nothing.\nYou are carrying: nothing." + }, + { + "id": 1000000005, + "story_id": 1000000001, + "location_id": 1000000009, + "previous_scene_id": 1000000004, + "description": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:04:00", + "summary": "You arrive at the inn street. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: lamp post, gutter, bench. Lying here: bent nail, button. You are carrying: nothing.", + "is_opening": 0, + "typed": "move Thornwick room 4", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000009, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: lamp post, gutter, bench.\nLying here: bent nail, button.\nYou are carrying: nothing." + }, + { + "id": 1000000006, + "story_id": 1000000001, + "location_id": 1000000014, + "previous_scene_id": 1000000005, + "description": "You arrive at The Inn room 1. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: table, benches, shelves, cupboard. Lying here: deck of cards, candle, bowl, jar. You are carrying: nothing.", + "story_timestamp": "2026-12-03 08:05:00", + "summary": "You arrive at The Inn room 1. You are unhurt. Nobody else is alive here. Fixed here, and not takeable: table, benches, shelves, cupboard. Lying here: deck of cards, candle, bowl, jar. You are carrying: nothing.", + "is_opening": 0, + "typed": "move The Inn", + "resolved_action": "move", + "acted_on_type": "Location", + "acted_on_id": 1000000004, + "resolved_by": "grammar", + "engine_fallback": 1, + "engine_fact": "You are unhurt.\nNobody else is alive here.\nFixed here, and not takeable: table, benches, shelves, cupboard.\nLying here: deck of cards, candle, bowl, jar.\nYou are carrying: nothing." + } + ], + "removed": [] + }, + "characters_scenes": { + "rows": [ + { + "character_id": 1000000001, + "scene_id": 1000000002 + }, + { + "character_id": 1000000001, + "scene_id": 1000000003 + }, + { + "character_id": 1000000001, + "scene_id": 1000000004 + }, + { + "character_id": 1000000001, + "scene_id": 1000000005 + }, + { + "character_id": 1000000001, + "scene_id": 1000000006 + } + ], + "removed": [] + }, + "interactions": { + "rows": [], + "removed": [] + }, + "playthrough_endings": { + "rows": [], + "removed": [] + }, + "playthrough_beats": { + "rows": [], + "removed": [] + }, + "playthrough_npc_states": { + "rows": [], + "removed": [] + }, + "world_events": { + "rows": [], + "removed": [] + } + } + } + ] +} diff --git a/parity/scripts/a-town-laid-out-before-it-is-written.yml b/parity/scripts/a-town-laid-out-before-it-is-written.yml new file mode 100644 index 0000000..c703143 --- /dev/null +++ b/parity/scripts/a-town-laid-out-before-it-is-written.yml @@ -0,0 +1,164 @@ +--- +story: A Town of Three Streets +steps: +- id: into-thornwick + type: "/move Thornwick" + browser: + token: into-thornwick + realizes: Thornwick + replies: + - purpose: location + prompt_includes: + - 'teaser: A square in Thornwick, 22 by 22 paces.' + - This square is 22 by 22 paces -- about 33 by 33 metres. + - It is part of Thornwick, which is 40 by 40 paces across. + - 'Its ways out: The Shrine, which fronts it on the north side; to the east, Thornwick room 2; to the south, Thornwick room 4; a way out to The North Road, which is outside Thornwick. Those are every way out of this square.' + - NAME THIS SQUARE. It is one square of Thornwick. + prompt_excludes: + - wall + - storey + - one room inside + content: + description: A wide cobbled square with a well at its middle and the shrine's steps on its north side. + lore: The town was laid out from this well. + name: the well square + items: [] + people: [] + - purpose: arrival + unavailable: true + expect: + location: the well square (realized) + exits: + - The North Road (realized) + - The Shrine (stub) + - Thornwick room 2 (stub) + - Thornwick room 4 (stub) + here: + - bench + - cart + - lamp post + - tarpaulin + changed: true + refused: false +- id: along-the-first-street + type: "/move Thornwick room 2" + browser: + token: along-the-first-street + realizes: Thornwick room 2 + replies: + - purpose: location + prompt_includes: + - 'teaser: A street in Thornwick,' + - It is part of Thornwick, which is 40 by 40 paces across. + - The Smithy, which fronts it on the + - Thornwick shop 1, which fronts it on the + - to the west, the well square + - NAME THIS STREET. It is one street of Thornwick. + - 'Places in Thornwick that are already named, so do not reuse one: the well square' + prompt_excludes: + - wall + - storey + content: + description: A narrow street of soot-dark fronts running off the square, a forge glowing at one door. + lore: The smiths took this street first. + name: the forge lane + items: [] + people: [] + - purpose: arrival + unavailable: true + expect: + location: the forge lane (realized) + changed: true + refused: false +- id: along-the-second-street + type: "/move Thornwick room 3" + browser: + token: along-the-second-street + realizes: Thornwick room 3 + replies: + - purpose: location + prompt_includes: + - Thornwick house 1, which fronts it on the + - Thornwick smithy 1, which fronts it on the + prompt_excludes: + - wall + - storey + content: + description: A long street of tall narrow houses, washing strung between the upper windows. + lore: The tanners lived here before the river moved. + name: the tanners' row + items: [] + people: [] + - purpose: arrival + unavailable: true + expect: + location: the tanners' row (realized) + changed: true + refused: false +- id: along-the-third-street + type: "/move Thornwick room 4" + browser: + token: along-the-third-street + realizes: Thornwick room 4 + replies: + - purpose: location + prompt_includes: + - The Inn, which fronts it on the + - the well square + prompt_excludes: + - wall + - storey + content: + description: A short street that bends back to the square, the inn's painted sign hanging over it. + lore: Drovers stop here on the way to market. + name: the inn street + items: [] + people: [] + - purpose: arrival + unavailable: true + expect: + location: the inn street (realized) + changed: true + refused: false +- id: into-the-inn + type: "/move The Inn" + browser: + token: into-the-inn + realizes: The Inn + replies: + - purpose: location + content: + description: A low timbered inn with a painted sign of a plough. + lore: The inn is as old as the square. + place_kind: warehouse + parameters: + inside: a few rooms + storeys_above: one storey up + storeys_below: nothing below + danger: safe + gradient: the same throughout + hazard: none + - purpose: location + content: + description: A taproom with a long bench under the window and a cold hearth. + lore: The drovers drink here. + items: [] + people: [] + - purpose: arrival + unavailable: true + expect: + location: The Inn room 1 (realized) + changed: true + refused: false +- id: back-onto-the-street + type: "/move the inn street" + expect: + location: the inn street (realized) + changed: true + refused: false +- id: round-to-the-square + type: "/move the well square" + expect: + location: the well square (realized) + changed: true + refused: false diff --git a/parity/worlds/a-town-of-three-streets.sql b/parity/worlds/a-town-of-three-streets.sql new file mode 100644 index 0000000..afeb5f2 --- /dev/null +++ b/parity/worlds/a-town-of-three-streets.sql @@ -0,0 +1,694 @@ +PRAGMA foreign_keys=OFF; +BEGIN TRANSACTION; +CREATE TABLE IF NOT EXISTS "characters_scenes" ("character_id" integer NOT NULL, "scene_id" integer NOT NULL); +INSERT INTO characters_scenes VALUES(1000000001,1000000001); +CREATE TABLE IF NOT EXISTS "lab_exits_vantages" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "world" varchar NOT NULL, "name" varchar NOT NULL, "teaser" text NOT NULL, "reached_from" varchar, "danger" varchar, "absent" text, "expects_inside_quantifier" varchar, "expects_population" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); +CREATE TABLE IF NOT EXISTS "lab_realization_kinds" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "world" varchar NOT NULL, "name" varchar NOT NULL, "teaser" text NOT NULL, "reached_from" varchar, "inside" varchar, "danger" varchar, "population" varchar, "expects_inside" text, "expects_population" text, "expects_storeys_above" text, "expects_storeys_below" text, "expects_danger" text, "expects_gradient" text, "expects_hazard" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); +CREATE TABLE IF NOT EXISTS "players" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "token_digest" varchar NOT NULL, "monthly_limit_usd" decimal(10,4) DEFAULT 1.0 NOT NULL, "revoked_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); +CREATE TABLE IF NOT EXISTS "playthrough_visits" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "location_id" integer NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); +CREATE TABLE IF NOT EXISTS "refused_lines" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "typed" text NOT NULL, "state" json NOT NULL, "answers" json, "reading" json NOT NULL, "act_confidence" float, "thing_confidence" float, "refusal" json NOT NULL, "place" varchar, "weights" varchar, "playthrough_id" integer, "location_id" integer, "status" varchar DEFAULT 'new' NOT NULL, "label" json, "labelled_at" datetime(6), "note" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); +CREATE TABLE IF NOT EXISTS "ruby_llm_batches" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "provider_batch_id" varchar NOT NULL, "provider" varchar NOT NULL, "status" varchar NOT NULL, "raw_status" varchar, "completed" boolean DEFAULT FALSE NOT NULL, "chat_type" varchar, "batch_protocol" varchar, "chat_ids" json DEFAULT '[]', "request_counts" json, "reported_cost" json, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); +CREATE TABLE IF NOT EXISTS "ruby_llm_models" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id" varchar NOT NULL, "name" varchar NOT NULL, "provider" varchar NOT NULL, "family" varchar, "model_created_at" datetime(6), "context_window" integer, "max_output_tokens" integer, "knowledge_cutoff" date, "modalities" json DEFAULT '{}', "capabilities" json DEFAULT '[]', "pricing" json DEFAULT '{}', "metadata" json DEFAULT '{}', "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "unlisted_at" datetime(6)); +CREATE TABLE IF NOT EXISTS "ruby_llm_tool_calls" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "message_id" integer NOT NULL, "tool_call_id" varchar NOT NULL, "name" varchar NOT NULL, "arguments" json DEFAULT '{}', "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "message_type" varchar NOT NULL, "result_type" varchar, "result_id" integer, "thought_signature" text, "approval" varchar, "remote" boolean DEFAULT FALSE NOT NULL); +CREATE TABLE IF NOT EXISTS "ruby_llm_usages" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "chat_type" varchar NOT NULL, "chat_id" integer NOT NULL, "message_type" varchar, "message_id" integer, "operation" varchar NOT NULL, "provider" varchar NOT NULL, "model" varchar NOT NULL, "status" varchar NOT NULL, "input_tokens" integer, "output_tokens" integer, "cache_read_tokens" integer, "cache_write_tokens" integer, "thinking_tokens" integer, "input_cost" decimal(16,10), "output_cost" decimal(16,10), "cache_read_cost" decimal(16,10), "cache_write_cost" decimal(16,10), "thinking_cost" decimal(16,10), "total_cost" decimal(16,10), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "latency_ms" integer, CONSTRAINT chk_rails_71abd85d6e CHECK (operation IN ('chat', 'embedding', 'moderation', 'image', 'speech', 'transcription', 'ocr', 'rerank')), CONSTRAINT chk_rails_f50895962a CHECK (status IN ('pending', 'succeeded', 'failed', 'cancelled'))); +CREATE TABLE IF NOT EXISTS "ruby_llm_v2_backfills" ("task" varchar NOT NULL, "last_id" integer, "completed" boolean DEFAULT FALSE NOT NULL); +CREATE TABLE IF NOT EXISTS "universes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "physics" text, "technology" text, "weapons" text, "civilizations" text, "geographies" text, "history" text, "economics" text, "politics" text, "religion" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "gravity" varchar, "carrying" varchar); +INSERT INTO universes VALUES(1000000001,'Ordinary physics.','Lanterns, iron keys and hand tools.','Short blades and cudgels.','Townsfolk who keep a shrine, an inn and a forge.','A small town of three streets around a square.','The shrine is older than the square around it.','Coin and barter.','A town council keeps the peace.','The town leaves candles at the shrine.','2026-12-03 14:12:47.916162','2026-12-03 14:12:47.916162',NULL,NULL); +CREATE TABLE IF NOT EXISTS "characters" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "fullname" varchar, "nickname" varchar, "age" integer, "sex" varchar, "personality" text, "appearance" text, "likes" text, "dislikes" text, "fears" text, "backstory" text, "is_companion" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "race_id" integer NOT NULL, "is_protagonist" boolean DEFAULT FALSE NOT NULL, "location_id" integer, "deliberately_absent" boolean DEFAULT FALSE NOT NULL, "level" integer, "hit_die" integer, "strength" integer, "dexterity" integer, "will" integer, "hostile" boolean DEFAULT FALSE NOT NULL, "x" integer, "y" integer, "conscious_desire" text, "unconscious_desire" text, "recognized_need" text, "unrecognized_need" text, "desire_pursuit" varchar, "need_pursuit" varchar, "posted_to_id" integer, CONSTRAINT "fk_rails_56a213cbe2" +FOREIGN KEY ("race_id") + REFERENCES "races" ("id") +, CONSTRAINT "fk_rails_0b4b445641" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_4c54fc506e" +FOREIGN KEY ("posted_to_id") + REFERENCES "locations" ("id") + ON DELETE SET NULL, CONSTRAINT "fk_rails_6608c248e8" +FOREIGN KEY ("story_id") + REFERENCES "stories" ("id") +); +INSERT INTO characters VALUES(1000000001,1000000001,'Wren','Wren',31,'female','Curious and careful.','A grey coat and a lantern.','Quiet mornings.','Locked doors.','The dark under the shrine.','She grew up on the north road and has never walked all of Thornwick.',0,'2026-12-03 14:12:48.053678','2026-12-03 14:12:48.053678',1000000001,1,NULL,0,3,8,12,12,12,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +CREATE TABLE IF NOT EXISTS "chats" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id_string" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "ruby_llm_model_id" integer, "purpose" varchar, "playthrough_id" integer, "character_id" integer, "cancelled" boolean DEFAULT FALSE NOT NULL, "player_id" integer, CONSTRAINT "fk_rails_415520c982" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_5c87bd0780" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_ea73c47d5b" +FOREIGN KEY ("player_id") + REFERENCES "players" ("id") +, CONSTRAINT "fk_rails_d8a12df187" +FOREIGN KEY ("ruby_llm_model_id") + REFERENCES "ruby_llm_models" ("id") +); +CREATE TABLE IF NOT EXISTS "floors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer NOT NULL, "rooms" integer NOT NULL, "danger" varchar, "hazard" varchar, "down_location_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "monster_level" integer, "levels_up" boolean DEFAULT FALSE NOT NULL, "minutes" integer, "safe_rooms" integer DEFAULT 0 NOT NULL, "healing_count" integer DEFAULT 0 NOT NULL, "healing_name" varchar, "healing_description" text, CONSTRAINT "fk_rails_8a0268155a" +FOREIGN KEY ("down_location_id") + REFERENCES "locations" ("id") + ON DELETE SET NULL, CONSTRAINT "fk_rails_ce8b005cb2" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") + ON DELETE CASCADE); +CREATE TABLE IF NOT EXISTS "interactions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "character_id" integer NOT NULL, "scene_id" integer, "location_id" integer, "pre_thought" text, "pre_feeling" text, "action" text, "post_feeling" text, "post_thought" text, "inner_resolution" text, "summary" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "user_input" text, "engine_action" varchar, "action_status" varchar, "action_fact" text, CONSTRAINT "fk_rails_294d4ae9f8" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_6b73a2cd17" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_b73583a008" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "items" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "character_id" integer, "name" varchar, "description" text, "properties" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "location_id" integer, "playthrough_id" integer, "readable" boolean DEFAULT FALSE NOT NULL, "inscription" text, "template_id" integer, "bulk" varchar DEFAULT 'handy' NOT NULL, "x" integer, "y" integer, "use_kind" varchar DEFAULT 'ordinary' NOT NULL, "combustible" boolean DEFAULT FALSE NOT NULL, "disposition" varchar DEFAULT 'intact' NOT NULL, "fragility" varchar DEFAULT 'sturdy' NOT NULL, "tier" varchar DEFAULT 'portable' NOT NULL, "holds" varchar, "within_id" integer, "how" varchar, "kit_key" varchar, "noticed_at" datetime(6), "searched_at" datetime(6), "hold" varchar, "material" varchar, "wear" varchar, "worn" boolean DEFAULT FALSE NOT NULL, "supply" varchar, CONSTRAINT "fk_rails_e8ed83a2e6" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_35423c7ef8" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_5248e92099" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +); +CREATE TABLE IF NOT EXISTS "lab_exits_judgements" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "vantage_id" integer NOT NULL, "name" varchar NOT NULL, "name_key" varchar NOT NULL, "expects_inside" text, "expects_population" text, "verdict" varchar, "aspects" text, "note" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_cbf2b734ae" +FOREIGN KEY ("vantage_id") + REFERENCES "lab_exits_vantages" ("id") +); +CREATE TABLE IF NOT EXISTS "lab_exits_samples" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "vantage_id" integer NOT NULL, "row" json DEFAULT '{}' NOT NULL, "verdict" varchar, "aspects" text, "note" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_3cc36a20a9" +FOREIGN KEY ("vantage_id") + REFERENCES "lab_exits_vantages" ("id") +); +CREATE TABLE IF NOT EXISTS "lab_realization_samples" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "kind_id" integer NOT NULL, "row" json DEFAULT '{}' NOT NULL, "verdict" varchar, "aspects" text, "note" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_7bb6f06ff4" +FOREIGN KEY ("kind_id") + REFERENCES "lab_realization_kinds" ("id") +); +CREATE TABLE IF NOT EXISTS "location_connections" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer NOT NULL, "connected_location_id" integer NOT NULL, "distance" text, "time_to_travel" text, "travel_method" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "hazard" varchar, "hazard_die" integer, "barrier" varchar DEFAULT 'open' NOT NULL, "key_template_id" integer, CONSTRAINT "fk_rails_99792c7943" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_34dc49debe" +FOREIGN KEY ("key_template_id") + REFERENCES "items" ("id") + ON DELETE SET NULL, CONSTRAINT "fk_rails_37a61eef17" +FOREIGN KEY ("connected_location_id") + REFERENCES "locations" ("id") +); +INSERT INTO location_connections VALUES(1000000001,1000000001,1000000003,'adjacent','about a minute','walking','2026-12-03 14:12:48.140051','2026-12-03 14:12:48.140051',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000002,1000000003,1000000001,'adjacent','about a minute','walking','2026-12-03 14:12:48.148926','2026-12-03 14:12:48.148926',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000003,1000000003,1000000002,'adjacent','about a minute','walking','2026-12-03 14:12:48.150000','2026-12-03 14:12:48.150000',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000004,1000000002,1000000003,'adjacent','about a minute','walking','2026-12-03 14:12:48.151000','2026-12-03 14:12:48.151000',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000005,1000000003,1000000004,'adjacent','about a minute','walking','2026-12-03 14:12:48.152000','2026-12-03 14:12:48.152000',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000006,1000000004,1000000003,'adjacent','about a minute','walking','2026-12-03 14:12:48.153000','2026-12-03 14:12:48.153000',NULL,NULL,'open',NULL); +CREATE TABLE IF NOT EXISTS "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "name" varchar, "description" text, "lore" text, "last_protagonist_visit" datetime(6), "parent_location_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "detail_level" varchar DEFAULT 'stub' NOT NULL, "teaser" text, "mobile" boolean DEFAULT FALSE NOT NULL, "danger" varchar DEFAULT 'safe' NOT NULL, "hazard" varchar, "hazard_die" integer, "x" integer, "y" integer, "z" integer, "width" integer, "depth" integer, "population" varchar, "generation_checkpoint" json, "surface" varchar, "kind" varchar, "density" varchar, "sanctuary" boolean DEFAULT FALSE NOT NULL, CONSTRAINT "fk_rails_5bc98acf09" +FOREIGN KEY ("parent_location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_fedd9b21a0" +FOREIGN KEY ("story_id") + REFERENCES "stories" ("id") +); +INSERT INTO locations VALUES(1000000001,1000000001,'The North Road','A rutted road running south between hedges to the edge of Thornwick.','Carters have used it longer than the town has had a name.',NULL,NULL,'2026-12-03 14:12:47.973166','2026-12-03 14:12:47.973166','realized','The road into Thornwick.',0,'safe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'nobody',NULL,NULL,NULL,NULL,0); +INSERT INTO locations VALUES(1000000002,1000000001,'The Shrine',NULL,NULL,NULL,NULL,'2026-12-03 14:12:47.985151','2026-12-03 14:12:47.985151','stub','A stone shrine with its door standing open.',0,'safe',NULL,NULL,NULL,NULL,NULL,12,10,'nobody',NULL,NULL,'temple',NULL,0); +INSERT INTO locations VALUES(1000000003,1000000001,'Thornwick',NULL,NULL,NULL,NULL,'2026-12-03 14:12:47.990000','2026-12-03 14:12:47.990000','stub','A small town of three streets around a square.',0,'safe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); +INSERT INTO locations VALUES(1000000004,1000000001,'The Inn',NULL,NULL,NULL,NULL,'2026-12-03 14:12:47.995000','2026-12-03 14:12:47.995000','stub','A low inn with a painted sign over its door.',0,'safe',NULL,NULL,NULL,NULL,NULL,10,9,'nobody',NULL,NULL,'inn',NULL,0); +INSERT INTO locations VALUES(1000000005,1000000001,'The Smithy',NULL,NULL,NULL,1000000003,'2026-12-03 14:12:47.999000','2026-12-03 14:12:47.999000','stub','A smithy with its forge banked for the night.',0,'safe',NULL,NULL,NULL,NULL,NULL,8,8,'nobody',NULL,NULL,'smithy',NULL,0); +CREATE TABLE IF NOT EXISTS "locations_world_events" ("location_id" integer NOT NULL, "world_event_id" integer NOT NULL, CONSTRAINT "fk_rails_861146f35c" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_16317bfdf9" +FOREIGN KEY ("world_event_id") + REFERENCES "world_events" ("id") +); +CREATE TABLE IF NOT EXISTS "messages" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "chat_id" integer NOT NULL, "role" varchar, "content" text, "model_id_string" varchar, "input_tokens" integer, "output_tokens" integer, "tool_call_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "model_id" integer, "scene_id" integer, "content_raw" json, "cache_until_here" boolean DEFAULT FALSE NOT NULL, "finish_reason" varchar, "citations" json, "server_tool_calls" json, "raw_content" json, "raw_reasoning" json, CONSTRAINT "fk_rails_c02b47ad97" +FOREIGN KEY ("model_id") + REFERENCES "ruby_llm_models" ("id") +, CONSTRAINT "fk_rails_0f670de7ba" +FOREIGN KEY ("chat_id") + REFERENCES "chats" ("id") +, CONSTRAINT "fk_rails_5c4d747b35" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_beats" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "quest_step_id" integer NOT NULL, "reached_at" datetime(6) NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_d479d5ffac" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_c536cc5a9f" +FOREIGN KEY ("quest_step_id") + REFERENCES "quest_steps" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_blows" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "attacker_id" integer NOT NULL, "target_id" integer NOT NULL, "location_id" integer NOT NULL, "damage" integer NOT NULL, "hp_after" integer NOT NULL, "round" integer NOT NULL, "sequence" integer NOT NULL, "story_timestamp" datetime(6) NOT NULL, "scene_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_f0e8a189c5" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_9a2b0679db" +FOREIGN KEY ("target_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_d02f38aa6d" +FOREIGN KEY ("attacker_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_104e085e3d" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_83e55c02a1" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_commands" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "request_token" varchar NOT NULL, "command" text NOT NULL, "status" varchar DEFAULT 'pending' NOT NULL, "result_scene_id" integer, "refusal" json DEFAULT '{}' NOT NULL, "error_kind" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "journal" json DEFAULT '{}' NOT NULL, CONSTRAINT "fk_rails_53f23eb49f" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_69c7d16a1a" +FOREIGN KEY ("result_scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_drifts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "scene_id" integer, "location_id" integer, "action" varchar NOT NULL, "command" text NOT NULL, "offered" text, "story_timestamp" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_018f29e0ac" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_094a605342" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_45044856a9" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_due_endings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "quest_outcome_id" integer NOT NULL, "due_at" datetime(6) NOT NULL, "declined_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_c471335e2f" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_b8e95530cf" +FOREIGN KEY ("quest_outcome_id") + REFERENCES "quest_outcomes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_endings" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "quest_outcome_id" integer NOT NULL, "reached_at" datetime(6) NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_762b78023d" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_2220d324b0" +FOREIGN KEY ("quest_outcome_id") + REFERENCES "quest_outcomes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_feedbacks" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "scene_id" integer NOT NULL, "verdict" varchar NOT NULL, "note" text, "prose_model" varchar, "prose_purpose" varchar, "prose_models" text, "answering_models" text, "input_tokens" integer, "output_tokens" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "prose_prompt_digest" varchar, CONSTRAINT "fk_rails_99ee3b49ea" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_247709935a" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_floors" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "location_id" integer NOT NULL, "arrived_at" datetime(6) NOT NULL, "level" integer, "scene_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "fell_at" datetime(6), CONSTRAINT "fk_rails_340e8cdc38" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_f82b72b677" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_b4a8914069" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_npc_states" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "character_id" integer NOT NULL, "location_id" integer, "following" boolean DEFAULT FALSE NOT NULL, "ceasefire" boolean DEFAULT FALSE NOT NULL, "peace_after_blow_id" integer DEFAULT 0 NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "noticed_at" datetime(6), CONSTRAINT "fk_rails_ef100d7841" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_71a135780d" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_984efad0e9" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_overreaches" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "scene_id" integer, "location_id" integer, "action" varchar NOT NULL, "command" text NOT NULL, "acted" text NOT NULL, "unacted" text NOT NULL, "story_timestamp" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_b903d1bc16" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_9aac75595a" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_879cc0f78c" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_paragraphs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "scene_id" integer NOT NULL, "author" varchar DEFAULT 'player' NOT NULL, "text" text NOT NULL, "audit" json, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "consent" varchar DEFAULT 'none' NOT NULL, "requests" json, "prompt_digest" varchar, CONSTRAINT "fk_rails_db3983d32c" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_52ef8100a0" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_passages" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "location_connection_id" integer NOT NULL, "opened_by_item_id" integer, "means" varchar NOT NULL, "opened_at" datetime(6) NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_7bdf6a743a" +FOREIGN KEY ("location_connection_id") + REFERENCES "location_connections" ("id") + ON DELETE CASCADE, CONSTRAINT "fk_rails_75c2355411" +FOREIGN KEY ("opened_by_item_id") + REFERENCES "items" ("id") + ON DELETE SET NULL, CONSTRAINT "fk_rails_995c25e2fd" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") + ON DELETE CASCADE); +CREATE TABLE IF NOT EXISTS "playthrough_rests" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "location_id" integer NOT NULL, "recovered" integer NOT NULL, "hp_after" integer NOT NULL, "story_timestamp" datetime(6) NOT NULL, "scene_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_d40226d075" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_52d7e18410" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_68b103131a" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_tolls" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "character_id" integer NOT NULL, "location_id" integer NOT NULL, "location_connection_id" integer, "hazard" varchar NOT NULL, "saved" boolean DEFAULT FALSE NOT NULL, "damage" integer NOT NULL, "hp_after" integer NOT NULL, "sequence" integer NOT NULL, "story_timestamp" datetime(6) NOT NULL, "scene_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_83dfd307ab" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_443984de3a" +FOREIGN KEY ("location_connection_id") + REFERENCES "location_connections" ("id") +, CONSTRAINT "fk_rails_8a2212da5c" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_6ec4904a86" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_af4dd03665" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_turn_events" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_command_id" integer NOT NULL, "sequence" integer NOT NULL, "kind" varchar NOT NULL, "data" json DEFAULT '{}' NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_c7a6770f24" +FOREIGN KEY ("playthrough_command_id") + REFERENCES "playthrough_commands" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_vitals" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "character_id" integer NOT NULL, "hp_current" integer NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "provoked_at" datetime(6), CONSTRAINT "fk_rails_03cf4b1b8e" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_9956f79aa5" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +); +CREATE TABLE IF NOT EXISTS "playthrough_volitions" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "playthrough_id" integer NOT NULL, "character_id" integer NOT NULL, "location_id" integer NOT NULL, "scene_id" integer, "chosen" varchar NOT NULL, "status" varchar NOT NULL, "fact" text NOT NULL, "serves" varchar NOT NULL, "round" integer NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "decided_by" varchar, "system_one_error" varchar, CONSTRAINT "fk_rails_55e6f9e865" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +, CONSTRAINT "fk_rails_0c408b6253" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_1824dea9f6" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_a054701564" +FOREIGN KEY ("scene_id") + REFERENCES "scenes" ("id") +); +CREATE TABLE IF NOT EXISTS "playthroughs" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "character_id" integer, "current_location_id" integer, "current_scene_id" integer, "token" varchar NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "ended_at" datetime(6), "player_id" integer, "mode" varchar DEFAULT 'narrated' NOT NULL, CONSTRAINT "fk_rails_9b48509224" +FOREIGN KEY ("current_scene_id") + REFERENCES "scenes" ("id") +, CONSTRAINT "fk_rails_3a7e48fa36" +FOREIGN KEY ("current_location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_5b54078c4b" +FOREIGN KEY ("character_id") + REFERENCES "characters" ("id") +, CONSTRAINT "fk_rails_ab75586f4b" +FOREIGN KEY ("player_id") + REFERENCES "players" ("id") +, CONSTRAINT "fk_rails_3d6d3a9c5a" +FOREIGN KEY ("story_id") + REFERENCES "stories" ("id") +); +CREATE TABLE IF NOT EXISTS "quest_outcomes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "quest_id" integer NOT NULL, "name" varchar NOT NULL, "summary" text NOT NULL, "is_default" boolean DEFAULT FALSE NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "condition" varchar, "minutes" integer, "ramification_summary" text, "ramification_minutes" integer, "step_position" integer, "character_id" integer, CONSTRAINT "fk_rails_acf8ece7c5" +FOREIGN KEY ("quest_id") + REFERENCES "quests" ("id") +); +CREATE TABLE IF NOT EXISTS "quest_steps" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "quest_id" integer NOT NULL, "position" integer NOT NULL, "summary" text NOT NULL, "trigger_kind" varchar NOT NULL, "target_name" varchar, "teaser" text, "target_type" varchar, "target_id" integer, "minutes" integer, "bound_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "companion_id" integer, CONSTRAINT "fk_rails_ba1603d17b" +FOREIGN KEY ("quest_id") + REFERENCES "quests" ("id") +); +CREATE TABLE IF NOT EXISTS "quests" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "parent_quest_id" integer, "title" varchar NOT NULL, "premise" text NOT NULL, "status" varchar DEFAULT 'open' NOT NULL, "contributes" boolean DEFAULT TRUE NOT NULL, "origin" varchar DEFAULT 'seeded' NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_a64954ae79" +FOREIGN KEY ("parent_quest_id") + REFERENCES "quests" ("id") +, CONSTRAINT "fk_rails_fa77fc496b" +FOREIGN KEY ("story_id") + REFERENCES "stories" ("id") +); +CREATE TABLE IF NOT EXISTS "races" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "universe_id" integer NOT NULL, "name" varchar NOT NULL, "description" text NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "monstrous" boolean DEFAULT FALSE NOT NULL, CONSTRAINT "fk_rails_c25ac61605" +FOREIGN KEY ("universe_id") + REFERENCES "universes" ("id") +); +INSERT INTO races VALUES(1000000001,1000000001,'Townsfolk','Ordinary people of the town.','2026-12-03 14:12:47.919905','2026-12-03 14:12:47.919905',0); +CREATE TABLE IF NOT EXISTS "relay_receipts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "player_id" integer NOT NULL, "route" varchar NOT NULL, "model" varchar NOT NULL, "stream" boolean DEFAULT FALSE NOT NULL, "status" varchar DEFAULT 'open' NOT NULL, "reserved_usd" decimal(12,6) NOT NULL, "cost_usd" decimal(12,6), "cost_source" varchar, "input_tokens" integer, "output_tokens" integer, "upstream_status" integer, "finished_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_deae27bd71" +FOREIGN KEY ("player_id") + REFERENCES "players" ("id") +); +CREATE TABLE IF NOT EXISTS "scenes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "location_id" integer NOT NULL, "previous_scene_id" integer, "description" text, "story_timestamp" datetime(6), "summary" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "is_opening" boolean DEFAULT FALSE NOT NULL, "typed" text, "resolved_action" varchar, "acted_on_type" varchar, "acted_on_id" integer, "resolved_by" varchar, "engine_fallback" boolean DEFAULT FALSE NOT NULL, "engine_fact" text, CONSTRAINT "fk_rails_5cc24f985a" +FOREIGN KEY ("previous_scene_id") + REFERENCES "scenes" ("id") +, CONSTRAINT "fk_rails_abfe1c0369" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") +, CONSTRAINT "fk_rails_38ea512481" +FOREIGN KEY ("story_id") + REFERENCES "stories" ("id") +); +INSERT INTO scenes VALUES(1000000001,1000000001,1000000001,NULL,'You stand on the north road with the roofs of Thornwick ahead.','2026-12-03 08:00:00','Wren arrives on the north road.','2026-12-03 14:12:48.250241','2026-12-03 14:12:48.250241',1,NULL,NULL,NULL,NULL,NULL,0,NULL); +CREATE TABLE IF NOT EXISTS "stories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "genre" varchar, "preface" text, "summary" text, "start_time" datetime(6), "universe_id" integer NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "generation_snapshot" text, "people_limit" integer, "things_limit" integer, CONSTRAINT "fk_rails_2a912ea846" +FOREIGN KEY ("universe_id") + REFERENCES "universes" ("id") +); +INSERT INTO stories VALUES(1000000001,'A Town of Three Streets (engine sweep)','town adventure','Thornwick is a small town of three streets around a square.','Wren walks the streets of Thornwick.','2026-12-03 08:00:00',1000000001,'2026-12-03 14:12:47.939522','2026-12-03 14:12:47.939522',NULL,NULL,NULL); +CREATE TABLE IF NOT EXISTS "system_one_receipts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "player_id" integer, "playthrough_id" integer, "purpose" varchar, "transport" varchar, "cost_usd" decimal(12,6) NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "cost_source" varchar DEFAULT 'estimated' NOT NULL, "latency_ms" integer, CONSTRAINT "fk_rails_4ae941c854" +FOREIGN KEY ("player_id") + REFERENCES "players" ("id") +, CONSTRAINT "fk_rails_75847e1556" +FOREIGN KEY ("playthrough_id") + REFERENCES "playthroughs" ("id") +); +CREATE TABLE IF NOT EXISTS "world_events" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "world_mechanic_id" integer, "story_id" integer NOT NULL, "occurred_at" datetime(6) NOT NULL, "summary" text NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "source" varchar NOT NULL, "playthrough_id" integer, "scheduled_for" datetime(6), "fired_at" datetime(6), CONSTRAINT "fk_rails_cafc0959e8" +FOREIGN KEY ("story_id") + REFERENCES "stories" ("id") +, CONSTRAINT "fk_rails_efc6cdec27" +FOREIGN KEY ("world_mechanic_id") + REFERENCES "world_mechanics" ("id") +); +CREATE TABLE IF NOT EXISTS "world_mechanics" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "name" varchar NOT NULL, "kind" varchar NOT NULL, "cadence" varchar NOT NULL, "description" text, "last_run_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_d7328bbbe5" +FOREIGN KEY ("story_id") + REFERENCES "stories" ("id") +); +CREATE TABLE IF NOT EXISTS "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY); +INSERT INTO schema_migrations VALUES('20261031180000'); +INSERT INTO schema_migrations VALUES('20261031150000'); +INSERT INTO schema_migrations VALUES('20261031120000'); +INSERT INTO schema_migrations VALUES('20261031090000'); +INSERT INTO schema_migrations VALUES('20261030230000'); +INSERT INTO schema_migrations VALUES('20261030200000'); +INSERT INTO schema_migrations VALUES('20261030120000'); +INSERT INTO schema_migrations VALUES('20261029154235'); +INSERT INTO schema_migrations VALUES('20261027120117'); +INSERT INTO schema_migrations VALUES('20261025230000'); +INSERT INTO schema_migrations VALUES('20261025200000'); +INSERT INTO schema_migrations VALUES('20261025120000'); +INSERT INTO schema_migrations VALUES('20261024120000'); +INSERT INTO schema_migrations VALUES('20261015213000'); +INSERT INTO schema_migrations VALUES('20261015200000'); +INSERT INTO schema_migrations VALUES('20261015180000'); +INSERT INTO schema_migrations VALUES('20261015120000'); +INSERT INTO schema_migrations VALUES('20261010220000'); +INSERT INTO schema_migrations VALUES('20261010180000'); +INSERT INTO schema_migrations VALUES('20261010120000'); +INSERT INTO schema_migrations VALUES('20260929023507'); +INSERT INTO schema_migrations VALUES('20260928124453'); +INSERT INTO schema_migrations VALUES('20260928102823'); +INSERT INTO schema_migrations VALUES('20260928035434'); +INSERT INTO schema_migrations VALUES('20260928035429'); +INSERT INTO schema_migrations VALUES('20260928031026'); +INSERT INTO schema_migrations VALUES('20260928025950'); +INSERT INTO schema_migrations VALUES('20260928020741'); +INSERT INTO schema_migrations VALUES('20260927152056'); +INSERT INTO schema_migrations VALUES('20260927031841'); +INSERT INTO schema_migrations VALUES('20260927031839'); +INSERT INTO schema_migrations VALUES('20260927031837'); +INSERT INTO schema_migrations VALUES('20260927031835'); +INSERT INTO schema_migrations VALUES('20260927031834'); +INSERT INTO schema_migrations VALUES('20260926195041'); +INSERT INTO schema_migrations VALUES('20260922141619'); +INSERT INTO schema_migrations VALUES('20260922141618'); +INSERT INTO schema_migrations VALUES('20260922141617'); +INSERT INTO schema_migrations VALUES('20260919202606'); +INSERT INTO schema_migrations VALUES('20260919202605'); +INSERT INTO schema_migrations VALUES('20260917133823'); +INSERT INTO schema_migrations VALUES('20260910041334'); +INSERT INTO schema_migrations VALUES('20260910025040'); +INSERT INTO schema_migrations VALUES('20260909030346'); +INSERT INTO schema_migrations VALUES('20260909023028'); +INSERT INTO schema_migrations VALUES('20260909023014'); +INSERT INTO schema_migrations VALUES('20260908203558'); +INSERT INTO schema_migrations VALUES('20260908155546'); +INSERT INTO schema_migrations VALUES('20260908120000'); +INSERT INTO schema_migrations VALUES('20260907150000'); +INSERT INTO schema_migrations VALUES('20260907140000'); +INSERT INTO schema_migrations VALUES('20260907120000'); +INSERT INTO schema_migrations VALUES('20260906130000'); +INSERT INTO schema_migrations VALUES('20260906120000'); +INSERT INTO schema_migrations VALUES('20260905150000'); +INSERT INTO schema_migrations VALUES('20260905140000'); +INSERT INTO schema_migrations VALUES('20260905130000'); +INSERT INTO schema_migrations VALUES('20260905120000'); +INSERT INTO schema_migrations VALUES('20260905110000'); +INSERT INTO schema_migrations VALUES('20260905100001'); +INSERT INTO schema_migrations VALUES('20260905100000'); +INSERT INTO schema_migrations VALUES('20260905090100'); +INSERT INTO schema_migrations VALUES('20260905090000'); +INSERT INTO schema_migrations VALUES('20260904190000'); +INSERT INTO schema_migrations VALUES('20260904180000'); +INSERT INTO schema_migrations VALUES('20260904170000'); +INSERT INTO schema_migrations VALUES('20260904160000'); +INSERT INTO schema_migrations VALUES('20260904120000'); +INSERT INTO schema_migrations VALUES('20260903170000'); +INSERT INTO schema_migrations VALUES('20260903120000'); +INSERT INTO schema_migrations VALUES('20260902120000'); +INSERT INTO schema_migrations VALUES('20260901170000'); +INSERT INTO schema_migrations VALUES('20260901160000'); +INSERT INTO schema_migrations VALUES('20260901120000'); +INSERT INTO schema_migrations VALUES('20260831140000'); +INSERT INTO schema_migrations VALUES('20260831130000'); +INSERT INTO schema_migrations VALUES('20260831120000'); +INSERT INTO schema_migrations VALUES('20260831000000'); +INSERT INTO schema_migrations VALUES('20260830220946'); +INSERT INTO schema_migrations VALUES('20260830220945'); +INSERT INTO schema_migrations VALUES('20260830210000'); +INSERT INTO schema_migrations VALUES('20260830200001'); +INSERT INTO schema_migrations VALUES('20260830200000'); +INSERT INTO schema_migrations VALUES('20260830192215'); +INSERT INTO schema_migrations VALUES('20260830192214'); +INSERT INTO schema_migrations VALUES('20250824193519'); +INSERT INTO schema_migrations VALUES('20250823024100'); +INSERT INTO schema_migrations VALUES('20250823024050'); +INSERT INTO schema_migrations VALUES('20250823024037'); +INSERT INTO schema_migrations VALUES('20250823024029'); +INSERT INTO schema_migrations VALUES('20250823024021'); +INSERT INTO schema_migrations VALUES('20250823024013'); +INSERT INTO schema_migrations VALUES('20250823023950'); +INSERT INTO schema_migrations VALUES('20250823023942'); +INSERT INTO schema_migrations VALUES('20250823023925'); +INSERT INTO schema_migrations VALUES('20250822184651'); +INSERT INTO schema_migrations VALUES('20250822184650'); +INSERT INTO schema_migrations VALUES('20250822184649'); +INSERT INTO schema_migrations VALUES('20261203150000'); +CREATE TABLE IF NOT EXISTS "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); +INSERT INTO ar_internal_metadata VALUES('environment','test','2026-12-03 14:12:46.582387','2026-12-03 14:12:46.582390'); +INSERT INTO ar_internal_metadata VALUES('schema_sha1','329070adbe704f45d3baf76252364b118fcf372d','2026-12-03 14:12:46.586255','2026-12-03 14:12:46.586257'); +CREATE TABLE IF NOT EXISTS "towns" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer NOT NULL, "streets" integer NOT NULL, "square" boolean DEFAULT FALSE NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_4f24ffc062" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") + ON DELETE CASCADE); +INSERT INTO towns VALUES(1000000001,1000000003,3,1,'2026-12-03 14:12:48.160000','2026-12-03 14:12:48.160000'); +PRAGMA writable_schema=ON; +CREATE TABLE IF NOT EXISTS sqlite_sequence(name,seq); +DELETE FROM sqlite_sequence; +INSERT INTO sqlite_sequence VALUES('lab_exits_vantages',1000000000); +INSERT INTO sqlite_sequence VALUES('lab_realization_kinds',1000000000); +INSERT INTO sqlite_sequence VALUES('players',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_visits',1000000000); +INSERT INTO sqlite_sequence VALUES('refused_lines',1000000000); +INSERT INTO sqlite_sequence VALUES('ruby_llm_batches',1000000000); +INSERT INTO sqlite_sequence VALUES('ruby_llm_models',1000000000); +INSERT INTO sqlite_sequence VALUES('ruby_llm_tool_calls',1000000000); +INSERT INTO sqlite_sequence VALUES('ruby_llm_usages',1000000000); +INSERT INTO sqlite_sequence VALUES('universes',1000000001); +INSERT INTO sqlite_sequence VALUES('characters',1000000001); +INSERT INTO sqlite_sequence VALUES('chats',1000000000); +INSERT INTO sqlite_sequence VALUES('floors',1000000000); +INSERT INTO sqlite_sequence VALUES('interactions',1000000000); +INSERT INTO sqlite_sequence VALUES('items',1000000000); +INSERT INTO sqlite_sequence VALUES('lab_exits_judgements',1000000000); +INSERT INTO sqlite_sequence VALUES('lab_exits_samples',1000000000); +INSERT INTO sqlite_sequence VALUES('lab_realization_samples',1000000000); +INSERT INTO sqlite_sequence VALUES('location_connections',1000000006); +INSERT INTO sqlite_sequence VALUES('locations',1000000005); +INSERT INTO sqlite_sequence VALUES('messages',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_beats',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_blows',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_commands',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_drifts',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_due_endings',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_endings',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_feedbacks',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_floors',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_npc_states',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_overreaches',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_paragraphs',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_passages',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_rests',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_tolls',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_turn_events',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_vitals',1000000000); +INSERT INTO sqlite_sequence VALUES('playthrough_volitions',1000000000); +INSERT INTO sqlite_sequence VALUES('playthroughs',1000000000); +INSERT INTO sqlite_sequence VALUES('quest_outcomes',1000000000); +INSERT INTO sqlite_sequence VALUES('quest_steps',1000000000); +INSERT INTO sqlite_sequence VALUES('quests',1000000000); +INSERT INTO sqlite_sequence VALUES('races',1000000001); +INSERT INTO sqlite_sequence VALUES('relay_receipts',1000000000); +INSERT INTO sqlite_sequence VALUES('scenes',1000000001); +INSERT INTO sqlite_sequence VALUES('stories',1000000001); +INSERT INTO sqlite_sequence VALUES('system_one_receipts',1000000000); +INSERT INTO sqlite_sequence VALUES('world_events',1000000000); +INSERT INTO sqlite_sequence VALUES('world_mechanics',1000000000); +INSERT INTO sqlite_sequence VALUES('towns',1000000001); +CREATE INDEX "index_characters_scenes_on_character_id_and_scene_id" ON "characters_scenes" ("character_id", "scene_id"); +CREATE INDEX "index_characters_scenes_on_scene_id_and_character_id" ON "characters_scenes" ("scene_id", "character_id"); +CREATE UNIQUE INDEX "index_players_on_name" ON "players" ("name"); +CREATE UNIQUE INDEX "index_players_on_token_digest" ON "players" ("token_digest"); +CREATE INDEX "index_playthrough_visits_on_location_id" ON "playthrough_visits" ("location_id"); +CREATE UNIQUE INDEX "index_playthrough_visits_on_playthrough_and_location" ON "playthrough_visits" ("playthrough_id", "location_id"); +CREATE INDEX "index_playthrough_visits_on_playthrough_id" ON "playthrough_visits" ("playthrough_id"); +CREATE INDEX "index_refused_lines_on_status" ON "refused_lines" ("status"); +CREATE UNIQUE INDEX "index_ruby_llm_batches_on_provider_and_provider_batch_id" ON "ruby_llm_batches" ("provider", "provider_batch_id"); +CREATE INDEX "index_ruby_llm_batches_on_status" ON "ruby_llm_batches" ("status"); +CREATE INDEX "index_ruby_llm_models_on_family" ON "ruby_llm_models" ("family"); +CREATE UNIQUE INDEX "index_ruby_llm_models_on_provider_and_model_id" ON "ruby_llm_models" ("provider", "model_id"); +CREATE INDEX "index_ruby_llm_models_on_provider" ON "ruby_llm_models" ("provider"); +CREATE INDEX "index_ruby_llm_tool_calls_on_message_type_and_message_id" ON "ruby_llm_tool_calls" ("message_type", "message_id"); +CREATE INDEX "index_ruby_llm_tool_calls_on_name" ON "ruby_llm_tool_calls" ("name"); +CREATE INDEX "index_ruby_llm_tool_calls_on_result_type_and_result_id" ON "ruby_llm_tool_calls" ("result_type", "result_id"); +CREATE UNIQUE INDEX "index_ruby_llm_tool_calls_on_tool_call_id" ON "ruby_llm_tool_calls" ("tool_call_id"); +CREATE INDEX "index_ruby_llm_usages_on_chat_type_and_chat_id" ON "ruby_llm_usages" ("chat_type", "chat_id"); +CREATE INDEX "index_ruby_llm_usages_on_message_type_and_message_id" ON "ruby_llm_usages" ("message_type", "message_id"); +CREATE INDEX "index_ruby_llm_usages_on_status" ON "ruby_llm_usages" ("status"); +CREATE UNIQUE INDEX "index_ruby_llm_v2_backfills_on_task" ON "ruby_llm_v2_backfills" ("task"); +CREATE UNIQUE INDEX "index_characters_on_story_id_and_lower_fullname" ON "characters" (story_id, LOWER(fullname)); +CREATE INDEX "index_characters_on_location_id_and_hostile" ON "characters" ("location_id", "hostile"); +CREATE INDEX "index_characters_on_location_id_and_id" ON "characters" ("location_id", "id"); +CREATE INDEX "index_characters_on_location_id" ON "characters" ("location_id"); +CREATE INDEX "index_characters_on_posted_to_id" ON "characters" ("posted_to_id"); +CREATE INDEX "index_characters_on_race_id" ON "characters" ("race_id"); +CREATE INDEX "index_characters_on_story_id_and_is_protagonist" ON "characters" ("story_id", "is_protagonist"); +CREATE INDEX "index_characters_on_story_id" ON "characters" ("story_id"); +CREATE INDEX "index_chats_on_character_id" ON "chats" ("character_id"); +CREATE INDEX "index_chats_on_player_id" ON "chats" ("player_id"); +CREATE INDEX "index_chats_on_conversation_key" ON "chats" ("playthrough_id", "character_id", "purpose"); +CREATE INDEX "index_chats_on_playthrough_id" ON "chats" ("playthrough_id"); +CREATE INDEX "index_chats_on_ruby_llm_model_id" ON "chats" ("ruby_llm_model_id"); +CREATE INDEX "index_floors_on_down_location_id" ON "floors" ("down_location_id"); +CREATE UNIQUE INDEX "index_floors_on_location_id" ON "floors" ("location_id"); +CREATE INDEX "index_interactions_on_character_id" ON "interactions" ("character_id"); +CREATE INDEX "index_interactions_on_location_id" ON "interactions" ("location_id"); +CREATE INDEX "index_interactions_on_scene_id" ON "interactions" ("scene_id"); +CREATE INDEX "index_items_on_character_id" ON "items" ("character_id"); +CREATE INDEX "index_items_on_location_id_and_character_id" ON "items" ("location_id", "character_id"); +CREATE INDEX "index_items_on_location_id" ON "items" ("location_id"); +CREATE INDEX "index_items_on_playthrough_id_and_id" ON "items" ("playthrough_id", "id"); +CREATE INDEX "index_items_on_playthrough_id_and_template_id" ON "items" ("playthrough_id", "template_id"); +CREATE INDEX "index_items_on_playthrough_id" ON "items" ("playthrough_id"); +CREATE INDEX "index_items_on_template_id" ON "items" ("template_id"); +CREATE INDEX "index_items_on_within_id" ON "items" ("within_id"); +CREATE UNIQUE INDEX "index_lab_exits_judgements_on_place" ON "lab_exits_judgements" ("vantage_id", "name_key"); +CREATE INDEX "index_lab_exits_judgements_on_vantage_id" ON "lab_exits_judgements" ("vantage_id"); +CREATE INDEX "index_lab_exits_samples_on_vantage_id" ON "lab_exits_samples" ("vantage_id"); +CREATE INDEX "index_lab_realization_samples_on_kind_id" ON "lab_realization_samples" ("kind_id"); +CREATE INDEX "index_location_connections_on_connected_location_id" ON "location_connections" ("connected_location_id"); +CREATE INDEX "index_location_connections_on_key_template_id" ON "location_connections" ("key_template_id"); +CREATE UNIQUE INDEX "idx_on_location_id_connected_location_id_a0efda2bf6" ON "location_connections" ("location_id", "connected_location_id"); +CREATE INDEX "index_location_connections_on_location_id" ON "location_connections" ("location_id"); +CREATE UNIQUE INDEX "index_locations_on_story_id_and_lower_name" ON "locations" (story_id, lower(name)); +CREATE INDEX "index_locations_on_parent_location_id" ON "locations" ("parent_location_id"); +CREATE INDEX "index_locations_on_story_id_and_detail_level" ON "locations" ("story_id", "detail_level"); +CREATE INDEX "index_locations_on_story_id" ON "locations" ("story_id"); +CREATE INDEX "index_locations_world_events_on_location_id" ON "locations_world_events" ("location_id"); +CREATE UNIQUE INDEX "index_locations_world_events_on_world_event_id_and_location_id" ON "locations_world_events" ("world_event_id", "location_id"); +CREATE INDEX "index_locations_world_events_on_world_event_id" ON "locations_world_events" ("world_event_id"); +CREATE INDEX "index_messages_on_chat_id" ON "messages" ("chat_id"); +CREATE INDEX "index_messages_on_model_id" ON "messages" ("model_id"); +CREATE INDEX "index_messages_on_scene_id" ON "messages" ("scene_id"); +CREATE INDEX "index_messages_on_tool_call_id" ON "messages" ("tool_call_id"); +CREATE UNIQUE INDEX "index_playthrough_beats_on_playthrough_id_and_quest_step_id" ON "playthrough_beats" ("playthrough_id", "quest_step_id"); +CREATE INDEX "index_playthrough_beats_on_playthrough_id" ON "playthrough_beats" ("playthrough_id"); +CREATE INDEX "index_playthrough_beats_on_quest_step_id" ON "playthrough_beats" ("quest_step_id"); +CREATE INDEX "index_playthrough_blows_on_attacker_id" ON "playthrough_blows" ("attacker_id"); +CREATE INDEX "index_playthrough_blows_on_location_id" ON "playthrough_blows" ("location_id"); +CREATE INDEX "index_playthrough_blows_on_playthrough_and_scene" ON "playthrough_blows" ("playthrough_id", "scene_id", "id"); +CREATE INDEX "index_playthrough_blows_on_playthrough_id" ON "playthrough_blows" ("playthrough_id"); +CREATE INDEX "index_playthrough_blows_on_scene_id" ON "playthrough_blows" ("scene_id"); +CREATE INDEX "index_playthrough_blows_on_target_id" ON "playthrough_blows" ("target_id"); +CREATE UNIQUE INDEX "index_playthrough_commands_on_submission" ON "playthrough_commands" ("playthrough_id", "request_token", "command"); +CREATE INDEX "index_playthrough_commands_on_playthrough_id" ON "playthrough_commands" ("playthrough_id"); +CREATE INDEX "index_playthrough_commands_on_result_scene_id" ON "playthrough_commands" ("result_scene_id"); +CREATE INDEX "index_playthrough_drifts_on_action" ON "playthrough_drifts" ("action"); +CREATE INDEX "index_playthrough_drifts_on_location_id" ON "playthrough_drifts" ("location_id"); +CREATE INDEX "index_playthrough_drifts_on_playthrough_id_and_story_timestamp" ON "playthrough_drifts" ("playthrough_id", "story_timestamp"); +CREATE INDEX "index_playthrough_drifts_on_playthrough_id" ON "playthrough_drifts" ("playthrough_id"); +CREATE INDEX "index_playthrough_drifts_on_scene_id" ON "playthrough_drifts" ("scene_id"); +CREATE UNIQUE INDEX "index_playthrough_due_endings_on_playthrough_id" ON "playthrough_due_endings" ("playthrough_id"); +CREATE INDEX "index_playthrough_due_endings_on_quest_outcome_id" ON "playthrough_due_endings" ("quest_outcome_id"); +CREATE UNIQUE INDEX "idx_on_playthrough_id_quest_outcome_id_7ea31b4171" ON "playthrough_endings" ("playthrough_id", "quest_outcome_id"); +CREATE INDEX "index_playthrough_endings_on_playthrough_id" ON "playthrough_endings" ("playthrough_id"); +CREATE INDEX "index_playthrough_endings_on_quest_outcome_id" ON "playthrough_endings" ("quest_outcome_id"); +CREATE UNIQUE INDEX "index_playthrough_feedbacks_on_playthrough_id_and_scene_id" ON "playthrough_feedbacks" ("playthrough_id", "scene_id"); +CREATE INDEX "index_playthrough_feedbacks_on_playthrough_id" ON "playthrough_feedbacks" ("playthrough_id"); +CREATE INDEX "index_playthrough_feedbacks_on_prose_model" ON "playthrough_feedbacks" ("prose_model"); +CREATE INDEX "index_playthrough_feedbacks_on_prose_prompt_digest" ON "playthrough_feedbacks" ("prose_prompt_digest"); +CREATE INDEX "index_playthrough_feedbacks_on_scene_id" ON "playthrough_feedbacks" ("scene_id"); +CREATE INDEX "index_playthrough_feedbacks_on_verdict" ON "playthrough_feedbacks" ("verdict"); +CREATE INDEX "index_playthrough_floors_on_location_id" ON "playthrough_floors" ("location_id"); +CREATE UNIQUE INDEX "index_playthrough_floors_on_playthrough_and_location" ON "playthrough_floors" ("playthrough_id", "location_id"); +CREATE INDEX "index_playthrough_floors_on_playthrough_id" ON "playthrough_floors" ("playthrough_id"); +CREATE INDEX "index_playthrough_floors_on_scene_id" ON "playthrough_floors" ("scene_id"); +CREATE INDEX "index_playthrough_npc_states_on_character_id" ON "playthrough_npc_states" ("character_id"); +CREATE INDEX "index_playthrough_npc_states_on_location_id" ON "playthrough_npc_states" ("location_id"); +CREATE UNIQUE INDEX "idx_on_playthrough_id_character_id_008ae03862" ON "playthrough_npc_states" ("playthrough_id", "character_id"); +CREATE INDEX "index_playthrough_npc_states_on_playthrough_id" ON "playthrough_npc_states" ("playthrough_id"); +CREATE INDEX "index_playthrough_overreaches_on_action" ON "playthrough_overreaches" ("action"); +CREATE INDEX "index_playthrough_overreaches_on_location_id" ON "playthrough_overreaches" ("location_id"); +CREATE INDEX "idx_on_playthrough_id_story_timestamp_b54cd36315" ON "playthrough_overreaches" ("playthrough_id", "story_timestamp"); +CREATE INDEX "index_playthrough_overreaches_on_playthrough_id" ON "playthrough_overreaches" ("playthrough_id"); +CREATE INDEX "index_playthrough_overreaches_on_scene_id" ON "playthrough_overreaches" ("scene_id"); +CREATE INDEX "index_playthrough_paragraphs_on_playthrough_id" ON "playthrough_paragraphs" ("playthrough_id"); +CREATE UNIQUE INDEX "index_playthrough_paragraphs_on_scene_id_and_author" ON "playthrough_paragraphs" ("scene_id", "author"); +CREATE INDEX "index_playthrough_passages_on_location_connection_id" ON "playthrough_passages" ("location_connection_id"); +CREATE INDEX "index_playthrough_passages_on_opened_by_item_id" ON "playthrough_passages" ("opened_by_item_id"); +CREATE UNIQUE INDEX "idx_on_playthrough_id_location_connection_id_6d3a29d910" ON "playthrough_passages" ("playthrough_id", "location_connection_id"); +CREATE INDEX "index_playthrough_passages_on_playthrough_id" ON "playthrough_passages" ("playthrough_id"); +CREATE INDEX "index_playthrough_rests_on_location_id" ON "playthrough_rests" ("location_id"); +CREATE INDEX "index_playthrough_rests_on_playthrough_id" ON "playthrough_rests" ("playthrough_id"); +CREATE INDEX "index_playthrough_rests_on_scene_id" ON "playthrough_rests" ("scene_id"); +CREATE INDEX "index_playthrough_tolls_on_character_id" ON "playthrough_tolls" ("character_id"); +CREATE INDEX "index_playthrough_tolls_on_location_connection_id" ON "playthrough_tolls" ("location_connection_id"); +CREATE INDEX "index_playthrough_tolls_on_location_id" ON "playthrough_tolls" ("location_id"); +CREATE INDEX "index_playthrough_tolls_on_playthrough_and_scene" ON "playthrough_tolls" ("playthrough_id", "scene_id", "id"); +CREATE INDEX "index_playthrough_tolls_on_playthrough_id" ON "playthrough_tolls" ("playthrough_id"); +CREATE INDEX "index_playthrough_tolls_on_scene_id" ON "playthrough_tolls" ("scene_id"); +CREATE UNIQUE INDEX "index_playthrough_turn_events_on_command_and_sequence" ON "playthrough_turn_events" ("playthrough_command_id", "sequence"); +CREATE INDEX "index_playthrough_turn_events_on_playthrough_command_id" ON "playthrough_turn_events" ("playthrough_command_id"); +CREATE INDEX "index_playthrough_vitals_on_character_id" ON "playthrough_vitals" ("character_id"); +CREATE UNIQUE INDEX "index_playthrough_vitals_on_playthrough_and_character" ON "playthrough_vitals" ("playthrough_id", "character_id"); +CREATE INDEX "index_playthrough_vitals_on_playthrough_id" ON "playthrough_vitals" ("playthrough_id"); +CREATE INDEX "index_playthrough_volitions_on_character_id" ON "playthrough_volitions" ("character_id"); +CREATE INDEX "index_playthrough_volitions_on_location_id" ON "playthrough_volitions" ("location_id"); +CREATE INDEX "index_playthrough_volitions_on_playthrough_and_scene" ON "playthrough_volitions" ("playthrough_id", "scene_id", "id"); +CREATE INDEX "index_playthrough_volitions_on_playthrough_id" ON "playthrough_volitions" ("playthrough_id"); +CREATE INDEX "index_playthrough_volitions_on_scene_id" ON "playthrough_volitions" ("scene_id"); +CREATE INDEX "index_playthroughs_on_character_id" ON "playthroughs" ("character_id"); +CREATE INDEX "index_playthroughs_on_current_location_id" ON "playthroughs" ("current_location_id"); +CREATE INDEX "index_playthroughs_on_current_scene_id" ON "playthroughs" ("current_scene_id"); +CREATE INDEX "index_playthroughs_on_player_id" ON "playthroughs" ("player_id"); +CREATE INDEX "index_playthroughs_on_story_id" ON "playthroughs" ("story_id"); +CREATE UNIQUE INDEX "index_playthroughs_on_token" ON "playthroughs" ("token"); +CREATE INDEX "index_quest_outcomes_on_character_id" ON "quest_outcomes" ("character_id"); +CREATE UNIQUE INDEX "index_quest_outcomes_on_quest_id_and_name" ON "quest_outcomes" ("quest_id", "name"); +CREATE INDEX "index_quest_outcomes_on_quest_id" ON "quest_outcomes" ("quest_id"); +CREATE INDEX "index_quest_steps_on_companion_id" ON "quest_steps" ("companion_id"); +CREATE UNIQUE INDEX "index_quest_steps_on_quest_id_and_position" ON "quest_steps" ("quest_id", "position"); +CREATE INDEX "index_quest_steps_on_quest_id" ON "quest_steps" ("quest_id"); +CREATE INDEX "index_quest_steps_on_target" ON "quest_steps" ("target_type", "target_id"); +CREATE INDEX "index_quests_on_parent_quest_id" ON "quests" ("parent_quest_id"); +CREATE UNIQUE INDEX "index_quests_on_story_id_and_title" ON "quests" ("story_id", "title"); +CREATE INDEX "index_quests_on_story_id" ON "quests" ("story_id"); +CREATE UNIQUE INDEX "index_races_on_universe_id_and_name" ON "races" ("universe_id", "name"); +CREATE INDEX "index_races_on_universe_id" ON "races" ("universe_id"); +CREATE INDEX "index_relay_receipts_on_player_id_and_created_at" ON "relay_receipts" ("player_id", "created_at"); +CREATE INDEX "index_relay_receipts_on_player_id_and_status" ON "relay_receipts" ("player_id", "status"); +CREATE INDEX "index_relay_receipts_on_player_id" ON "relay_receipts" ("player_id"); +CREATE INDEX "index_scenes_on_acted_on" ON "scenes" ("acted_on_type", "acted_on_id"); +CREATE INDEX "index_scenes_on_location_id" ON "scenes" ("location_id"); +CREATE INDEX "index_scenes_on_previous_scene_id" ON "scenes" ("previous_scene_id"); +CREATE INDEX "index_scenes_on_story_id_and_is_opening" ON "scenes" ("story_id", "is_opening"); +CREATE INDEX "index_scenes_on_story_id_and_resolved_action" ON "scenes" ("story_id", "resolved_action"); +CREATE INDEX "index_scenes_on_story_id_and_story_timestamp" ON "scenes" ("story_id", "story_timestamp"); +CREATE INDEX "index_scenes_on_story_id" ON "scenes" ("story_id"); +CREATE INDEX "index_stories_on_universe_id" ON "stories" ("universe_id"); +CREATE INDEX "index_system_one_receipts_on_player_id_and_created_at" ON "system_one_receipts" ("player_id", "created_at"); +CREATE INDEX "index_system_one_receipts_on_player_id" ON "system_one_receipts" ("player_id"); +CREATE INDEX "index_system_one_receipts_on_playthrough_id" ON "system_one_receipts" ("playthrough_id"); +CREATE INDEX "index_world_events_on_playthrough_id" ON "world_events" ("playthrough_id"); +CREATE INDEX "index_world_events_on_story_id_and_occurred_at" ON "world_events" ("story_id", "occurred_at"); +CREATE INDEX "index_world_events_on_story_id_and_scheduled_for" ON "world_events" ("story_id", "scheduled_for"); +CREATE INDEX "index_world_events_on_story_id" ON "world_events" ("story_id"); +CREATE INDEX "index_world_events_on_world_mechanic_id" ON "world_events" ("world_mechanic_id"); +CREATE UNIQUE INDEX "index_world_mechanics_on_story_id_and_name" ON "world_mechanics" ("story_id", "name"); +CREATE INDEX "index_world_mechanics_on_story_id" ON "world_mechanics" ("story_id"); +CREATE UNIQUE INDEX "index_towns_on_location_id" ON "towns" ("location_id"); +PRAGMA writable_schema=OFF; +COMMIT; diff --git a/src/data.rs b/src/data.rs index ab34104..5cf0237 100644 --- a/src/data.rs +++ b/src/data.rs @@ -12,7 +12,7 @@ const REQUEST: &str = include_str!("../data/playthrough/classifier/request.yml") /// Every data file, by its path under `data/` without `.yml`, and its /// text exactly as compiled in: what a host that reads the same words /// (the game's `EngineData`) reads. -pub fn files() -> [(&'static str, &'static str); 16] { +pub fn files() -> [(&'static str, &'static str); 17] { [ ("character/desires", DESIRES), ("item/inscriber", INSCRIBER), @@ -21,6 +21,7 @@ pub fn files() -> [(&'static str, &'static str); 16] { ("location/generator", LOCATION_GENERATOR), ("location/kind", LOCATION_KIND), ("location/size", LOCATION_SIZE), + ("location/town", LOCATION_TOWN), ("physics", PHYSICS), ("playthrough/classifier", CLASSIFIER), ("playthrough/classifier/request", REQUEST), @@ -685,6 +686,54 @@ fn read_location_size(source: &str) -> LocationSize { } } +const LOCATION_TOWN: &str = include_str!("../data/location/town.yml"); + +/// `data/location/town.yml`: the buildings a town's lots are dealt, each a +/// building of `location/kind.yml` with the weight it is dealt with, in +/// file order. +#[derive(Debug)] +pub struct LocationTown { + pub lots: Vec<(String, i64)>, +} + +/// The file's shape: every top-level key, and nothing else. +const LOCATION_TOWN_KEYS: &[&str] = &["lots"]; + +pub fn location_town() -> &'static LocationTown { + static TABLES: OnceLock = OnceLock::new(); + TABLES.get_or_init(|| read_location_town(LOCATION_TOWN)) +} + +fn read_location_town(source: &str) -> LocationTown { + let file = load("location/town.yml", source); + let keys: Vec = entries(&file, "location/town.yml") + .into_iter() + .map(|(key, _)| key) + .collect(); + assert_eq!(keys, LOCATION_TOWN_KEYS, "location/town.yml: its keys"); + let buildings: Vec<&str> = location_kind() + .buildings + .iter() + .map(|(name, _)| name.as_str()) + .collect(); + let lots: Vec<(String, i64)> = entries(&file["lots"], "location/town.yml: lots") + .into_iter() + .map(|(kind, weight)| { + assert!( + buildings.contains(&kind.as_str()), + "location/town.yml: {kind} is not a building of location/kind.yml" + ); + let weight = weight + .as_i64() + .unwrap_or_else(|| panic!("location/town.yml: {kind}'s weight is not a number")); + assert!(weight > 0, "location/town.yml: {kind}'s weight is {weight}"); + (kind, weight) + }) + .collect(); + assert!(!lots.is_empty(), "location/town.yml: no lots"); + LocationTown { lots } +} + const WEAR: &str = include_str!("../data/item/wear.yml"); /// `data/item/wear.yml`: the closed list of places on a body a thing is diff --git a/src/engine.rs b/src/engine.rs index f66030f..f138464 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -458,6 +458,44 @@ impl Engine { }) } + /// Lays out every town of a story that has no streets yet (a place with + /// a `towns` row, [`crate::town`]): its streets and square, their + /// doorways, its ways in and anchored buildings moved onto them, and a + /// lot on every frontage left, in one transaction; with `dry_run`, says + /// what it would lay out and writes nothing. Asks no model. Run again, + /// it finds nothing to do. A world's loader runs it before + /// [`Engine::lay_out_rooms`]; a town it leaves unlaid is laid out the + /// same on the turn somebody first walks into it. + pub fn lay_out_towns( + &mut self, + story: i64, + dry_run: bool, + ) -> Result, Error> { + let store = &self.store; + let work = || { + let mut records = store.load()?; + if records.find("stories", story).is_none() { + return Err(Error::NoSuchStory(format!("#{story}"))); + } + crate::turn::town::lay_out_all( + &mut crate::turn::town::Rows { + store, + records: &mut records, + }, + story, + ) + }; + if !dry_run { + return transaction(store, work); + } + guarded(|| { + store.begin()?; + let result = panic::catch_unwind(AssertUnwindSafe(work)); + store.rollback(); + result.unwrap_or_else(|panicked| panic::resume_unwind(panicked)) + }) + } + /// Gives every thing of a story, in the world and in each of its games, /// that names no place on a body but whose name the kits' `wear` table /// reads as a garment its place ([`crate::wear::unmarked`]), in one diff --git a/src/facts.rs b/src/facts.rs index 3986b8b..6dd5f5d 100644 --- a/src/facts.rs +++ b/src/facts.rs @@ -296,7 +296,7 @@ pub fn attached(pieces: &[&Row], parts: &[&Row]) -> Vec { } /// "a" or "an", by the word's first letter. -fn indefinite_article(word: &str) -> &'static str { +pub(crate) fn indefinite_article(word: &str) -> &'static str { match word.chars().next().map(|c| c.to_ascii_lowercase()) { Some('a' | 'e' | 'i' | 'o' | 'u') => "an", _ => "a", diff --git a/src/layout.rs b/src/layout.rs index f197f4a..afec6d1 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -149,7 +149,8 @@ pub struct LaidOut { } /// Every room of `story` that stands on its own and has no layout yet, in -/// id order, as it would be laid out: its box from [`own_box`], and a spot, +/// id order, but a town, whose streets are laid out inside it instead +/// (`town`), as it would be laid out: its box from [`own_box`], and a spot, /// as `Placement` rolls one in the world, for each of the world's own /// things lying loose on its floor and each person in it but the /// protagonist, whose spot is never kept. A thing on or in a piece keeps no @@ -160,7 +161,9 @@ pub fn lay_out(records: &Records, story: i64) -> Vec { let unplaced = |row: &Row| int(row, "x").is_none() || int(row, "y").is_none(); records .select("locations", |row| { - int(row, "story_id") == Some(story) && wants_one(row) + int(row, "story_id") == Some(story) + && wants_one(row) + && !crate::town::is_town(records, id(row)) }) .into_iter() .map(|room| { diff --git a/src/lib.rs b/src/lib.rs index df6792b..49f1020 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -81,6 +81,7 @@ pub mod spot; pub mod stat_block; pub mod store; pub mod text; +pub mod town; pub mod turn; pub mod volition; pub mod wear; diff --git a/src/plan.rs b/src/plan.rs index af4338d..370a24d 100644 --- a/src/plan.rs +++ b/src/plan.rs @@ -1,9 +1,14 @@ //! `Location::Plan`: what the engine knows about the shape of one room, said //! in sentences. Every one of them is a record read out: the room's own box, //! the wall each doorway is in, the storey, and the place it stands in. +//! +//! A street or the square of a town (`town`) is said out of doors: its +//! size, the town it is part of, which way each other street of the town +//! lies from it, and which side of it each building it leads into fronts +//! it on. It is told of no wall, door, stair or storey. use crate::boxes::{Box, WALLS}; -use crate::records::{id, int, string, Records, Row}; +use crate::records::{id, int, string, text, Records, Row}; use serde_json::{json, Value}; /// How a way out is described when it is neither a door nor a stair. @@ -42,6 +47,9 @@ struct Way<'a> { storey: Option, bearing: Option, from_storey: i64, + /// In a town, the building a way out leads into, and the side of the + /// street it fronts it on. + fronts: Option<(&'a Row, &'static str)>, } impl Way<'_> { @@ -63,6 +71,9 @@ pub struct Plan<'a> { place: &'a Row, r#box: Box, ways_out: Vec>, + /// For a street or square of a town (`town`), its sort: its shape is + /// said out of doors, with no wall, door, stair or storey. + outdoors: Option<&'a str>, } impl<'a> Plan<'a> { @@ -70,6 +81,8 @@ impl<'a> Plan<'a> { pub fn of(records: &'a Records, room: &'a Row) -> Option> { let r#box = box_of(room)?; let place = records.find("locations", int(room, "parent_location_id")?)?; + let outdoors = crate::town::is_town(records, id(place)) + .then(|| text(room, "kind").unwrap_or(crate::town::STREET)); let here = id(room); let mut ways_out: Vec> = records .select("location_connections", |edge| { @@ -86,10 +99,14 @@ impl<'a> Plan<'a> { way_for(room, &r#box, other) }) .collect(); + if outdoors.is_some() { + front(records, room, &mut ways_out); + } ways_out.sort_by(|a, b| { let key = |way: &Way| { ( way.wall + .or(way.fronts.map(|(_, side)| side)) .and_then(|wall| WALLS.iter().position(|w| *w == wall)) .unwrap_or(WALLS.len()), if way.stair() { 0 } else { 1 }, @@ -103,10 +120,18 @@ impl<'a> Plan<'a> { place, r#box, ways_out, + outdoors, }) } pub fn sentences(&self) -> Vec { + if let Some(kind) = self.outdoors { + return vec![ + self.outdoor_size_sentence(kind), + self.town_sentence(), + self.outdoor_ways_out_sentence(kind), + ]; + } vec![ self.size_sentence(), self.storey_sentence(), @@ -204,6 +229,48 @@ impl<'a> Plan<'a> { ) } + /// A town's street or square: its size, with no storey. + fn outdoor_size_sentence(&self, kind: &str) -> String { + let [wide, deep] = self.r#box.metres(); + format!( + "This {kind} is {} by {} paces -- about {wide} by {deep} metres.", + self.r#box.width, self.r#box.depth + ) + } + + /// The town a street or square is part of, and how far it runs. + fn town_sentence(&self) -> String { + let footprint = match (int(self.place, "width"), int(self.place, "depth")) { + (Some(width), Some(depth)) => format!(", which is {width} by {depth} paces across"), + _ => String::new(), + }; + format!("It is part of {}{footprint}.", string(self.place, "name")) + } + + /// A town's street or square: which way each other street lies, which + /// side each building fronts it on, and nothing of walls or doors. + fn outdoor_ways_out_sentence(&self, kind: &str) -> String { + if self.ways_out.is_empty() { + return format!("Nothing leads out of this {kind} yet."); + } + let clauses: Vec = self + .ways_out + .iter() + .map(|way| match (way.wall, way.fronts) { + (Some(wall), _) => format!("to the {wall}, {}", string(way.to, "name")), + (None, Some((building, side))) => format!( + "{}, which fronts it on the {side} side", + string(building, "name") + ), + (None, None) => self.clause_for(way), + }) + .collect(); + format!( + "Its ways out: {}. Those are every way out of this {kind}.", + clauses.join("; ") + ) + } + fn clause_for(&self, way: &Way) -> String { let to = string(way.to, "name"); if let Some(wall) = way.wall { @@ -227,6 +294,29 @@ impl<'a> Plan<'a> { } } +/// Marks each way out of a town's street that leads into a building +/// (`town::building_of`) with the building and the side of the street it +/// fronts it on, drawn from the sides no other street opens onto +/// (`town::frontage_side`). +fn front<'a>(records: &'a Records, room: &Row, ways: &mut [Way<'a>]) { + let story = int(room, "story_id").unwrap_or_default(); + let open: Vec<&'static str> = WALLS + .iter() + .copied() + .filter(|wall| !ways.iter().any(|way| way.wall == Some(*wall))) + .collect(); + for way in ways.iter_mut().filter(|way| way.wall.is_none()) { + way.fronts = crate::town::building_of(records, id(way.to)) + .and_then(|building| records.find("locations", building)) + .map(|building| { + ( + building, + crate::town::frontage_side(story, id(building), &open), + ) + }); + } +} + fn way_for<'a>(room: &Row, r#box: &Box, other: &'a Row) -> Way<'a> { let plain = |wall, storey, bearing| Way { to: other, @@ -234,6 +324,7 @@ fn way_for<'a>(room: &Row, r#box: &Box, other: &'a Row) -> Way<'a> { storey, bearing, from_storey: r#box.z, + fronts: None, }; let far = match box_of(other) { Some(far) if int(other, "parent_location_id") == int(room, "parent_location_id") => far, diff --git a/src/reach.rs b/src/reach.rs index 1c61cda..dd5a5da 100644 --- a/src/reach.rs +++ b/src/reach.rs @@ -101,12 +101,16 @@ pub fn step_back(room: &Box, from: Spot, away: Spot) -> Result { /// Every place of a story the party could stand in that has no layout, so /// that no spot in it can be measured: neither a box of its own nor a -/// footprint whose rooms are walked into instead. A warning only: nothing -/// plays differently for it. +/// footprint whose rooms are walked into instead, nor a town whose streets +/// are (`crate::town`), which has its footprint once they are laid out. A +/// warning only: nothing plays differently for it. pub fn findings(records: &Records, story: i64) -> Vec { records .select("locations", |row| { - int(row, "story_id") == Some(story) && box_of(row).is_none() && !interior(row) + int(row, "story_id") == Some(story) + && box_of(row).is_none() + && !interior(row) + && !crate::town::is_town(records, id(row)) }) .into_iter() .map(|room| Finding { diff --git a/src/realization.rs b/src/realization.rs index 6fcef76..df895db 100644 --- a/src/realization.rs +++ b/src/realization.rs @@ -284,6 +284,9 @@ impl<'a> Realization<'a> { let Some(place) = self.naming() else { return String::new(); }; + if crate::town::is_town(self.records, id(place)) { + return self.street_name_instruction(place); + } let name = string(place, "name"); let named: Vec<&str> = self .records @@ -313,6 +316,41 @@ impl<'a> Realization<'a> { ) } + /// The naming line for a street or the square of a town (`town`): the + /// room's own sort and the town, and the town's streets already named. + fn street_name_instruction(&self, town: &Row) -> String { + let name = string(town, "name"); + let kind = text(self.location, "kind").unwrap_or(crate::town::STREET); + let shout = kind.to_uppercase(); + let named: Vec<&str> = self + .records + .select("locations", |row| { + int(row, "parent_location_id") == Some(id(town)) + && id(row) != id(self.location) + && box_of(row).is_some() + }) + .iter() + .map(|row| string(row, "name")) + .filter(|sibling| !is_blank(sibling) && !placeholder_name(town, sibling)) + .collect(); + let note = if named.is_empty() { + String::new() + } else { + format!( + ". Places in {name} that are already named, so do not reuse one: {}", + named.join("; ") + ) + }; + format!( + "\n- NAME THIS {shout}. It is one {kind} of {name}. The player reads the {kind} and\n \ + the town together -- \"the of {name}\" -- so name the {shout} only,\n \ + and never put the town's own name into it. A short noun phrase carrying the\n \ + article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n \ + street\", \"the well square\". Name it for what the plan above says this {kind}\n \ + is and for what you have just described along it. Never a comma in it{note}" + ) + } + /// The world's own things lying in this room, in the order they were /// written (`Item.lying_in(location).templates.order(:id)`). A piece's /// parts are not among them: nothing states them to the room writer. diff --git a/src/roll.rs b/src/roll.rs index de3f87e..4c5df92 100644 --- a/src/roll.rs +++ b/src/roll.rs @@ -52,6 +52,10 @@ pub const ROOM_SIZE: i128 = 20; /// out leaves by, by the doorway's own row; worked out on every read and /// never kept. pub const WAY_OUT_SIDE: i128 = 21; +/// `Roll::FRONTAGE_SIDE`: which side of a town's street a building fronting +/// it stands on, by the building's own row; worked out on every read and +/// never kept. +pub const FRONTAGE_SIDE: i128 = 22; /// The five parts of a seed. Unset parts are 0. #[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] diff --git a/src/store.rs b/src/store.rs index 24d0f08..b5f6166 100644 --- a/src/store.rs +++ b/src/store.rs @@ -137,11 +137,16 @@ pub const PLAYTHROUGH_FLOORS: &str = "playthrough_floors"; /// it, and when it began. pub const PLAYTHROUGH_RESTS: &str = "playthrough_rests"; +/// A town's own layout numbers, one row per place laid out as a town +/// (`town`): how many streets it is drawn with and whether it has a square. +/// The game's migration adds it; a database from before it holds no town. +pub const TOWNS: &str = "towns"; + /// Tables the engine loads only where the database has them: a database /// from before one was added reads as holding no rows of it. The engine /// writes only [`PLAYTHROUGH_FLOORS`] and [`PLAYTHROUGH_RESTS`] of them, and /// only where they are there. -pub const OPTIONAL_LOADED: &[&str] = &[FLOORS, PLAYTHROUGH_FLOORS, PLAYTHROUGH_RESTS]; +pub const OPTIONAL_LOADED: &[&str] = &[FLOORS, PLAYTHROUGH_FLOORS, PLAYTHROUGH_RESTS, TOWNS]; /// The shape of each table of [`OPTIONAL_LOADED`], as [`shape`] would state /// it, foreign keys included. [`shape`] leaves these facts out when every @@ -205,6 +210,19 @@ pub const OPTIONAL_SHAPES: &[(&str, &[&str])] = &[ "index playthrough_rests (scene_id)", ], ), + ( + TOWNS, + &[ + "column towns.created_at datetime(6) not null pk=0", + "column towns.id integer not null pk=1", + "column towns.location_id integer not null pk=0", + "column towns.square boolean not null default FALSE pk=0", + "column towns.streets integer not null pk=0", + "column towns.updated_at datetime(6) not null pk=0", + "foreign key towns.location_id -> locations.id on update NO ACTION on delete CASCADE", + "index towns (location_id) unique", + ], + ), ]; /// What the engine relies on in a database, one fact per line, sorted: for diff --git a/src/town.rs b/src/town.rs new file mode 100644 index 0000000..02f19ec --- /dev/null +++ b/src/town.rs @@ -0,0 +1,506 @@ +//! A town: a place its world gives a `towns` row, laid out by the engine as +//! a whole before a word of it is written. Its streets and its square are +//! rooms with boxes in the town's own plane, cut from one near-square grid +//! and joined along the serpentine, so every street is reachable from the +//! first and none passes `MAX_EXITS` doorways; every building the world +//! seeds in the town (an anchor) is stood on a street (a frontage: a +//! doorway from the street to the building, which opens onto the building's +//! entry room once the building is laid out); and every frontage no anchor +//! and no way in takes is dealt a lot: a building stub of a kind drawn from +//! `data/location/town.yml`, laid out when somebody first walks in, as any +//! building is. +//! +//! A street of a laid-out town is a room with a box and a parent, so it is +//! never asked for its ways out (`turn::told::realize`): the town is closed +//! before any of it is written. +//! +//! Every draw comes from the town's own generator (`Roll::INTERIOR`, on the +//! town's row), in this order: the grid's column widths, row depths and +//! serpentine, each room's danger as it is created (the quiet band, as a +//! building whose picks are all left out), the extra doors, the street each +//! anchor fronts, then each lot's kind, footprint and danger, room by room. The same +//! town in the same story is laid out the same every time. Nothing a model +//! answers is read. + +use crate::boxes::{Box, WALLS}; +use crate::danger; +use crate::data; +use crate::facts::indefinite_article; +use crate::floor; +use crate::interior::{Builder, Layout, Place, MAX_EXITS, MINIMUM_SIDE, WALKING}; +use crate::parameters::Parameters; +use crate::plan::{box_of, interior}; +use crate::records::{id, int, Records, Row}; +use crate::roll::{self, Seed}; +use crate::store::{FLOORS, TOWNS}; + +/// The paces a side of a town's street or square is given on average when +/// the town's footprint is sized from its room count. +pub const STREET_SIDE: i64 = 20; + +/// The most streets a town is laid out with. +pub const MOST_STREETS: i64 = 100; + +/// The sort a street of a town is (`location/kind.yml`). +pub const STREET: &str = "street"; + +/// The sort a town's square is. +pub const SQUARE: &str = "square"; + +/// The size of building a lot is dealt: the band a stub an exits call says +/// has "a few rooms" is given its footprint from (`Parameters::footprint`). +pub const LOT_INSIDE: &str = "a few rooms"; + +/// What a town's row says about its layout. +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] +pub struct Town { + /// How many streets the town is drawn with (`towns.streets`). + pub streets: i64, + /// Whether one of its rooms is a square (`towns.square`): the first, + /// where its ways in arrive. + pub square: bool, +} + +/// A building stub dealt onto a frontage no anchor took. +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct Lot { + /// The index of the street it fronts, in `layout.rooms`. + pub room: usize, + /// The building it is (`location/kind.yml`'s `buildings`). + pub kind: &'static str, + /// Its `[width, depth]`. + pub footprint: (i64, i64), + /// Its danger, from the quiet band a street's is. + pub danger: &'static str, +} + +/// A town's streets and doorways, and what stands on each of them. +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct Laid { + /// The streets and the square, and the doorways between them. Index 0 is + /// the first: the square when the town has one. + pub layout: Layout, + /// For each way into the town, in the order given, the room it arrives + /// on: the first with a doorway to spare, in serpentine order; none when + /// every room is full. + pub ways_in: Vec>, + /// For each anchor, in the order given, the street it fronts, drawn from + /// every room with a doorway to spare after the ways in; none when every + /// room is full. + pub frontages: Vec>, + /// The lots, room by room: one on every doorway still to spare. + pub lots: Vec, +} + +/// How many rooms a town is drawn with: its streets, at most +/// `MOST_STREETS`, and its square; at least one. +pub fn room_count(town: &Town) -> usize { + let streets = town.streets.clamp(0, MOST_STREETS) as usize; + (streets + usize::from(town.square)).max(1) +} + +/// The footprint `[width, depth]` a town of `rooms` rooms is sized at: +/// `STREET_SIDE` paces a side for every column and row of its grid. +pub fn footprint(rooms: usize) -> (i64, i64) { + let (columns, rows) = floor::grid(rooms); + (columns * STREET_SIDE, rows * STREET_SIDE) +} + +/// Lays a town out, with `ways_in` ways into it and `anchors` buildings to +/// stand on its streets. `place.footprint` is kept when each side holds the +/// grid at the smallest side a room may have, and is `footprint` +/// otherwise; `place.kind` is never read. +pub fn lay_out(place: &Place, town: &Town, ways_in: usize, anchors: usize) -> Laid { + let count = room_count(town); + let (columns, rows) = floor::grid(count); + let (width, depth) = place + .footprint + .filter(|(width, depth)| *width >= columns * MINIMUM_SIDE && *depth >= rows * MINIMUM_SIDE) + .unwrap_or_else(|| footprint(count)); + let quiet = Parameters::default(); + let mut builder = Builder::new(place); + let mut boxes = builder.grid(width, depth, 0, columns, rows); + boxes.truncate(count); + let rooms: Vec = boxes + .into_iter() + .map(|bounds| builder.create_room(place, bounds, Some(&quiet))) + .collect(); + for pair in rooms.windows(2) { + builder.connect(pair[0], pair[1], WALKING); + } + builder.open_extra_doors(&rooms); + builder.close_connectivity(); + for (index, room) in builder.rooms.iter_mut().enumerate() { + room.kind = Some(if index == 0 && town.square { + SQUARE + } else { + STREET + }); + } + let mut used: Vec = (0..count) + .map(|room| { + builder + .edges + .iter() + .filter(|edge| edge.from == room) + .count() + }) + .collect(); + let take = |room: usize, used: &mut Vec| { + used[room] += 1; + room + }; + let ways_in = (0..ways_in) + .map(|_| { + (0..count) + .find(|room| used[*room] < MAX_EXITS) + .map(|room| take(room, &mut used)) + }) + .collect(); + let frontages = (0..anchors) + .map(|_| { + let open: Vec = (0..count).filter(|room| used[*room] < MAX_EXITS).collect(); + (!open.is_empty()) + .then(|| take(open[roll::one_of(open.len(), &mut builder.rng)], &mut used)) + }) + .collect(); + let table = &data::location_town().lots; + let weights: Vec = table.iter().map(|(_, weight)| *weight).collect(); + let inside = Parameters { + inside: Some(LOT_INSIDE.to_string()), + ..Parameters::default() + }; + let mut lots = Vec::new(); + for (room, used) in used.iter().enumerate() { + for _ in *used..MAX_EXITS { + let kind = table[roll::weighted_one_of(table.len(), &weights, &mut builder.rng)] + .0 + .as_str(); + let footprint = inside + .footprint(&mut builder.rng) + .expect("a lot's band has a footprint"); + let danger = danger::in_a_place(&quiet, 0, &mut builder.rng); + lots.push(Lot { + room, + kind, + footprint, + danger, + }); + } + } + Laid { + layout: Layout { + footprint: (width, depth), + rooms: builder.rooms, + edges: builder.edges, + }, + ways_in, + frontages, + lots, + } +} + +/// Whether a place is a town (`towns` row). +pub fn is_town(records: &Records, location: i64) -> bool { + records + .first(TOWNS, |town| int(town, "location_id") == Some(location)) + .is_some() +} + +/// Whether a location is a building: a place (a footprint and no box) that +/// is neither a floor nor a town. +fn is_building(records: &Records, row: &Row) -> bool { + let here = Some(id(row)); + interior(row) + && box_of(row).is_none() + && records + .first(FLOORS, |floor| int(floor, "location_id") == here) + .is_none() + && !is_town(records, id(row)) +} + +/// The building `location` is or is a room of, if any: what stands on a +/// town's street when a doorway from the street leads to it, before and +/// after the building is laid out. +pub fn building_of(records: &Records, location: i64) -> Option { + let row = records.find("locations", location)?; + if is_building(records, row) { + return Some(id(row)); + } + box_of(row)?; + let parent = records.find("locations", int(row, "parent_location_id")?)?; + is_building(records, parent).then(|| id(parent)) +} + +/// Which side of a town's street the building `building` (its own row) +/// fronts it on: one of `open`, the sides of the street no other street of +/// the town opens onto, or any of the four when there is none, drawn on +/// the building's row (`Roll::FRONTAGE_SIDE`), so the street is told the +/// same side however often it is read, before and after the building is +/// laid out. +pub fn frontage_side(story: i64, building: i64, open: &[&'static str]) -> &'static str { + let sides: &[&'static str] = if open.is_empty() { &WALLS } else { open }; + let mut rng = Seed { + story: story.into(), + sequence: building.into(), + kind: roll::FRONTAGE_SIDE, + ..Seed::default() + } + .generator(); + sides[roll::one_of(sides.len(), &mut rng)] +} + +/// What a lot is called: the town, its building and how many of that +/// building the town has been dealt so far, counting this one. No model +/// names a lot. +pub fn lot_name(town: &str, kind: &str, number: usize) -> String { + format!("{town} {kind} {number}") +} + +/// "A" or "An", by the word's first letter. +fn capital_article(word: &str) -> &'static str { + match indefinite_article(word) { + "an" => "An", + _ => "A", + } +} + +/// A street's or the square's teaser until it is written: its sort, the +/// town and its size. The room writer reads it. +pub fn street_teaser(kind: &str, town: &str, bounds: &Box) -> String { + format!( + "{} {kind} in {town}, {} by {} paces.", + capital_article(kind), + bounds.width, + bounds.depth + ) +} + +/// A lot's teaser: its building and the town. The room writer reads it. +pub fn lot_teaser(kind: &str, town: &str) -> String { + format!("{} {kind} in {town}.", capital_article(kind)) +} + +#[cfg(test)] +mod tests { + use super::*; + + fn place(id: i64) -> Place<'static> { + Place { + story_id: 7, + id, + name: "Thornwick", + clock: 0, + existing_locations: 3, + footprint: None, + kind: None, + density: None, + } + } + + fn exits(laid: &Laid, room: usize) -> usize { + laid.layout + .edges + .iter() + .filter(|edge| edge.from == room) + .count() + } + + fn reachable(layout: &Layout) -> Vec { + let mut seen = vec![0]; + let mut next = 0; + while next < seen.len() { + let room = seen[next]; + next += 1; + for edge in layout.edges.iter().filter(|edge| edge.from == room) { + if !seen.contains(&edge.to) { + seen.push(edge.to); + } + } + } + seen.sort_unstable(); + seen + } + + /// Every count of streets from none to sixty, with and without a + /// square, with up to two ways in and up to eight anchors, over many + /// towns: exactly the count, every room reachable from the first, every + /// doorway both ways along a shared wall, every room at four doorways + /// in all once its ways in, frontages and lots are counted and never + /// past them, and each anchor on a room that had one to spare. + #[test] + fn a_town_is_laid_out_to_its_count_and_holds_every_rule() { + for streets in 0..=60 { + for square in [false, true] { + for id in 1..=6 { + for (ways_in, anchors) in [(0, 0), (1, 3), (2, 8)] { + let town = Town { streets, square }; + let laid = lay_out(&place(id * 1009), &town, ways_in, anchors); + let what = format!("{streets} streets, square {square}, town {id}"); + let layout = &laid.layout; + let count = layout.rooms.len(); + assert_eq!(count, room_count(&town), "{what}"); + assert_eq!(reachable(layout), (0..count).collect::>(), "{what}"); + for edge in &layout.edges { + assert!( + layout + .edges + .iter() + .any(|back| back.from == edge.to && back.to == edge.from), + "{what}" + ); + assert!(layout.rooms[edge.from] + .bounds + .shares_a_wall(&layout.rooms[edge.to].bounds)); + } + assert_eq!(laid.ways_in.len(), ways_in, "{what}"); + assert_eq!(laid.frontages.len(), anchors, "{what}"); + for room in 0..count { + let landed = laid.ways_in.iter().flatten().filter(|r| **r == room); + let fronting = laid.frontages.iter().flatten().filter(|r| **r == room); + let lots = laid.lots.iter().filter(|lot| lot.room == room); + let doorways = exits(&laid, room) + + landed.count() + + fronting.count() + + lots.count(); + assert_eq!(doorways, MAX_EXITS, "{what}: room {room}"); + } + assert!(laid.ways_in.iter().all(Option::is_some), "{what}"); + for (index, room) in layout.rooms.iter().enumerate() { + assert_eq!(room.bounds.z, 0, "{what}"); + assert!(room.bounds.width >= MINIMUM_SIDE, "{what}"); + assert!(room.bounds.depth >= MINIMUM_SIDE, "{what}"); + let sort = if index == 0 && square { SQUARE } else { STREET }; + assert_eq!(room.kind, Some(sort), "{what}"); + assert_eq!(room.hazard, None, "{what}"); + } + } + } + } + } + } + + #[test] + fn the_same_town_is_laid_out_the_same_every_time() { + let town = Town { + streets: 9, + square: true, + }; + assert_eq!( + lay_out(&place(42), &town, 1, 4), + lay_out(&place(42), &town, 1, 4) + ); + assert_ne!( + lay_out(&place(42), &town, 1, 4), + lay_out(&place(43), &town, 1, 4), + "another town rolls another town" + ); + } + + /// Ways in take the first room with a doorway to spare, so a town with + /// a square is walked into at its square; anchors are drawn before the + /// lots, and an anchor no room has a doorway for fronts nothing. + #[test] + fn ways_in_arrive_first_and_anchors_are_stood_before_the_lots() { + let town = Town { + streets: 1, + square: true, + }; + let laid = lay_out(&place(5), &town, 1, 2); + assert_eq!(laid.ways_in, vec![Some(0)]); + assert!(laid.frontages.iter().all(Option::is_some)); + // Two rooms with one doorway between them leave six; one way in and + // two anchors take three, and three lots the rest. + assert_eq!(laid.lots.len(), 3); + let crowded = lay_out(&place(5), &town, 1, 9); + assert_eq!(crowded.frontages.iter().flatten().count(), 5); + assert_eq!( + crowded + .frontages + .iter() + .filter(|room| room.is_none()) + .count(), + 4 + ); + assert!(crowded.lots.is_empty()); + } + + #[test] + fn every_lot_is_a_building_of_the_table_in_the_band_of_a_few_rooms() { + let table: Vec<&str> = data::location_town() + .lots + .iter() + .map(|(kind, _)| kind.as_str()) + .collect(); + let laid = lay_out( + &place(11), + &Town { + streets: 40, + square: true, + }, + 1, + 0, + ); + assert!(laid.lots.len() > 40); + for lot in &laid.lots { + assert!(table.contains(&lot.kind), "{}", lot.kind); + assert!((6..=9).contains(&lot.footprint.0)); + assert!((6..=9).contains(&lot.footprint.1)); + } + assert!(laid.lots.iter().any(|lot| lot.kind == "house")); + } + + #[test] + fn the_footprint_holds_the_grid_and_a_kept_one_is_kept() { + assert_eq!(footprint(4), (40, 40)); + assert_eq!(footprint(5), (60, 40)); + let town = Town { + streets: 3, + square: true, + }; + let mut kept = place(5); + kept.footprint = Some((50, 30)); + assert_eq!(lay_out(&kept, &town, 0, 0).layout.footprint, (50, 30)); + kept.footprint = Some((4, 4)); + assert_eq!( + lay_out(&kept, &town, 0, 0).layout.footprint, + (40, 40), + "a footprint too small for the grid is sized from the count" + ); + assert_eq!(room_count(&Town::default()), 1); + assert_eq!( + room_count(&Town { + streets: 500, + square: true + }), + 101 + ); + } + + #[test] + fn a_frontage_side_is_one_of_the_open_sides_and_the_same_on_every_read() { + for building in 1..60 { + let side = frontage_side(3, building, &["east", "south"]); + assert!(["east", "south"].contains(&side)); + assert_eq!(side, frontage_side(3, building, &["east", "south"])); + assert!(WALLS.contains(&frontage_side(3, building, &[]))); + } + } + + #[test] + fn the_words_a_writer_reads_for_a_street_and_a_lot() { + let bounds = Box { + x: 0, + y: 0, + z: 0, + width: 22, + depth: 19, + }; + assert_eq!( + street_teaser("street", "Thornwick", &bounds), + "A street in Thornwick, 22 by 19 paces." + ); + assert_eq!(lot_teaser("inn", "Thornwick"), "An inn in Thornwick."); + assert_eq!(lot_name("Thornwick", "house", 2), "Thornwick house 2"); + } +} diff --git a/src/turn.rs b/src/turn.rs index ddd3f51..9c30e99 100644 --- a/src/turn.rs +++ b/src/turn.rs @@ -32,10 +32,12 @@ use serde_json::Value; pub mod chooser; mod divide; +mod doorway; mod notice; mod search; mod snap; mod told; +pub mod town; pub use told::{Fixed, Turn, Turned}; /// `Character::ABILITIES`, in order: a check's sequence is its place here. @@ -807,7 +809,9 @@ impl<'s> Mechanics<'s> { } /// `Location::Interior.way_in`: a laid-out place is walked into at its - /// entry room, and anything else at itself. + /// entry room, its first room with a box, and anything else at itself. + /// A town's buildings are places inside it with no box of their own, + /// and never its way in. fn way_in(&self, location: i64) -> i64 { let Some(place) = self.records.find("locations", location) else { return location; @@ -819,7 +823,7 @@ impl<'s> Mechanics<'s> { } self.records .first("locations", |room| { - int(room, "parent_location_id") == Some(location) + int(room, "parent_location_id") == Some(location) && plan::box_of(room).is_some() }) .map_or(location, id) } diff --git a/src/turn/doorway.rs b/src/turn/doorway.rs new file mode 100644 index 0000000..efef64b --- /dev/null +++ b/src/turn/doorway.rs @@ -0,0 +1,260 @@ +//! Doorways written and moved on the database and the records together, +//! with or without a game being played: a building's ways in moved onto +//! its doorstep rooms as it is laid out (`told::realize`), and a town's ways +//! in and anchors moved onto its streets (`town`), whether that happens on +//! the turn somebody first walks in or as the world is loaded. + +use crate::arrival::travel_minutes; +use crate::engine::Error; +use crate::model::Failure; +use crate::records::{id, int, Records, Row}; +use crate::store::Store; +use serde_json::Value; + +/// `LocationConnection::DISTANCES`' words. +pub(crate) const DISTANCES: [&str; 5] = [ + "adjacent", + "a short walk", + "across the district", + "a long journey", + "days away", +]; + +/// The database and the records it was read into, written together: what a +/// turn's own `insert` and `update` do, on whatever holds both. +pub(crate) struct Rows<'a> { + pub(crate) store: &'a Store, + pub(crate) records: &'a mut Records, +} + +impl Rows<'_> { + pub(crate) fn insert(&mut self, table: &str, values: Vec<(&str, Value)>) -> Result { + let row = self.store.insert(table, &values)?; + self.records.push(table, row.clone()); + Ok(row) + } + + pub(crate) fn update( + &mut self, + table: &str, + id: i64, + values: Vec<(&str, Value)>, + ) -> Result<(), Error> { + let written = self.store.update(table, id, &values)?; + for (column, value) in written { + self.records.set(table, id, &column, value); + } + Ok(()) + } + + pub(crate) fn delete(&mut self, table: &str, id: i64) -> Result<(), Error> { + self.store.delete(table, id)?; + self.records.remove(table, id); + Ok(()) + } + + /// How many doorways lead out of `location`. + pub(crate) fn exits_from(&self, location: i64) -> usize { + self.records + .select("location_connections", |edge| { + int(edge, "location_id") == Some(location) + }) + .len() + } +} + +/// `#connect!` with the columns a moved doorway carries (`carried`): one +/// directed doorway, refused whole when its labels are not words the engine +/// has (`UnusableExitLabel`); the doorway written, or none when it was +/// already there. +pub(crate) fn connect_carrying( + rows: &mut Rows, + from: i64, + to: i64, + distance: &str, + method: &str, + carried: Vec<(&'static str, Value)>, +) -> Result, Error> { + let exists = rows + .records + .first("location_connections", |edge| { + int(edge, "location_id") == Some(from) && int(edge, "connected_location_id") == Some(to) + }) + .is_some(); + if exists { + return Ok(None); + } + if !DISTANCES.contains(&distance) || travel_minutes(distance, method).is_none() { + return Err(Error::Model(Failure::Rejected(format!( + "an exit labelled {distance:?} by {method:?} is not one the engine can walk" + )))); + } + let mut values = vec![ + ("location_id", Value::from(from)), + ("connected_location_id", Value::from(to)), + ("distance", Value::from(distance)), + ("travel_method", Value::from(method)), + ]; + let time = super::travel_time(&values); + values.push(("time_to_travel", time)); + values.extend(carried); + Ok(Some(id(&rows.insert("location_connections", values)?))) +} + +/// Every place a doorway of `location` leads to or comes from, once each, +/// in the order its rows were written, with the first row's distance and +/// travel method. +pub(crate) fn ways_of(records: &Records, location: i64) -> Vec<(i64, String, String)> { + let mut ways: Vec<(i64, String, String)> = Vec::new(); + for edge in records.select("location_connections", |edge| { + int(edge, "location_id") == Some(location) + || int(edge, "connected_location_id") == Some(location) + }) { + let far = if int(edge, "location_id") == Some(location) { + int(edge, "connected_location_id") + } else { + int(edge, "location_id") + }; + let Some(far) = far else { continue }; + if !ways.iter().any(|(known, _, _)| *known == far) { + ways.push(( + far, + crate::records::string(edge, "distance").to_string(), + crate::records::string(edge, "travel_method").to_string(), + )); + } + } + ways +} + +/// Moves the doorway between `location` and `neighbour`, both ways, onto +/// the room `onto` picks once the old rows are gone, keeping what each side +/// carried: its barrier and key, its hazard, and every game's passage +/// opened through it and toll paid crossing it. With no room picked, the +/// doorway is dropped. +pub(crate) fn move_doorway( + rows: &mut Rows, + location: i64, + neighbour: i64, + (distance, method): (&str, &str), + onto: impl FnOnce(&Rows) -> Option, +) -> Result<(), Error> { + let sides = [(location, neighbour), (neighbour, location)] + .map(|(from, to)| doorway_side(rows.records, from, to, (to, from))); + for toll in sides.iter().flat_map(|side| &side.tolls) { + rows.update( + "playthrough_tolls", + *toll, + vec![("location_connection_id", Value::Null)], + )?; + } + let doomed: Vec = rows + .records + .select("location_connections", |edge| { + let (from, to) = (int(edge, "location_id"), int(edge, "connected_location_id")); + (from == Some(location) && to == Some(neighbour)) + || (from == Some(neighbour) && to == Some(location)) + }) + .iter() + .map(|edge| id(edge)) + .collect(); + for edge in doomed { + for passage in rows + .records + .select("playthrough_passages", |passage| { + int(passage, "location_connection_id") == Some(edge) + }) + .into_iter() + .map(id) + .collect::>() + { + rows.records.remove("playthrough_passages", passage); + } + rows.delete("location_connections", edge)?; + } + let Some(room) = onto(rows) else { + return Ok(()); + }; + let [outward, inward] = sides; + for ((from, to), side) in [((room, neighbour), outward), ((neighbour, room), inward)] { + let Some(written) = connect_carrying(rows, from, to, distance, method, side.values)? else { + continue; + }; + for mut opening in side.passages { + opening.push(("location_connection_id", Value::from(written))); + rows.insert("playthrough_passages", opening)?; + } + for toll in side.tolls { + rows.update( + "playthrough_tolls", + toll, + vec![("location_connection_id", Value::from(written))], + )?; + } + } + Ok(()) +} + +/// One side of a doorway about to be moved, `from` to `to`: its barrier, +/// its key, its hazard, and the passages and tolls of every game that went +/// through it. A side that was never written is made from the way back +/// (`back`), with no hazard and nothing gone through it. +fn doorway_side(records: &Records, from: i64, to: i64, back: (i64, i64)) -> Side { + let row = |(from, to): (i64, i64)| { + records + .first("location_connections", |edge| { + int(edge, "location_id") == Some(from) + && int(edge, "connected_location_id") == Some(to) + }) + .cloned() + }; + let own = row((from, to)); + let Some(source) = own.clone().or_else(|| row(back)) else { + return Side::default(); + }; + let mut columns = vec!["barrier", "key_template_id"]; + if own.is_some() { + columns.extend(["hazard", "hazard_die"]); + } + let values = columns + .into_iter() + .map(|column| (column, source.get(column).cloned().unwrap_or(Value::Null))) + .collect(); + let Some(own) = own else { + return Side { + values, + ..Side::default() + }; + }; + let through = |table: &str| { + records.select(table, |row| { + int(row, "location_connection_id") == Some(id(&own)) + }) + }; + Side { + values, + passages: through("playthrough_passages") + .into_iter() + .map(|passage| { + super::PASSAGE_COLUMNS + .iter() + .map(|column| { + ( + *column, + passage.get(*column).cloned().unwrap_or(Value::Null), + ) + }) + .collect() + }) + .collect(), + tolls: through("playthrough_tolls").into_iter().map(id).collect(), + } +} + +/// One side of a doorway as it is moved onto a room. +#[derive(Default)] +struct Side { + values: Vec<(&'static str, Value)>, + passages: Vec>, + tolls: Vec, +} diff --git a/src/turn/told/realize.rs b/src/turn/told/realize.rs index 531f752..010c7d3 100644 --- a/src/turn/told/realize.rs +++ b/src/turn/told/realize.rs @@ -15,6 +15,7 @@ //! a new one, but never a new door into a room already written. A building //! is laid out into rooms as it is written, and walked into at its entry. +use super::super::doorway::{self, Rows}; use super::{model, Turn}; use crate::cast; use crate::danger; @@ -56,15 +57,6 @@ const ROOM_NAME_LIMIT: usize = 60; /// `Location::Population::BANDS`' words. const POPULATION_WORDS: [&str; 3] = ["nobody", "a person or two", "a crowd"]; -/// `LocationConnection::DISTANCES` and `TRAVEL_METHODS`' words. -const DISTANCES: [&str; 5] = [ - "adjacent", - "a short walk", - "across the district", - "a long journey", - "days away", -]; - /// `Character::Registry::PERSON_LIMITS`, in the order the sheet is read. const PERSON_LIMITS: [(&str, usize); 12] = [ ("fullname", 60), @@ -345,6 +337,10 @@ impl Turn<'_, '_> { /// Writes a room out in full, if nobody has, and hands back the agent /// that paid for it, for the turn's scene to claim. pub(super) fn realize(&mut self, location: i64) -> Result, Error> { + if crate::town::is_town(&self.m.records, location) { + self.lay_out_town(location)?; + return Ok(None); + } let row = self.location(location)?; let pending = !checkpoint(&row).is_empty(); if text(&row, "detail_level") == Some("realized") && !pending { @@ -365,6 +361,32 @@ impl Turn<'_, '_> { Ok(Some(agent)) } + /// A town is never written: nothing describes it but its streets. The + /// first time anybody walks into one the world's loader left unlaid, + /// it is laid out here with no model, exactly as the loader would have + /// (`turn::town`), and walked into at its first street. + fn lay_out_town(&mut self, location: i64) -> Result<(), Error> { + self.m.store.savepoint()?; + let laid = super::super::town::lay_out(&mut self.rows(), location); + let laid = match laid { + Ok(laid) => { + self.m.store.release()?; + laid + } + Err(error) => { + self.m.store.rollback_to(); + return Err(error); + } + }; + for room in laid + .iter() + .flat_map(|town| town.streets.iter().chain(&town.lots)) + { + self.bind(Bound::Place, *room)?; + } + Ok(()) + } + /// A conversation picked up from a checkpoint replays the room's written /// detail before its exits are asked for, whether or not the chat that /// asked for it is still there. @@ -1146,6 +1168,14 @@ impl Turn<'_, '_> { .map(|_| ()) } + /// The database and the records, to write both together. + fn rows(&mut self) -> Rows<'_> { + Rows { + store: self.m.store, + records: &mut self.m.records, + } + } + /// `#connect!` with the columns a moved doorway carries (`carried`); /// the doorway written, or none when it was already there. fn connect_carrying( @@ -1156,34 +1186,7 @@ impl Turn<'_, '_> { method: &str, carried: Vec<(&'static str, Value)>, ) -> Result, Error> { - let exists = self - .m - .records - .first("location_connections", |edge| { - int(edge, "location_id") == Some(from) - && int(edge, "connected_location_id") == Some(to) - }) - .is_some(); - if exists { - return Ok(None); - } - if !DISTANCES.contains(&distance) - || crate::arrival::travel_minutes(distance, method).is_none() - { - return Err(model(Failure::Rejected(format!( - "an exit labelled {distance:?} by {method:?} is not one the engine can walk" - )))); - } - let mut values = vec![ - ("location_id", Value::from(from)), - ("connected_location_id", Value::from(to)), - ("distance", Value::from(distance)), - ("travel_method", Value::from(method)), - ]; - let time = super::super::travel_time(&values); - values.push(("time_to_travel", time)); - values.extend(carried); - Ok(Some(id(&self.m.insert("location_connections", values)?))) + doorway::connect_carrying(&mut self.rows(), from, to, distance, method, carried) } /// `#connect_exit!`. @@ -1533,62 +1536,7 @@ impl Turn<'_, '_> { if doorstep.is_empty() { return Ok(()); } - let mut ways: Vec<(i64, String, String)> = Vec::new(); - for edge in self.m.records.select("location_connections", |edge| { - int(edge, "location_id") == Some(location) - || int(edge, "connected_location_id") == Some(location) - }) { - let far = if int(edge, "location_id") == Some(location) { - int(edge, "connected_location_id") - } else { - int(edge, "location_id") - }; - let Some(far) = far else { continue }; - if !ways.iter().any(|(known, _, _)| *known == far) { - ways.push(( - far, - string(edge, "distance").to_string(), - string(edge, "travel_method").to_string(), - )); - } - } - for (neighbour, distance, method) in ways { - let sides = [(location, neighbour), (neighbour, location)] - .map(|(from, to)| self.doorway_side(from, to, (to, from))); - for toll in sides.iter().flat_map(|side| &side.tolls) { - self.m.update( - "playthrough_tolls", - *toll, - vec![("location_connection_id", Value::Null)], - )?; - } - let doomed: Vec = self - .m - .records - .select("location_connections", |edge| { - let (from, to) = (int(edge, "location_id"), int(edge, "connected_location_id")); - (from == Some(location) && to == Some(neighbour)) - || (from == Some(neighbour) && to == Some(location)) - }) - .iter() - .map(|edge| id(edge)) - .collect(); - for edge in doomed { - for passage in self - .m - .records - .select("playthrough_passages", |passage| { - int(passage, "location_connection_id") == Some(edge) - }) - .into_iter() - .map(id) - .collect::>() - { - self.m.records.remove("playthrough_passages", passage); - } - self.m.store.delete("location_connections", edge)?; - self.m.records.remove("location_connections", edge); - } + for (neighbour, distance, method) in doorway::ways_of(&self.m.records, location) { let down = way_down .filter(|(_, down)| { neighbour == *down @@ -1600,105 +1548,27 @@ impl Turn<'_, '_> { == Some(*down) }) .map(|(room, _)| room); - let room = match down { - Some(room) => Some(room).filter(|room| self.exits_from(*room) < MAX_EXITS), - None => doorstep - .iter() - .copied() - .find(|room| self.exits_from(*room) < MAX_EXITS), - }; - let Some(room) = room else { - continue; - }; - let [outward, inward] = sides; - for ((from, to), side) in [((room, neighbour), outward), ((neighbour, room), inward)] { - let Some(written) = - self.connect_carrying(from, to, &distance, &method, side.values)? - else { - continue; - }; - for mut opening in side.passages { - opening.push(("location_connection_id", Value::from(written))); - self.m.insert("playthrough_passages", opening)?; - } - for toll in side.tolls { - self.m.update( - "playthrough_tolls", - toll, - vec![("location_connection_id", Value::from(written))], - )?; - } - } - } - Ok(()) - } - - /// One side of a doorway about to be moved, `from` to `to`: its barrier, - /// its key, its hazard, and the passages and tolls of every game that - /// went through it. A side that was never written is made from the way - /// back (`back`), with no hazard and nothing gone through it. - fn doorway_side(&self, from: i64, to: i64, back: (i64, i64)) -> Side { - let row = |(from, to): (i64, i64)| { - self.m - .records - .first("location_connections", |edge| { - int(edge, "location_id") == Some(from) - && int(edge, "connected_location_id") == Some(to) - }) - .cloned() - }; - let own = row((from, to)); - let Some(source) = own.clone().or_else(|| row(back)) else { - return Side::default(); - }; - let mut columns = vec!["barrier", "key_template_id"]; - if own.is_some() { - columns.extend(["hazard", "hazard_die"]); - } - let values = columns - .into_iter() - .map(|column| (column, source.get(column).cloned().unwrap_or(Value::Null))) - .collect(); - let Some(own) = own else { - return Side { - values, - ..Side::default() - }; - }; - let through = |table: &str| { - self.m.records.select(table, |row| { - int(row, "location_connection_id") == Some(id(&own)) - }) - }; - Side { - values, - passages: through("playthrough_passages") - .into_iter() - .map(|passage| { - super::super::PASSAGE_COLUMNS + let doorstep = &doorstep; + doorway::move_doorway( + &mut self.rows(), + location, + neighbour, + (&distance, &method), + |rows| match down { + Some(room) => { + Some(room).filter(|room| rows.exits_from(*room) < MAX_EXITS as usize) + } + None => doorstep .iter() - .map(|column| { - ( - *column, - passage.get(*column).cloned().unwrap_or(Value::Null), - ) - }) - .collect() - }) - .collect(), - tolls: through("playthrough_tolls").into_iter().map(id).collect(), + .copied() + .find(|room| rows.exits_from(*room) < MAX_EXITS as usize), + }, + )?; } + Ok(()) } } -/// One side of a doorway as `#open_the_way_in!` moves it onto a room. -#[derive(Default)] -struct Side { - values: Vec<(&'static str, Value)>, - passages: Vec>, - tolls: Vec, -} - /// A value as Ruby's `to_s` writes it: a string itself, null empty. /// The healing things a floor's row says are left about it /// (`floors.healing_count`, `healing_name`, `healing_description`). diff --git a/src/turn/town.rs b/src/turn/town.rs new file mode 100644 index 0000000..faf29a2 --- /dev/null +++ b/src/turn/town.rs @@ -0,0 +1,265 @@ +//! A town laid out and written, with no model: its streets and square as +//! rooms of it, the doorways between them, its ways in moved onto its +//! first rooms, each building it anchors moved onto the street it was +//! drawn, and a lot on every frontage left (`crate::town`). It is written +//! once, for the world: as the world is loaded (`Engine::lay_out_towns`), +//! or failing that on the turn somebody first walks into the town +//! (`told::realize`). Either way the same town is drawn. + +use super::doorway; +pub(crate) use super::doorway::Rows; +use crate::engine::Error; +use crate::interior::{Place, WALKING}; +use crate::plan::box_of; +use crate::records::{flag, id, int, string, text, Records, Row}; +use crate::store::TOWNS; +use crate::text::natural_key; +use crate::town; +use serde_json::Value; + +/// One town as it was laid out, by row id. +#[derive(Clone, Debug, PartialEq, Eq)] +pub struct LaidTown { + pub location: i64, + pub name: String, + /// Its streets and square, first to last; the first is where its ways + /// in arrive. + pub streets: Vec, + /// Each way into the town, and the street it now arrives on; none when + /// no street had a doorway for it, and the doorway was left where it was. + pub ways_in: Vec<(i64, Option)>, + /// Each building the town anchors, and the street it now fronts; none + /// when no street had a doorway for it, and the building was left where + /// it was. + pub anchors: Vec<(i64, Option)>, + /// The lots dealt onto the frontages left. + pub lots: Vec, +} + +/// The town row of a place, if it is a town. +pub(crate) fn town_of(records: &Records, location: i64) -> Option<&Row> { + records.first(TOWNS, |town| int(town, "location_id") == Some(location)) +} + +/// Whether a town's streets are written: any room of it with a box. +pub(crate) fn laid_out(records: &Records, location: i64) -> bool { + records + .first("locations", |room| { + int(room, "parent_location_id") == Some(location) && box_of(room).is_some() + }) + .is_some() +} + +/// Lays out the town at `location` and writes it, or does nothing for a +/// place that is not a town or a town already laid out. +pub(crate) fn lay_out(rows: &mut Rows, location: i64) -> Result, Error> { + let Some(town_row) = town_of(rows.records, location).cloned() else { + return Ok(None); + }; + if laid_out(rows.records, location) { + return Ok(None); + } + let row = rows + .records + .find("locations", location) + .cloned() + .ok_or_else(|| Error::Database(format!("locations {location} is not there")))?; + let story = int(&row, "story_id").unwrap_or_default(); + let name = string(&row, "name").to_string(); + let mut anchors: Vec<(i64, i64, String, String)> = Vec::new(); + let mut ways_in: Vec<(i64, String, String)> = Vec::new(); + for (neighbour, distance, method) in doorway::ways_of(rows.records, location) { + match town::building_of(rows.records, neighbour) { + Some(building) => anchors.push((building, neighbour, distance, method)), + None => ways_in.push((neighbour, distance, method)), + } + } + let mut children: Vec = rows + .records + .select("locations", |child| { + int(child, "parent_location_id") == Some(location) + }) + .into_iter() + .map(id) + .filter(|child| town::building_of(rows.records, *child) == Some(*child)) + .filter(|child| !anchors.iter().any(|(building, ..)| building == child)) + .collect(); + children.sort_unstable(); + for child in children { + anchors.push((child, child, String::new(), String::new())); + } + anchors.sort_by_key(|(building, ..)| *building); + ways_in.sort_by_key(|(neighbour, ..)| *neighbour); + let place = Place { + story_id: story, + id: location, + name: &name, + clock: 0, + existing_locations: 0, + footprint: int(&row, "width").zip(int(&row, "depth")), + kind: None, + density: text(&row, "density"), + }; + let plan = town::Town { + streets: int(&town_row, "streets").unwrap_or_default(), + square: flag(&town_row, "square"), + }; + let laid = town::lay_out(&place, &plan, ways_in.len(), anchors.len()); + rows.update( + "locations", + location, + vec![ + ("width", Value::from(laid.layout.footprint.0)), + ("depth", Value::from(laid.layout.footprint.1)), + ], + )?; + let mut streets = Vec::new(); + for room in &laid.layout.rooms { + let bounds = room.bounds; + let kind = room.kind.unwrap_or(town::STREET); + let values = vec![ + ("story_id", Value::from(story)), + ("name", Value::from(room.name.as_str())), + ( + "teaser", + Value::from(town::street_teaser(kind, &name, &bounds)), + ), + ("detail_level", Value::from("stub")), + ("danger", Value::from(room.danger)), + ("parent_location_id", Value::from(location)), + ("x", Value::from(bounds.x)), + ("y", Value::from(bounds.y)), + ("z", Value::from(bounds.z)), + ("width", Value::from(bounds.width)), + ("depth", Value::from(bounds.depth)), + ("kind", Value::from(kind)), + ( + "density", + room.density.as_deref().map_or(Value::Null, Value::from), + ), + ]; + streets.push(id(&rows.insert("locations", values)?)); + } + for edge in &laid.layout.edges { + doorway::connect_carrying( + rows, + streets[edge.from], + streets[edge.to], + edge.distance, + edge.travel_method, + Vec::new(), + )?; + } + let mut arrived = Vec::new(); + for ((neighbour, distance, method), landed) in ways_in.iter().zip(&laid.ways_in) { + let street = landed.map(|room| streets[room]); + if let Some(street) = street { + doorway::move_doorway(rows, location, *neighbour, (distance, method), |_| { + Some(street) + })?; + } + arrived.push((*neighbour, street)); + } + let mut fronted = Vec::new(); + for ((building, neighbour, distance, method), drawn) in anchors.iter().zip(&laid.frontages) { + let street = drawn.map(|room| streets[room]); + if let Some(street) = street { + if distance.is_empty() { + let entry = way_in(rows.records, *building); + for (from, to) in [(street, entry), (entry, street)] { + doorway::connect_carrying(rows, from, to, "adjacent", WALKING, Vec::new())?; + } + } else { + doorway::move_doorway(rows, location, *neighbour, (distance, method), |_| { + Some(street) + })?; + } + } + fronted.push((*building, street)); + } + let mut lots = Vec::new(); + let mut dealt: Vec<(&str, usize)> = Vec::new(); + for lot in &laid.lots { + let lot_name = loop { + let count = match dealt.iter_mut().find(|(kind, _)| *kind == lot.kind) { + Some((_, count)) => { + *count += 1; + *count + } + None => { + dealt.push((lot.kind, 1)); + 1 + } + }; + let candidate = town::lot_name(&name, lot.kind, count); + let key = natural_key(&candidate); + let taken = rows + .records + .first("locations", |other| { + int(other, "story_id") == Some(story) + && natural_key(string(other, "name")) == key + }) + .is_some(); + if !taken { + break candidate; + } + }; + let values = vec![ + ("story_id", Value::from(story)), + ("name", Value::from(lot_name)), + ("teaser", Value::from(town::lot_teaser(lot.kind, &name))), + ("detail_level", Value::from("stub")), + ("danger", Value::from(lot.danger)), + ("parent_location_id", Value::from(location)), + ("width", Value::from(lot.footprint.0)), + ("depth", Value::from(lot.footprint.1)), + ("kind", Value::from(lot.kind)), + ]; + let built = id(&rows.insert("locations", values)?); + let street = streets[lot.room]; + for (from, to) in [(street, built), (built, street)] { + doorway::connect_carrying(rows, from, to, "adjacent", WALKING, Vec::new())?; + } + lots.push(built); + } + Ok(Some(LaidTown { + location, + name, + streets, + ways_in: arrived, + anchors: fronted, + lots, + })) +} + +/// Every town of `story` with no streets yet, laid out and written, in id +/// order. +pub(crate) fn lay_out_all(rows: &mut Rows, story: i64) -> Result, Error> { + let mut towns: Vec = rows + .records + .table(TOWNS) + .iter() + .filter_map(|town| int(town, "location_id")) + .filter(|location| { + rows.records + .find("locations", *location) + .is_some_and(|row| int(row, "story_id") == Some(story)) + }) + .collect(); + towns.sort_unstable(); + let mut laid = Vec::new(); + for location in towns { + laid.extend(lay_out(rows, location)?); + } + Ok(laid) +} + +/// `Location::Interior.way_in` of a building: its first room once it is +/// laid out, and itself before. +fn way_in(records: &Records, building: i64) -> i64 { + records + .first("locations", |room| { + int(room, "parent_location_id") == Some(building) && box_of(room).is_some() + }) + .map_or(building, id) +} diff --git a/tests/town.rs b/tests/town.rs new file mode 100644 index 0000000..900aa06 --- /dev/null +++ b/tests/town.rs @@ -0,0 +1,328 @@ +//! A town laid out before a word of it is written: A Town of Three Streets +//! (Thornwick: three streets and a square; the North Road its way in; the +//! Shrine and the Inn joined to it by a doorway, the Smithy a building of +//! it with none) laid out as the world's loader would and on the turn +//! somebody first walks in, and the rows read back. + +use renderedstep_engine::engine::Engine; +use renderedstep_engine::parity::{self, open_world, DEFAULT_PLAYER, TITLE_SUFFIX}; +use renderedstep_engine::plan::Plan; +use renderedstep_engine::records::{id, int, string, text, Records}; +use rusqlite::Connection; +use serde_json::Value; +use std::path::Path; + +const THE_NORTH_ROAD: i64 = 1_000_000_001; +const THE_SHRINE: i64 = 1_000_000_002; +const THORNWICK: i64 = 1_000_000_003; +const THE_INN: i64 = 1_000_000_004; +const THE_SMITHY: i64 = 1_000_000_005; + +/// The walk that lays the town out on its first entry. +const SCRIPT: &str = "a-town-laid-out-before-it-is-written"; + +fn parity_dir() -> std::path::PathBuf { + Path::new(env!("CARGO_MANIFEST_DIR")).join("parity") +} + +fn world() -> String { + std::fs::read_to_string(parity_dir().join("worlds/a-town-of-three-streets.sql")) + .expect("a world fixture") +} + +fn opened() -> (Engine, i64) { + let engine = open_world(&world()).unwrap(); + let story = engine + .story_titled(&format!("A Town of Three Streets{TITLE_SUFFIX}")) + .unwrap(); + (engine, story) +} + +/// The world opened and its town laid out as the loader lays it out. +fn laid() -> (Engine, Records) { + let (mut engine, story) = opened(); + let towns = engine.lay_out_towns(story, false).unwrap(); + assert_eq!(towns.len(), 1); + let records = engine.store().load().unwrap(); + (engine, records) +} + +/// Every location row and every doorway row the town's layout decides, +/// less what writing a room changes (its name, words and checkpoint) and +/// the timestamps, as text, in id order. +fn layout_rows(conn: &Connection) -> Vec { + let mut found = Vec::new(); + for (table, columns) in [ + ( + "locations", + "id, teaser, danger, parent_location_id, x, y, z, width, depth, kind, density", + ), + ( + "location_connections", + "id, location_id, connected_location_id, distance, time_to_travel, travel_method, barrier, key_template_id, hazard", + ), + ] { + let mut statement = conn + .prepare(&format!("SELECT {columns} FROM {table} ORDER BY id")) + .unwrap(); + let count = statement.column_count(); + let lines = statement + .query_map([], |row| { + let cells: Vec = (0..count) + .map(|index| format!("{:?}", row.get::<_, rusqlite::types::Value>(index).unwrap())) + .collect(); + Ok(format!("{table} {}", cells.join(" | "))) + }) + .unwrap() + .map(Result::unwrap); + found.extend(lines); + } + found +} + +fn children(records: &Records, place: i64) -> Vec { + records + .select("locations", |row| { + int(row, "parent_location_id") == Some(place) + }) + .into_iter() + .map(id) + .collect() +} + +fn streets(records: &Records) -> Vec { + children(records, THORNWICK) + .into_iter() + .filter(|room| int(records.find("locations", *room).unwrap(), "x").is_some()) + .collect() +} + +fn doorways_from(records: &Records, location: i64) -> Vec { + records + .select("location_connections", |edge| { + int(edge, "location_id") == Some(location) + }) + .into_iter() + .filter_map(|edge| int(edge, "connected_location_id")) + .collect() +} + +fn doorways_into(records: &Records, location: i64) -> Vec { + records + .select("location_connections", |edge| { + int(edge, "connected_location_id") == Some(location) + }) + .into_iter() + .filter_map(|edge| int(edge, "location_id")) + .collect() +} + +/// Three streets and a square, the square first, each a room of the town +/// with a box inside its footprint; every one reachable from the square +/// over the town's own doorways; every one at four doorways out and four +/// in, every doorway both ways; and nothing left leading to the town place +/// itself. +#[test] +fn every_street_is_reachable_and_none_passes_four_doorways() { + let (_engine, records) = laid(); + let streets = streets(&records); + assert_eq!(streets.len(), 4); + let town = records.find("locations", THORNWICK).unwrap(); + let (width, depth) = (int(town, "width").unwrap(), int(town, "depth").unwrap()); + let kinds: Vec<&str> = streets + .iter() + .map(|room| text(records.find("locations", *room).unwrap(), "kind").unwrap()) + .collect(); + assert_eq!(kinds, ["square", "street", "street", "street"]); + for room in &streets { + let row = records.find("locations", *room).unwrap(); + assert_eq!(text(row, "detail_level"), Some("stub")); + assert_eq!(int(row, "z"), Some(0)); + assert!(int(row, "x").unwrap() + int(row, "width").unwrap() <= width); + assert!(int(row, "y").unwrap() + int(row, "depth").unwrap() <= depth); + assert_eq!(doorways_from(&records, *room).len(), 4, "room {room}"); + let mut out = doorways_from(&records, *room); + let mut back = doorways_into(&records, *room); + out.sort_unstable(); + back.sort_unstable(); + assert_eq!(out, back, "room {room}: every doorway both ways"); + } + let mut seen = vec![streets[0]]; + let mut next = 0; + while next < seen.len() { + let here = seen[next]; + next += 1; + for far in doorways_from(&records, here) { + if streets.contains(&far) && !seen.contains(&far) { + seen.push(far); + } + } + } + seen.sort_unstable(); + let mut every = streets.clone(); + every.sort_unstable(); + assert_eq!(seen, every); + assert!(doorways_from(&records, THORNWICK).is_empty()); + assert!(doorways_into(&records, THORNWICK).is_empty()); +} + +/// The way in arrives on the square; each building the file joined to the +/// town, and the one it made a building of the town, stands on one street +/// of it by one doorway each way, with its own kind and words; and every +/// other frontage is a lot: a building stub of the town, of a kind of the +/// table, with a footprint and one doorway to the street it fronts. +#[test] +fn the_anchors_stand_where_the_file_put_them_and_the_lots_fill_the_rest() { + let (_engine, records) = laid(); + let streets = streets(&records); + assert_eq!(doorways_from(&records, THE_NORTH_ROAD), [streets[0]]); + for (anchor, kind) in [ + (THE_SHRINE, "temple"), + (THE_INN, "inn"), + (THE_SMITHY, "smithy"), + ] { + let out = doorways_from(&records, anchor); + assert_eq!(out.len(), 1, "{anchor}"); + assert!( + streets.contains(&out[0]), + "{anchor} fronts a street of the town" + ); + assert_eq!(doorways_into(&records, anchor), out, "{anchor}"); + let row = records.find("locations", anchor).unwrap(); + assert_eq!(text(row, "kind"), Some(kind)); + assert_eq!(text(row, "detail_level"), Some("stub")); + } + let table: Vec<&str> = renderedstep_engine::data::location_town() + .lots + .iter() + .map(|(kind, _)| kind.as_str()) + .collect(); + let lots: Vec = children(&records, THORNWICK) + .into_iter() + .filter(|room| !streets.contains(room) && *room != THE_SMITHY) + .collect(); + assert!(!lots.is_empty()); + for lot in lots { + let row = records.find("locations", lot).unwrap(); + let kind = text(row, "kind").unwrap(); + assert!(table.contains(&kind), "{kind}"); + assert!(string(row, "name").starts_with(&format!("Thornwick {kind} "))); + assert_eq!( + string(row, "teaser"), + format!( + "{} {kind} in Thornwick.", + if kind.starts_with(['a', 'e', 'i', 'o', 'u']) { + "An" + } else { + "A" + } + ) + ); + assert!(int(row, "width").is_some() && int(row, "depth").is_some()); + assert!(int(row, "x").is_none()); + let out = doorways_from(&records, lot); + assert_eq!(out.len(), 1); + assert!(streets.contains(&out[0])); + } +} + +/// Laid out twice from the same world, the town is the same row for row; +/// laid out again, a laid-out town is left as it is; a dry run writes +/// nothing and says the same; and the town laid out on the turn somebody +/// first walks in is the one the loader lays out. +#[test] +fn the_same_seed_draws_the_same_town() { + let (mut once, story) = opened(); + let (mut twice, _) = opened(); + let before = layout_rows(once.store().connection()); + let dry = once.lay_out_towns(story, true).unwrap(); + assert_eq!( + layout_rows(once.store().connection()), + before, + "a dry run writes nothing" + ); + let laid = once.lay_out_towns(story, false).unwrap(); + assert_eq!(dry, laid); + assert_eq!(twice.lay_out_towns(story, false).unwrap(), laid); + let rows = layout_rows(once.store().connection()); + assert_eq!(rows, layout_rows(twice.store().connection())); + assert_ne!(rows, before); + assert!(once.lay_out_towns(story, false).unwrap().is_empty()); + assert_eq!(layout_rows(once.store().connection()), rows); + + let script = parity::load_script(&parity_dir().join(format!("scripts/{SCRIPT}.yml"))).unwrap(); + let mut walked = open_world(&world()).unwrap(); + let dump = parity::play_one(&mut walked, &script, 1, DEFAULT_PLAYER).unwrap(); + assert_eq!(dump["location"]["name"], "the well square"); + // The first entry also writes the square it stands on, which changes + // none of the columns the layout decides. + assert_eq!(layout_rows(walked.store().connection()), rows); +} + +/// No street of a laid-out town is asked for its ways out: walking into +/// each of the four writes it with one call, and the walk's recorded +/// requests hold no exits request at all. +#[test] +fn no_street_gets_an_exits_call() { + let records: Value = serde_json::from_str( + &std::fs::read_to_string(parity_dir().join(format!("records/{SCRIPT}.json"))).unwrap(), + ) + .unwrap(); + let steps = records["steps"].as_array().unwrap(); + for step in &steps[..4] { + let asked: Vec<&Value> = step["requests"] + .as_array() + .unwrap() + .iter() + .filter(|request| request["purpose"] == "location") + .collect(); + assert_eq!(asked.len(), 1, "{}", step["step"]); + assert!(!asked[0]["user"] + .as_str() + .unwrap() + .contains("Now list the ways out")); + } + for step in steps { + for request in step["requests"].as_array().unwrap() { + assert!( + !request["user"] + .as_str() + .unwrap_or_default() + .contains("Now list the ways out"), + "{}", + step["step"] + ); + } + } +} + +/// A street is told its size, its town, which way the other streets lie +/// and which side each building fronts it on, and never a wall, a door, a +/// stair or a storey; a room of a building in the same town is told the +/// indoor sentences as before. +#[test] +fn a_street_is_told_its_shape_out_of_doors() { + let (_engine, records) = laid(); + for room in streets(&records) { + let row = records.find("locations", room).unwrap(); + let said = Plan::of(&records, row).unwrap().to_prompt(); + for word in ["wall", "door", "stair", "storey"] { + assert!(!said.contains(word), "{said}"); + } + let kind = text(row, "kind").unwrap(); + assert!(said.starts_with(&format!("This {kind} is ")), "{said}"); + assert!(said.contains("It is part of Thornwick, which is 40 by 40 paces across.")); + assert!( + said.ends_with(&format!("Those are every way out of this {kind}.")), + "{said}" + ); + } + let square = records.find("locations", streets(&records)[0]).unwrap(); + assert_eq!( + Plan::of(&records, square).unwrap().to_prompt(), + "This square is 22 by 22 paces -- about 33 by 33 metres. It is part of Thornwick, \ + which is 40 by 40 paces across. Its ways out: The Shrine, which fronts it on the north \ + side; to the east, Thornwick room 2; to the south, Thornwick room 4; a way out to The \ + North Road, which is outside Thornwick. Those are every way out of this square." + ); +} From 7bd052211aaead8e96dc53875d4ace8854e29fe4 Mon Sep 17 00:00:00 2001 From: Caleb LeNoir Date: Fri, 4 Dec 2026 08:49:40 -0500 Subject: [PATCH 2/5] Tell a street's writer where it is and ask its name out of doors For a street or square of a town only, the room writer's plan block reads "## Where This Street Is" (or Square) and says "this street" where it said "this room", and the detail schema's name description asks what this street is called, with "the long street" for its example, never the town's name, and never a name already given to a place. Every other room's requests are byte-identical. --- README.md | 2 +- .../a-town-laid-out-before-it-is-written.json | 16 ++--- src/plan.rs | 6 ++ src/realization.rs | 23 +++++-- src/schemas.rs | 20 +++++- tests/town.rs | 62 +++++++++++++++++++ 6 files changed, 115 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f6285ac..f62b1a4 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ rule rewrites them here, and the game vendors them at the commit it pins. | `schemas` | the `RubyLLM::Schema` classes a request carries | each schema's `to_json_schema` output, key for key | | `identity` | `Eval::RequestIdentity` | the canonical form of a set of requests and its 16-hex digest | | `arrival` | `Scene::Generator`, `Scene::ArrivalContext` | the arrival writer's request for walking into a place | -| `realization` | `Location::Generator`, `Character::Desires.instructions` | the room writer's detail and exits requests | +| `realization` | `Location::Generator`, `Character::Desires.instructions` | the room writer's detail and exits requests; for a street or square of a town (`town`), its plan block, its naming line and its detail schema's `name` description are said of that street or square instead of a room | | `dialogue` | `InteractionAgent`, `Character#interaction_instructions`, `Playthrough::NpcAction` | the character pass and narrator pass of one exchange | | `clock` | Rails' datetime columns | a stored time as whole seconds since the epoch, and back | | `store` | the schema `db/schema.rb` describes | the database on a connection of its own: the schema version and the shape of every table it touches checked, every table the loop reads loaded as records, a row inserted or updated | diff --git a/parity/records/a-town-laid-out-before-it-is-written.json b/parity/records/a-town-laid-out-before-it-is-written.json index 8aef563..4df4d6b 100644 --- a/parity/records/a-town-laid-out-before-it-is-written.json +++ b/parity/records/a-town-laid-out-before-it-is-written.json @@ -7,7 +7,7 @@ { "purpose": "location", "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", - "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 1\nteaser: A square in Thornwick, 22 by 22 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis square is 22 by 22 paces -- about 33 by 33 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: The Shrine, which fronts it on the north side; to the east, Thornwick room 2; to the south, Thornwick room 4; a way out to The North Road, which is outside Thornwick. Those are every way out of this square.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: bench, lamp post, cart.\nIn the cart: tarpaulin.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS SQUARE. It is one square of Thornwick. The player reads the square and\n the town together -- \"the of Thornwick\" -- so name the SQUARE only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this square\n is and for what you have just described along it. Never a comma in it\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 1\nteaser: A square in Thornwick, 22 by 22 paces.\n## Where This Square Is\nThe game's own records of this square, already decided and not yours to\nchange. Write the square around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis square is 22 by 22 paces -- about 33 by 33 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: The Shrine, which fronts it on the north side; to the east, Thornwick room 2; to the south, Thornwick room 4; a way out to The North Road, which is outside Thornwick. Those are every way out of this square.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: bench, lamp post, cart.\nIn the cart: tarpaulin.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS SQUARE. It is one square of Thornwick. The player reads the square and\n the town together -- \"the of Thornwick\" -- so name the SQUARE only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this square\n is and for what you have just described along it. Never a comma in it\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", "schema": { "name": "Location::DetailSchema", "description": null, @@ -26,7 +26,7 @@ }, "name": { "type": "string", - "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "description": "What this square is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the long street\". Never the name of the town it is in, never a name this story has already given to a place, a person or a thing, and never a comma.", "maxLength": 60 }, "items": { @@ -1098,7 +1098,7 @@ { "purpose": "location", "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", - "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 2\nteaser: A street in Thornwick, 18 by 22 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 18 by 22 paces -- about 27 by 33 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: The Smithy, which fronts it on the north side; Thornwick shop 1, which fronts it on the east side; to the south, Thornwick room 3; to the west, the well square. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter, doorstep, notice board, bench.\nIn the gutter: button.\nOn the notice board: timetable.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 2\nteaser: A street in Thornwick, 18 by 22 paces.\n## Where This Street Is\nThe game's own records of this street, already decided and not yours to\nchange. Write the street around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 18 by 22 paces -- about 27 by 33 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: The Smithy, which fronts it on the north side; Thornwick shop 1, which fronts it on the east side; to the south, Thornwick room 3; to the west, the well square. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter, doorstep, notice board, bench.\nIn the gutter: button.\nOn the notice board: timetable.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", "schema": { "name": "Location::DetailSchema", "description": null, @@ -1117,7 +1117,7 @@ }, "name": { "type": "string", - "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "description": "What this street is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the long street\". Never the name of the town it is in, never a name this story has already given to a place, a person or a thing, and never a comma.", "maxLength": 60 }, "items": { @@ -2644,7 +2644,7 @@ { "purpose": "location", "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", - "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 3\nteaser: A street in Thornwick, 18 by 18 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 18 by 18 paces -- about 27 by 27 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: to the north, the forge lane; Thornwick house 1, which fronts it on the east side; Thornwick smithy 1, which fronts it on the south side; to the west, Thornwick room 4. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square; the forge lane\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 3\nteaser: A street in Thornwick, 18 by 18 paces.\n## Where This Street Is\nThe game's own records of this street, already decided and not yours to\nchange. Write the street around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 18 by 18 paces -- about 27 by 27 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: to the north, the forge lane; Thornwick house 1, which fronts it on the east side; Thornwick smithy 1, which fronts it on the south side; to the west, Thornwick room 4. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square; the forge lane\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", "schema": { "name": "Location::DetailSchema", "description": null, @@ -2663,7 +2663,7 @@ }, "name": { "type": "string", - "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "description": "What this street is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the long street\". Never the name of the town it is in, never a name this story has already given to a place, a person or a thing, and never a comma.", "maxLength": 60 }, "items": { @@ -4335,7 +4335,7 @@ { "purpose": "location", "system": "You build the rooms of a text adventure one at a time. You write places a\nplayer can stand in and walk out of: concrete, specific, and consistent\nwith the world they belong to. Every exit you name is somewhere the player\ncould actually go.\n\nDO NOT INCLUDE EMOJIS IN YOUR RESPONSE.\n", - "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 4\nteaser: A street in Thornwick, 22 by 18 paces.\n## Where This Room Is\nThe game's own records of this room, already decided and not yours to\nchange. Write the room around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 22 by 18 paces -- about 33 by 27 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: to the north, the well square; to the east, the tanners' row; The Inn, which fronts it on the south side; Thornwick smithy 2, which fronts it on the west side. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter, bench.\nIn the gutter: bent nail, button.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square; the forge lane; the tanners' row\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", + "user": "## Universe Details\nphysics: Ordinary physics.\ntechnology: Lanterns, iron keys and hand tools.\ngeographies: A small town of three streets around a square.\nraces: Townsfolk\ncivilizations: Townsfolk who keep a shrine, an inn and a forge.\n\n\n## Story Details\ntitle: A Town of Three Streets (engine sweep)\ngenre: town adventure\npreface: Thornwick is a small town of three streets around a square.\nsummary: Wren walks the streets of Thornwick.\n\n\n## The Place\nname: Thornwick room 4\nteaser: A street in Thornwick, 22 by 18 paces.\n## Where This Street Is\nThe game's own records of this street, already decided and not yours to\nchange. Write the street around them: do not contradict a measurement, and\ndo not give it a way out this list does not have.\nThis street is 22 by 18 paces -- about 33 by 27 metres. It is part of Thornwick, which is 40 by 40 paces across. Its ways out: to the north, the well square; to the east, the tanners' row; The Inn, which fronts it on the south side; Thornwick smithy 2, which fronts it on the west side. Those are every way out of this street.\n## Already Here, Decided By The Game\nThe game's own records of what is in this room, already decided and not yours\nto change, and it will tell the player so. Write the room around them, and do\nnot add another piece of furniture or fixed thing a player could reach for.\nFixed in place: lamp post, gutter, bench.\nIn the gutter: bent nail, button.\nDo not list any of them again as a thing lying here.\n## Instructions\nWrite this place out in full.\n- The description is what the player reads on arrival. Address them as \"you\"\n- Describe what is here now, not the history -- the history is the lore\n- Stay consistent with the universe and with the teaser above\n- Respect the stated length of each field\n- NAME THIS STREET. It is one street of Thornwick. The player reads the street and\n the town together -- \"the of Thornwick\" -- so name the STREET only,\n and never put the town's own name into it. A short noun phrase carrying the\n article English wants on it, 2 to 4 words: \"the tanners' row\", \"the long\n street\", \"the well square\". Name it for what the plan above says this street\n is and for what you have just described along it. Never a comma in it. Places in Thornwick that are already named, so do not reuse one: the well square; the forge lane; the tanners' row\n\n## What Is Lying Here\nList AT MOST 3 portable things a player could pick up and carry away, besides the ones Already Here above: those are written already, and a thing named again is not a new one.\n- Nothing is the right answer for most rooms. An empty list is a complete answer\n- Only loose, portable things. Not the door, not the floor, not the machinery\n bolted to it -- something a person could put in a pocket or under an arm\n- Each one must be consistent with the description you just wrote, and worth\n the player noticing\n- Pick its use_kind from the supplied physical profiles. Ordinary is the\n default. Food and drink can be consumed without healing; healing is only\n a restorative dose this world permits. Firestarters burn combustible\n objects, levers pry jammed passages, lockpicks try locks, and a key only\n opens a passage explicitly matched to it. Mark combustible only when an\n ordinary firestarter can destroy the object. The engine owns the effects\n and their amounts; its description cannot grant extra powers\n- If a thing has WRITING on it -- a note, a letter, a handbill, a label, a\n docket, a page, a sign -- mark it readable and WRITE OUT WHAT IS WRITTEN\n ON IT, exactly as it appears on the thing. The words themselves, not a\n description of them, and short enough to finish -- a few words, a line,\n or a few short lines. The game keeps those words and a player reading it\n twice reads the same ones\n- Never name it after a person or after a place. Already spoken for in this story, so do not reuse: Wren\n\n## Who Is Here\nWrite NOBODY into this place. There is nobody here, and the description\nshould read like somewhere nobody is standing.\n", "schema": { "name": "Location::DetailSchema", "description": null, @@ -4354,7 +4354,7 @@ }, "name": { "type": "string", - "description": "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.", + "description": "What this street is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the long street\". Never the name of the town it is in, never a name this story has already given to a place, a person or a thing, and never a comma.", "maxLength": 60 }, "items": { diff --git a/src/plan.rs b/src/plan.rs index 370a24d..ed9a4c5 100644 --- a/src/plan.rs +++ b/src/plan.rs @@ -124,6 +124,12 @@ impl<'a> Plan<'a> { }) } + /// The sort of a street or square of a town (`town`), whose plan is + /// said out of doors; none for any other room. + pub fn outdoors(&self) -> Option<&'a str> { + self.outdoors + } + pub fn sentences(&self) -> Vec { if let Some(kind) = self.outdoors { return vec![ diff --git a/src/realization.rs b/src/realization.rs index df895db..ab59726 100644 --- a/src/realization.rs +++ b/src/realization.rs @@ -269,6 +269,18 @@ impl<'a> Realization<'a> { let Some(plan) = Plan::of(self.records, self.location) else { return String::new(); }; + if let Some(kind) = plan.outdoors() { + return format!( + "## Where This {} Is\n\ + The game's own records of this {kind}, already decided and not yours to\n\ + change. Write the {kind} around them: do not contradict a measurement, and\n\ + do not give it a way out this list does not have.\n{}", + crate::text::upcase_first(kind), + plan.to_prompt() + ) + .trim_end() + .to_string(); + } format!( "## Where This Room Is\n\ The game's own records of this room, already decided and not yours to\n\ @@ -805,10 +817,13 @@ impl<'a> Realization<'a> { } else if self.place() { (schemas::location_place(), self.detail_prompt()) } else { - ( - schemas::detail(self.slots.len() as i64), - self.detail_prompt(), - ) + let wanted = self.slots.len() as i64; + let schema = + match Plan::of(self.records, self.location).and_then(|plan| plan.outdoors()) { + Some(kind) => schemas::detail_outdoors(wanted, kind), + None => schemas::detail(wanted), + }; + (schema, self.detail_prompt()) }; json!({ "system": data::location_generator("system_prompt"), diff --git a/src/schemas.rs b/src/schemas.rs index 5234ce1..450fc3c 100644 --- a/src/schemas.rs +++ b/src/schemas.rs @@ -692,6 +692,24 @@ pub const MOST_PEOPLE: i64 = 3; /// it, and exactly `wanted` people, or up to `MOST_PEOPLE` when none are /// asked for. pub fn detail(wanted: i64) -> Value { + detail_named(wanted, ROOM_NAME.to_string()) +} + +/// [`detail`] for a street or square of a town (`town`), `kind` its sort: +/// the same but for the name, which it describes out of doors. +pub fn detail_outdoors(wanted: i64, kind: &str) -> Value { + detail_named( + wanted, + format!( + "What this {kind} is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the long street\". Never the name of the town it is in, never a name this story has already given to a place, a person or a thing, and never a comma." + ), + ) +} + +/// What a room's `name` field says, for [`detail`]. +const ROOM_NAME: &str = "What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma."; + +fn detail_named(wanted: i64, name: String) -> Value { let person = object( None, vec![ @@ -770,7 +788,7 @@ pub fn detail(wanted: i64) -> Value { fields.extend([ optional( "name", - string("What this room is called -- ONLY when the instructions above ask you to name it. Leave this out entirely otherwise. A short noun phrase a player would type to walk into it, carrying the article English wants on it: \"the counting room\". Never the name of the building it is in, never a name this story has already given to a room, a person or a thing, and never a comma.").max(60), + string(&name).max(60), ), optional( "items", diff --git a/tests/town.rs b/tests/town.rs index 900aa06..8c4139b 100644 --- a/tests/town.rs +++ b/tests/town.rs @@ -296,6 +296,68 @@ fn no_street_gets_an_exits_call() { } } +/// The writer of a street or square is told where it is and asked for its +/// name out of doors, and the writer of a room of a building in the same +/// town is asked as every room is. +#[test] +fn a_street_is_written_and_named_out_of_doors() { + let records: Value = serde_json::from_str( + &std::fs::read_to_string(parity_dir().join(format!("records/{SCRIPT}.json"))).unwrap(), + ) + .unwrap(); + let asked: Vec<&Value> = records["steps"] + .as_array() + .unwrap() + .iter() + .flat_map(|step| step["requests"].as_array().unwrap()) + .filter(|request| request["purpose"] == "location") + .filter(|request| request["user"].as_str().unwrap().contains("## Where This")) + .collect(); + let outdoor_name = |kind: &str| { + format!( + "What this {kind} is called -- ONLY when the instructions above ask you to name it. \ + Leave this out entirely otherwise. A short noun phrase a player would type to walk \ + into it, carrying the article English wants on it: \"the long street\". Never the \ + name of the town it is in, never a name this story has already given to a place, a \ + person or a thing, and never a comma." + ) + }; + let mut kinds = Vec::new(); + for request in &asked { + let user = request["user"].as_str().unwrap(); + let name = request["schema"]["schema"]["properties"]["name"]["description"] + .as_str() + .unwrap(); + let kind = ["square", "street", "room"] + .into_iter() + .find(|kind| user.contains(&format!("## Where This {} Is", upcase_first(kind)))) + .unwrap(); + kinds.push(kind); + let header = format!( + "## Where This {} Is\nThe game's own records of this {kind}, already decided and \ + not yours to\nchange. Write the {kind} around them: do not contradict a \ + measurement, and\ndo not give it a way out this list does not have.\nThis {kind} is ", + upcase_first(kind) + ); + assert!(user.contains(&header), "{user}"); + if kind == "room" { + assert!(name.starts_with("What this room is called"), "{name}"); + assert!(name.contains("\"the counting room\""), "{name}"); + } else { + assert_eq!(name, outdoor_name(kind)); + } + } + assert_eq!(kinds, ["square", "street", "street", "street", "room"]); +} + +fn upcase_first(word: &str) -> String { + let mut letters = word.chars(); + letters + .next() + .map(|first| first.to_uppercase().chain(letters).collect()) + .unwrap_or_default() +} + /// A street is told its size, its town, which way the other streets lie /// and which side each building fronts it on, and never a wall, a door, a /// stair or a storey; a room of a building in the same town is told the From edf69e2eeb75ada0f279af63c1b4123bc3b96744 Mon Sep 17 00:00:00 2001 From: Caleb LeNoir Date: Fri, 4 Dec 2026 08:58:02 -0500 Subject: [PATCH 3/5] Say in the layout and reach vectors that a town is left to its own layout A case each: a town's place is neither laid out as a room that stands on its own nor warned about as a place with no layout, and the road beside it is both, as before. --- vectors/layout.json | 5 +++-- vectors/reach.json | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/vectors/layout.json b/vectors/layout.json index 7c8f44c..53fa0ac 100644 --- a/vectors/layout.json +++ b/vectors/layout.json @@ -3,7 +3,7 @@ "version": 1, "portion": "layout", "sources": ["src/layout.rs","data/location/size.yml"], - "notes": "A layout for a room that stands on its own (no parent): a box at the origin of its own plane, 0, 0 on storey 0. constants: the band table of data/location/size.yml (default, and each sort's width and depth in whole paces, lowest first, both ends included) and the four sides in order. A case is one of six asks. sides: the bands a room of kind is sized from; a kind that is null or not in the table takes the default. size: width then depth, each low + Random#rand(high - low + 1) from one generator seeded Roll(story, sequence: room, kind: ROOM_SIZE = 20). side: which side the way out (its location_connections id) leaves by: sides[Random#rand(4)] from Roll(story, sequence: way, kind: WAY_OUT_SIDE = 21), worked out on every read and never kept. beside: the cell of room beside side, that side's middle cell, the western or northern of two (x + (width - 1) div 2, y + (depth - 1) div 2). by_the_way_out: beside(room, side(story, way)). lay_out: a story and every row its records hold (locations, items, characters); output is, in id order, each of the story's rooms with no parent and neither a box nor a footprint, with its box (the size above, at the origin) and, by id, a spot for each of the world's own things lying loose on its floor (no playthrough, no holder, not within a piece) and each person in it but the protagonist that has no spot yet, as Placement rolls one in the world (Roll(story, sequence: id, kind: ITEM_POSITION or CHARACTER_POSITION), x then y inside the box).", + "notes": "A layout for a room that stands on its own (no parent): a box at the origin of its own plane, 0, 0 on storey 0. constants: the band table of data/location/size.yml (default, and each sort's width and depth in whole paces, lowest first, both ends included) and the four sides in order. A case is one of six asks. sides: the bands a room of kind is sized from; a kind that is null or not in the table takes the default. size: width then depth, each low + Random#rand(high - low + 1) from one generator seeded Roll(story, sequence: room, kind: ROOM_SIZE = 20). side: which side the way out (its location_connections id) leaves by: sides[Random#rand(4)] from Roll(story, sequence: way, kind: WAY_OUT_SIDE = 21), worked out on every read and never kept. beside: the cell of room beside side, that side's middle cell, the western or northern of two (x + (width - 1) div 2, y + (depth - 1) div 2). by_the_way_out: beside(room, side(story, way)). lay_out: a story and every row its records hold (locations, towns, items, characters); output is, in id order, each of the story's rooms with no parent and neither a box nor a footprint, and that no towns row names (a town is laid out by the engine's town module instead), with its box (the size above, at the origin) and, by id, a spot for each of the world's own things lying loose on its floor (no playthrough, no holder, not within a piece) and each person in it but the protagonist that has no spot yet, as Placement rolls one in the world (Roll(story, sequence: id, kind: ITEM_POSITION or CHARACTER_POSITION), x then y inside the box).", "constants": {"default":{"width":[6,12],"depth":[6,12]},"kinds":[["corridor",{"width":[2,3],"depth":[8,16]}],["common room",{"width":[6,12],"depth":[6,12]}],["assembly hall",{"width":[12,20],"depth":[12,24]}],["kitchen",{"width":[4,8],"depth":[4,8]}],["sleeping quarters",{"width":[4,8],"depth":[4,8]}],["washroom",{"width":[3,5],"depth":[3,5]}],["study",{"width":[3,6],"depth":[3,6]}],["library",{"width":[6,12],"depth":[8,16]}],["office",{"width":[3,6],"depth":[3,6]}],["classroom",{"width":[6,10],"depth":[6,10]}],["laboratory",{"width":[6,10],"depth":[6,12]}],["infirmary",{"width":[6,10],"depth":[8,14]}],["workshop",{"width":[6,10],"depth":[6,12]}],["machine room",{"width":[6,12],"depth":[6,12]}],["control room",{"width":[4,8],"depth":[4,8]}],["storeroom",{"width":[3,6],"depth":[3,6]}],["shop",{"width":[4,8],"depth":[5,10]}],["shrine",{"width":[4,8],"depth":[6,12]}],["auditorium",{"width":[12,20],"depth":[16,28]}],["cell",{"width":[2,3],"depth":[2,4]}],["stable",{"width":[6,10],"depth":[8,16]}],["hangar",{"width":[16,30],"depth":[16,30]}],["airlock",{"width":[2,3],"depth":[2,4]}],["garden",{"width":[8,16],"depth":[8,16]}],["courtyard",{"width":[6,14],"depth":[6,14]}],["rooftop",{"width":[6,12],"depth":[6,12]}],["street",{"width":[4,8],"depth":[16,30]}],["road",{"width":[4,6],"depth":[20,40]}],["square",{"width":[16,30],"depth":[16,30]}],["market",{"width":[12,24],"depth":[12,24]}],["crossing",{"width":[8,14],"depth":[8,14]}],["field",{"width":[20,40],"depth":[20,40]}],["forest",{"width":[12,24],"depth":[12,24]}],["shore",{"width":[8,14],"depth":[24,40]}],["mountainside",{"width":[12,24],"depth":[12,24]}],["desert",{"width":[20,40],"depth":[20,40]}],["cave",{"width":[6,14],"depth":[6,14]}],["ruin",{"width":[8,16],"depth":[8,16]}]],"sides":["north","east","south","west"]}, "cases": [ {"name":"a room with no sort takes the default band","input":{"ask":"sides","kind":null},"output":{"width":[6,12],"depth":[6,12]}}, @@ -28,6 +28,7 @@ {"name":"beside a side of a room one pace across","input":{"ask":"beside","room":{"x":0,"y":0,"z":0,"width":1,"depth":1},"side":"south"},"output":{"x":0,"y":0}}, {"name":"by the way out of the green","input":{"ask":"by_the_way_out","story":1000000001,"room":{"x":0,"y":0,"z":0,"width":20,"depth":30},"way":1000000001},"output":{"x":9,"y":0}}, {"name":"every room that stands on its own and has no layout is laid out, and what is loose in it placed","input":{"ask":"lay_out","story":1,"records":{"locations":[{"id":10,"story_id":1,"name":"Tanners Row","kind":"street"},{"id":11,"story_id":1,"name":"The Lamp Yard","width":6,"depth":9},{"id":12,"story_id":1,"name":"The Lamp Yard room 1","parent_location_id":11,"x":0,"y":0,"z":0,"width":6,"depth":6},{"id":13,"story_id":1,"name":"The Loft","parent_location_id":11},{"id":14,"story_id":1,"name":"The Green","x":0,"y":0,"z":0,"width":8,"depth":8},{"id":15,"story_id":1,"name":"The Old Mill"},{"id":20,"story_id":2,"name":"Elsewhere"}],"items":[{"id":101,"location_id":10,"name":"cart"},{"id":102,"location_id":10,"name":"sack","within_id":101,"how":"in"},{"id":103,"location_id":10,"name":"cart","playthrough_id":5},{"id":104,"character_id":30,"name":"knife"},{"id":105,"location_id":15,"name":"millstone"},{"id":106,"location_id":15,"name":"sieve","x":1,"y":1},{"id":107,"location_id":13,"name":"hay"}],"characters":[{"id":30,"location_id":10,"fullname":"Ada Tanner","is_protagonist":false},{"id":31,"location_id":10,"fullname":"The Player","is_protagonist":true},{"id":32,"location_id":15,"fullname":"Miller Hobb","is_protagonist":false,"x":2,"y":3}]}},"output":[{"location":10,"name":"Tanners Row","box":{"x":0,"y":0,"z":0,"width":5,"depth":24},"items":[[101,{"x":0,"y":17}]],"people":[[30,{"x":2,"y":6}]]},{"location":15,"name":"The Old Mill","box":{"x":0,"y":0,"z":0,"width":9,"depth":8},"items":[[105,{"x":0,"y":5}]],"people":[]}]}, - {"name":"a story with nothing to lay out","input":{"ask":"lay_out","story":2,"records":{"locations":[{"id":20,"story_id":2,"name":"Elsewhere","x":0,"y":0,"z":0,"width":6,"depth":6},{"id":21,"story_id":2,"name":"A Place","width":6,"depth":6}],"items":[],"characters":[]}},"output":[]} + {"name":"a story with nothing to lay out","input":{"ask":"lay_out","story":2,"records":{"locations":[{"id":20,"story_id":2,"name":"Elsewhere","x":0,"y":0,"z":0,"width":6,"depth":6},{"id":21,"story_id":2,"name":"A Place","width":6,"depth":6}],"items":[],"characters":[]}},"output":[]}, + {"name":"a town is left to its own layout, and a room beside it is laid out","input":{"ask":"lay_out","story":1,"records":{"locations":[{"id":10,"story_id":1,"name":"Thornwick"},{"id":11,"story_id":1,"name":"The North Road"}],"towns":[{"id":1,"location_id":10,"streets":3,"square":true}],"items":[],"characters":[]}},"output":[{"location":11,"name":"The North Road","box":{"x":0,"y":0,"z":0,"width":12,"depth":7},"items":[],"people":[]}]} ] } diff --git a/vectors/reach.json b/vectors/reach.json index afe6ff7..f1269d4 100644 --- a/vectors/reach.json +++ b/vectors/reach.json @@ -3,7 +3,7 @@ "version": 1, "portion": "reach", "sources": ["src/reach.rs"], - "notes": "What is within reach in a laid-out room, where you stand after walking up to something or stepping back from it, and the doctor's warning for a place with no layout. A room is a box in its parent's plane and a spot is a cell of it in that plane. A case is one of five asks. within: whether the spot to is within arm's length of from (the same cell or one of the eight around it). nearest_free: where you stand after walking from from up to target in room, with taken the cells others stand or lie in: the cell inside the walls within arm's length of target, not target's own and not taken (from always counts as free), fewest paces from from, ties to the first north to south then west to east; null when there is none. step_back: where you stand after stepping back from away at from in room: a cell inside the walls step_back_paces from from and step_back_paces farther from away than from was, the one whose larger axis from away is largest, ties to the first north to south then west to east; refused no_room_behind when there is none. nearest_within_reach: the index of the first of people within arm's length of from with the fewest paces to it, or null. findings: a story and every row its records hold (stories, locations); output is reach::findings, one warning room_without_a_layout for each of the story's places with neither a box (x, y, z, width, depth) nor a footprint (width and depth). No die is thrown.", + "notes": "What is within reach in a laid-out room, where you stand after walking up to something or stepping back from it, and the doctor's warning for a place with no layout. A room is a box in its parent's plane and a spot is a cell of it in that plane. A case is one of five asks. within: whether the spot to is within arm's length of from (the same cell or one of the eight around it). nearest_free: where you stand after walking from from up to target in room, with taken the cells others stand or lie in: the cell inside the walls within arm's length of target, not target's own and not taken (from always counts as free), fewest paces from from, ties to the first north to south then west to east; null when there is none. step_back: where you stand after stepping back from away at from in room: a cell inside the walls step_back_paces from from and step_back_paces farther from away than from was, the one whose larger axis from away is largest, ties to the first north to south then west to east; refused no_room_behind when there is none. nearest_within_reach: the index of the first of people within arm's length of from with the fewest paces to it, or null. findings: a story and every row its records hold (stories, locations, towns); output is reach::findings, one warning room_without_a_layout for each of the story's places with neither a box (x, y, z, width, depth) nor a footprint (width and depth), and that no towns row names (a town's streets are stood in instead). No die is thrown.", "constants": {"step_back_paces":2}, "cases": [ {"name":"the same cell is within reach","input":{"ask":"within","from":{"x":4,"y":4},"to":{"x":4,"y":4}},"output":true}, @@ -26,6 +26,7 @@ {"name":"nobody within reach","input":{"ask":"nearest_within_reach","from":{"x":2,"y":3},"people":[{"x":4,"y":5}]},"output":null}, {"name":"a flat world: every place is without a layout","input":{"ask":"findings","story":1,"records":{"stories":[{"id":1},{"id":2}],"locations":[{"id":10,"story_id":1,"name":"Causeway Court"},{"id":11,"story_id":1,"name":"The Robing Room","parent_location_id":10},{"id":20,"story_id":2,"name":"Elsewhere"}]}},"output":[{"code":"room_without_a_layout","severity":"warning","remedy":"manual","subject":["locations",10],"message":"\"Causeway Court\" has no layout: nobody can be given a spot in it, so what is within reach there cannot be measured"},{"code":"room_without_a_layout","severity":"warning","remedy":"manual","subject":["locations",11],"message":"\"The Robing Room\" has no layout: nobody can be given a spot in it, so what is within reach there cannot be measured"}]}, {"name":"a laid-out building: the footprint and its boxed rooms are clean, the street outside is not","input":{"ask":"findings","story":1,"records":{"stories":[{"id":1}],"locations":[{"id":10,"story_id":1,"name":"Mill Lane"},{"id":11,"story_id":1,"name":"The Pottery","width":6,"depth":4},{"id":12,"story_id":1,"name":"The Kiln Room","parent_location_id":11,"x":0,"y":0,"z":0,"width":3,"depth":4},{"id":13,"story_id":1,"name":"The Shop","parent_location_id":11,"x":3,"y":0,"z":0,"width":3,"depth":4}]}},"output":[{"code":"room_without_a_layout","severity":"warning","remedy":"manual","subject":["locations",10],"message":"\"Mill Lane\" has no layout: nobody can be given a spot in it, so what is within reach there cannot be measured"}]}, - {"name":"a box missing a column is no layout","input":{"ask":"findings","story":1,"records":{"stories":[{"id":1}],"locations":[{"id":10,"story_id":1,"name":"The Yard","x":0,"y":0,"width":4,"depth":4},{"id":11,"story_id":1,"name":"The Loft","parent_location_id":10,"x":0,"y":0,"z":1}]}},"output":[{"code":"room_without_a_layout","severity":"warning","remedy":"manual","subject":["locations",11],"message":"\"The Loft\" has no layout: nobody can be given a spot in it, so what is within reach there cannot be measured"}]} + {"name":"a box missing a column is no layout","input":{"ask":"findings","story":1,"records":{"stories":[{"id":1}],"locations":[{"id":10,"story_id":1,"name":"The Yard","x":0,"y":0,"width":4,"depth":4},{"id":11,"story_id":1,"name":"The Loft","parent_location_id":10,"x":0,"y":0,"z":1}]}},"output":[{"code":"room_without_a_layout","severity":"warning","remedy":"manual","subject":["locations",11],"message":"\"The Loft\" has no layout: nobody can be given a spot in it, so what is within reach there cannot be measured"}]}, + {"name":"a town is not warned about, since its streets are stood in, and the road beside it is","input":{"ask":"findings","story":1,"records":{"stories":[{"id":1}],"locations":[{"id":10,"story_id":1,"name":"Thornwick"},{"id":11,"story_id":1,"name":"The North Road"}],"towns":[{"id":1,"location_id":10,"streets":3,"square":true}]}},"output":[{"code":"room_without_a_layout","severity":"warning","remedy":"manual","subject":["locations",11],"message":"\"The North Road\" has no layout: nobody can be given a spot in it, so what is within reach there cannot be measured"}]} ] } From c724c051984551a4e1e1798ca60c5cb37c3fb97f Mon Sep 17 00:00:00 2001 From: Caleb LeNoir Date: Fri, 4 Dec 2026 09:48:43 -0500 Subject: [PATCH 4/5] Take the town walk's world and script as the game writes them The world is the game's loader dump at its towns migration, 20261204140420, in place of the hand-built one: the same rows and schema, with the timestamps, the migration version and the statement order the loader gives. The script is re-emitted by Ruby's YAML library, as every script here is. No golden, records file or request moves. --- .../a-town-laid-out-before-it-is-written.yml | 19 ++++--- parity/worlds/a-town-of-three-streets.sql | 52 +++++++++---------- 2 files changed, 39 insertions(+), 32 deletions(-) diff --git a/parity/scripts/a-town-laid-out-before-it-is-written.yml b/parity/scripts/a-town-laid-out-before-it-is-written.yml index c703143..6fcff43 100644 --- a/parity/scripts/a-town-laid-out-before-it-is-written.yml +++ b/parity/scripts/a-town-laid-out-before-it-is-written.yml @@ -12,14 +12,17 @@ steps: - 'teaser: A square in Thornwick, 22 by 22 paces.' - This square is 22 by 22 paces -- about 33 by 33 metres. - It is part of Thornwick, which is 40 by 40 paces across. - - 'Its ways out: The Shrine, which fronts it on the north side; to the east, Thornwick room 2; to the south, Thornwick room 4; a way out to The North Road, which is outside Thornwick. Those are every way out of this square.' + - 'Its ways out: The Shrine, which fronts it on the north side; to the east, + Thornwick room 2; to the south, Thornwick room 4; a way out to The North Road, + which is outside Thornwick. Those are every way out of this square.' - NAME THIS SQUARE. It is one square of Thornwick. prompt_excludes: - wall - storey - one room inside content: - description: A wide cobbled square with a well at its middle and the shrine's steps on its north side. + description: A wide cobbled square with a well at its middle and the shrine's + steps on its north side. lore: The town was laid out from this well. name: the well square items: [] @@ -54,12 +57,14 @@ steps: - Thornwick shop 1, which fronts it on the - to the west, the well square - NAME THIS STREET. It is one street of Thornwick. - - 'Places in Thornwick that are already named, so do not reuse one: the well square' + - 'Places in Thornwick that are already named, so do not reuse one: the well + square' prompt_excludes: - wall - storey content: - description: A narrow street of soot-dark fronts running off the square, a forge glowing at one door. + description: A narrow street of soot-dark fronts running off the square, a + forge glowing at one door. lore: The smiths took this street first. name: the forge lane items: [] @@ -84,7 +89,8 @@ steps: - wall - storey content: - description: A long street of tall narrow houses, washing strung between the upper windows. + description: A long street of tall narrow houses, washing strung between the + upper windows. lore: The tanners lived here before the river moved. name: the tanners' row items: [] @@ -109,7 +115,8 @@ steps: - wall - storey content: - description: A short street that bends back to the square, the inn's painted sign hanging over it. + description: A short street that bends back to the square, the inn's painted + sign hanging over it. lore: Drovers stop here on the way to market. name: the inn street items: [] diff --git a/parity/worlds/a-town-of-three-streets.sql b/parity/worlds/a-town-of-three-streets.sql index afeb5f2..d563638 100644 --- a/parity/worlds/a-town-of-three-streets.sql +++ b/parity/worlds/a-town-of-three-streets.sql @@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS "ruby_llm_tool_calls" ("id" integer PRIMARY KEY AUTOI CREATE TABLE IF NOT EXISTS "ruby_llm_usages" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "chat_type" varchar NOT NULL, "chat_id" integer NOT NULL, "message_type" varchar, "message_id" integer, "operation" varchar NOT NULL, "provider" varchar NOT NULL, "model" varchar NOT NULL, "status" varchar NOT NULL, "input_tokens" integer, "output_tokens" integer, "cache_read_tokens" integer, "cache_write_tokens" integer, "thinking_tokens" integer, "input_cost" decimal(16,10), "output_cost" decimal(16,10), "cache_read_cost" decimal(16,10), "cache_write_cost" decimal(16,10), "thinking_cost" decimal(16,10), "total_cost" decimal(16,10), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "latency_ms" integer, CONSTRAINT chk_rails_71abd85d6e CHECK (operation IN ('chat', 'embedding', 'moderation', 'image', 'speech', 'transcription', 'ocr', 'rerank')), CONSTRAINT chk_rails_f50895962a CHECK (status IN ('pending', 'succeeded', 'failed', 'cancelled'))); CREATE TABLE IF NOT EXISTS "ruby_llm_v2_backfills" ("task" varchar NOT NULL, "last_id" integer, "completed" boolean DEFAULT FALSE NOT NULL); CREATE TABLE IF NOT EXISTS "universes" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "physics" text, "technology" text, "weapons" text, "civilizations" text, "geographies" text, "history" text, "economics" text, "politics" text, "religion" text, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "gravity" varchar, "carrying" varchar); -INSERT INTO universes VALUES(1000000001,'Ordinary physics.','Lanterns, iron keys and hand tools.','Short blades and cudgels.','Townsfolk who keep a shrine, an inn and a forge.','A small town of three streets around a square.','The shrine is older than the square around it.','Coin and barter.','A town council keeps the peace.','The town leaves candles at the shrine.','2026-12-03 14:12:47.916162','2026-12-03 14:12:47.916162',NULL,NULL); +INSERT INTO universes VALUES(1000000001,'Ordinary physics.','Lanterns, iron keys and hand tools.','Short blades and cudgels.','Townsfolk who keep a shrine, an inn and a forge.','A small town of three streets around a square.','The shrine is older than the square around it.','Coin and barter.','A town council keeps the peace.','The town leaves candles at the shrine.','2026-12-04 14:13:02.054068','2026-12-04 14:13:02.054068',NULL,NULL); CREATE TABLE IF NOT EXISTS "characters" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "fullname" varchar, "nickname" varchar, "age" integer, "sex" varchar, "personality" text, "appearance" text, "likes" text, "dislikes" text, "fears" text, "backstory" text, "is_companion" boolean, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "race_id" integer NOT NULL, "is_protagonist" boolean DEFAULT FALSE NOT NULL, "location_id" integer, "deliberately_absent" boolean DEFAULT FALSE NOT NULL, "level" integer, "hit_die" integer, "strength" integer, "dexterity" integer, "will" integer, "hostile" boolean DEFAULT FALSE NOT NULL, "x" integer, "y" integer, "conscious_desire" text, "unconscious_desire" text, "recognized_need" text, "unrecognized_need" text, "desire_pursuit" varchar, "need_pursuit" varchar, "posted_to_id" integer, CONSTRAINT "fk_rails_56a213cbe2" FOREIGN KEY ("race_id") REFERENCES "races" ("id") @@ -27,7 +27,7 @@ FOREIGN KEY ("posted_to_id") FOREIGN KEY ("story_id") REFERENCES "stories" ("id") ); -INSERT INTO characters VALUES(1000000001,1000000001,'Wren','Wren',31,'female','Curious and careful.','A grey coat and a lantern.','Quiet mornings.','Locked doors.','The dark under the shrine.','She grew up on the north road and has never walked all of Thornwick.',0,'2026-12-03 14:12:48.053678','2026-12-03 14:12:48.053678',1000000001,1,NULL,0,3,8,12,12,12,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +INSERT INTO characters VALUES(1000000001,1000000001,'Wren','Wren',31,'female','Curious and careful.','A grey coat and a lantern.','Quiet mornings.','Locked doors.','The dark under the shrine.','She grew up on the north road and has never walked all of Thornwick.',0,'2026-12-04 14:13:02.279169','2026-12-04 14:13:02.279169',1000000001,1,NULL,0,3,8,12,12,12,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); CREATE TABLE IF NOT EXISTS "chats" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "model_id_string" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "ruby_llm_model_id" integer, "purpose" varchar, "playthrough_id" integer, "character_id" integer, "cancelled" boolean DEFAULT FALSE NOT NULL, "player_id" integer, CONSTRAINT "fk_rails_415520c982" FOREIGN KEY ("playthrough_id") REFERENCES "playthroughs" ("id") @@ -90,12 +90,12 @@ FOREIGN KEY ("key_template_id") FOREIGN KEY ("connected_location_id") REFERENCES "locations" ("id") ); -INSERT INTO location_connections VALUES(1000000001,1000000001,1000000003,'adjacent','about a minute','walking','2026-12-03 14:12:48.140051','2026-12-03 14:12:48.140051',NULL,NULL,'open',NULL); -INSERT INTO location_connections VALUES(1000000002,1000000003,1000000001,'adjacent','about a minute','walking','2026-12-03 14:12:48.148926','2026-12-03 14:12:48.148926',NULL,NULL,'open',NULL); -INSERT INTO location_connections VALUES(1000000003,1000000003,1000000002,'adjacent','about a minute','walking','2026-12-03 14:12:48.150000','2026-12-03 14:12:48.150000',NULL,NULL,'open',NULL); -INSERT INTO location_connections VALUES(1000000004,1000000002,1000000003,'adjacent','about a minute','walking','2026-12-03 14:12:48.151000','2026-12-03 14:12:48.151000',NULL,NULL,'open',NULL); -INSERT INTO location_connections VALUES(1000000005,1000000003,1000000004,'adjacent','about a minute','walking','2026-12-03 14:12:48.152000','2026-12-03 14:12:48.152000',NULL,NULL,'open',NULL); -INSERT INTO location_connections VALUES(1000000006,1000000004,1000000003,'adjacent','about a minute','walking','2026-12-03 14:12:48.153000','2026-12-03 14:12:48.153000',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000001,1000000001,1000000003,'adjacent','about a minute','walking','2026-12-04 14:13:02.345631','2026-12-04 14:13:02.345631',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000002,1000000003,1000000001,'adjacent','about a minute','walking','2026-12-04 14:13:02.353499','2026-12-04 14:13:02.353499',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000003,1000000003,1000000002,'adjacent','about a minute','walking','2026-12-04 14:13:02.355706','2026-12-04 14:13:02.355706',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000004,1000000002,1000000003,'adjacent','about a minute','walking','2026-12-04 14:13:02.357848','2026-12-04 14:13:02.357848',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000005,1000000003,1000000004,'adjacent','about a minute','walking','2026-12-04 14:13:02.359381','2026-12-04 14:13:02.359381',NULL,NULL,'open',NULL); +INSERT INTO location_connections VALUES(1000000006,1000000004,1000000003,'adjacent','about a minute','walking','2026-12-04 14:13:02.361237','2026-12-04 14:13:02.361237',NULL,NULL,'open',NULL); CREATE TABLE IF NOT EXISTS "locations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "story_id" integer NOT NULL, "name" varchar, "description" text, "lore" text, "last_protagonist_visit" datetime(6), "parent_location_id" integer, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "detail_level" varchar DEFAULT 'stub' NOT NULL, "teaser" text, "mobile" boolean DEFAULT FALSE NOT NULL, "danger" varchar DEFAULT 'safe' NOT NULL, "hazard" varchar, "hazard_die" integer, "x" integer, "y" integer, "z" integer, "width" integer, "depth" integer, "population" varchar, "generation_checkpoint" json, "surface" varchar, "kind" varchar, "density" varchar, "sanctuary" boolean DEFAULT FALSE NOT NULL, CONSTRAINT "fk_rails_5bc98acf09" FOREIGN KEY ("parent_location_id") REFERENCES "locations" ("id") @@ -103,11 +103,11 @@ FOREIGN KEY ("parent_location_id") FOREIGN KEY ("story_id") REFERENCES "stories" ("id") ); -INSERT INTO locations VALUES(1000000001,1000000001,'The North Road','A rutted road running south between hedges to the edge of Thornwick.','Carters have used it longer than the town has had a name.',NULL,NULL,'2026-12-03 14:12:47.973166','2026-12-03 14:12:47.973166','realized','The road into Thornwick.',0,'safe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'nobody',NULL,NULL,NULL,NULL,0); -INSERT INTO locations VALUES(1000000002,1000000001,'The Shrine',NULL,NULL,NULL,NULL,'2026-12-03 14:12:47.985151','2026-12-03 14:12:47.985151','stub','A stone shrine with its door standing open.',0,'safe',NULL,NULL,NULL,NULL,NULL,12,10,'nobody',NULL,NULL,'temple',NULL,0); -INSERT INTO locations VALUES(1000000003,1000000001,'Thornwick',NULL,NULL,NULL,NULL,'2026-12-03 14:12:47.990000','2026-12-03 14:12:47.990000','stub','A small town of three streets around a square.',0,'safe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); -INSERT INTO locations VALUES(1000000004,1000000001,'The Inn',NULL,NULL,NULL,NULL,'2026-12-03 14:12:47.995000','2026-12-03 14:12:47.995000','stub','A low inn with a painted sign over its door.',0,'safe',NULL,NULL,NULL,NULL,NULL,10,9,'nobody',NULL,NULL,'inn',NULL,0); -INSERT INTO locations VALUES(1000000005,1000000001,'The Smithy',NULL,NULL,NULL,1000000003,'2026-12-03 14:12:47.999000','2026-12-03 14:12:47.999000','stub','A smithy with its forge banked for the night.',0,'safe',NULL,NULL,NULL,NULL,NULL,8,8,'nobody',NULL,NULL,'smithy',NULL,0); +INSERT INTO locations VALUES(1000000001,1000000001,'The North Road','A rutted road running south between hedges to the edge of Thornwick.','Carters have used it longer than the town has had a name.',NULL,NULL,'2026-12-04 14:13:02.105528','2026-12-04 14:13:02.105528','realized','The road into Thornwick.',0,'safe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'nobody',NULL,NULL,NULL,NULL,0); +INSERT INTO locations VALUES(1000000002,1000000001,'The Shrine',NULL,NULL,NULL,NULL,'2026-12-04 14:13:02.123651','2026-12-04 14:13:02.123651','stub','A stone shrine with its door standing open.',0,'safe',NULL,NULL,NULL,NULL,NULL,12,10,'nobody',NULL,NULL,'temple',NULL,0); +INSERT INTO locations VALUES(1000000003,1000000001,'Thornwick',NULL,NULL,NULL,NULL,'2026-12-04 14:13:02.136909','2026-12-04 14:13:02.136909','stub','A small town of three streets around a square.',0,'safe',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0); +INSERT INTO locations VALUES(1000000004,1000000001,'The Inn',NULL,NULL,NULL,NULL,'2026-12-04 14:13:02.146697','2026-12-04 14:13:02.146697','stub','A low inn with a painted sign over its door.',0,'safe',NULL,NULL,NULL,NULL,NULL,10,9,'nobody',NULL,NULL,'inn',NULL,0); +INSERT INTO locations VALUES(1000000005,1000000001,'The Smithy',NULL,NULL,NULL,1000000003,'2026-12-04 14:13:02.157820','2026-12-04 14:13:02.169697','stub','A smithy with its forge banked for the night.',0,'safe',NULL,NULL,NULL,NULL,NULL,8,8,'nobody',NULL,NULL,'smithy',NULL,0); CREATE TABLE IF NOT EXISTS "locations_world_events" ("location_id" integer NOT NULL, "world_event_id" integer NOT NULL, CONSTRAINT "fk_rails_861146f35c" FOREIGN KEY ("location_id") REFERENCES "locations" ("id") @@ -318,7 +318,7 @@ CREATE TABLE IF NOT EXISTS "races" ("id" integer PRIMARY KEY AUTOINCREMENT NOT N FOREIGN KEY ("universe_id") REFERENCES "universes" ("id") ); -INSERT INTO races VALUES(1000000001,1000000001,'Townsfolk','Ordinary people of the town.','2026-12-03 14:12:47.919905','2026-12-03 14:12:47.919905',0); +INSERT INTO races VALUES(1000000001,1000000001,'Townsfolk','Ordinary people of the town.','2026-12-04 14:13:02.057660','2026-12-04 14:13:02.057660',0); CREATE TABLE IF NOT EXISTS "relay_receipts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "player_id" integer NOT NULL, "route" varchar NOT NULL, "model" varchar NOT NULL, "stream" boolean DEFAULT FALSE NOT NULL, "status" varchar DEFAULT 'open' NOT NULL, "reserved_usd" decimal(12,6) NOT NULL, "cost_usd" decimal(12,6), "cost_source" varchar, "input_tokens" integer, "output_tokens" integer, "upstream_status" integer, "finished_at" datetime(6), "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_deae27bd71" FOREIGN KEY ("player_id") REFERENCES "players" ("id") @@ -333,12 +333,12 @@ FOREIGN KEY ("location_id") FOREIGN KEY ("story_id") REFERENCES "stories" ("id") ); -INSERT INTO scenes VALUES(1000000001,1000000001,1000000001,NULL,'You stand on the north road with the roofs of Thornwick ahead.','2026-12-03 08:00:00','Wren arrives on the north road.','2026-12-03 14:12:48.250241','2026-12-03 14:12:48.250241',1,NULL,NULL,NULL,NULL,NULL,0,NULL); +INSERT INTO scenes VALUES(1000000001,1000000001,1000000001,NULL,'You stand on the north road with the roofs of Thornwick ahead.','2026-12-03 08:00:00','Wren arrives on the north road.','2026-12-04 14:13:02.495285','2026-12-04 14:13:02.495285',1,NULL,NULL,NULL,NULL,NULL,0,NULL); CREATE TABLE IF NOT EXISTS "stories" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "genre" varchar, "preface" text, "summary" text, "start_time" datetime(6), "universe_id" integer NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "generation_snapshot" text, "people_limit" integer, "things_limit" integer, CONSTRAINT "fk_rails_2a912ea846" FOREIGN KEY ("universe_id") REFERENCES "universes" ("id") ); -INSERT INTO stories VALUES(1000000001,'A Town of Three Streets (engine sweep)','town adventure','Thornwick is a small town of three streets around a square.','Wren walks the streets of Thornwick.','2026-12-03 08:00:00',1000000001,'2026-12-03 14:12:47.939522','2026-12-03 14:12:47.939522',NULL,NULL,NULL); +INSERT INTO stories VALUES(1000000001,'A Town of Three Streets (engine sweep)','town adventure','Thornwick is a small town of three streets around a square.','Wren walks the streets of Thornwick.','2026-12-03 08:00:00',1000000001,'2026-12-04 14:13:02.076927','2026-12-04 14:13:02.076927',NULL,NULL,NULL); CREATE TABLE IF NOT EXISTS "system_one_receipts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "player_id" integer, "playthrough_id" integer, "purpose" varchar, "transport" varchar, "cost_usd" decimal(12,6) NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "cost_source" varchar DEFAULT 'estimated' NOT NULL, "latency_ms" integer, CONSTRAINT "fk_rails_4ae941c854" FOREIGN KEY ("player_id") REFERENCES "players" ("id") @@ -346,6 +346,11 @@ FOREIGN KEY ("player_id") FOREIGN KEY ("playthrough_id") REFERENCES "playthroughs" ("id") ); +CREATE TABLE IF NOT EXISTS "towns" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer NOT NULL, "streets" integer NOT NULL, "square" boolean DEFAULT FALSE NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_4f24ffc062" +FOREIGN KEY ("location_id") + REFERENCES "locations" ("id") + ON DELETE CASCADE); +INSERT INTO towns VALUES(1000000001,1000000003,3,1,'2026-12-04 14:13:02.204730','2026-12-04 14:13:02.204730'); CREATE TABLE IF NOT EXISTS "world_events" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "world_mechanic_id" integer, "story_id" integer NOT NULL, "occurred_at" datetime(6) NOT NULL, "summary" text NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, "source" varchar NOT NULL, "playthrough_id" integer, "scheduled_for" datetime(6), "fired_at" datetime(6), CONSTRAINT "fk_rails_cafc0959e8" FOREIGN KEY ("story_id") REFERENCES "stories" ("id") @@ -358,6 +363,7 @@ FOREIGN KEY ("story_id") REFERENCES "stories" ("id") ); CREATE TABLE IF NOT EXISTS "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY); +INSERT INTO schema_migrations VALUES('20261204140420'); INSERT INTO schema_migrations VALUES('20261031180000'); INSERT INTO schema_migrations VALUES('20261031150000'); INSERT INTO schema_migrations VALUES('20261031120000'); @@ -456,15 +462,9 @@ INSERT INTO schema_migrations VALUES('20250823023925'); INSERT INTO schema_migrations VALUES('20250822184651'); INSERT INTO schema_migrations VALUES('20250822184650'); INSERT INTO schema_migrations VALUES('20250822184649'); -INSERT INTO schema_migrations VALUES('20261203150000'); CREATE TABLE IF NOT EXISTS "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL); -INSERT INTO ar_internal_metadata VALUES('environment','test','2026-12-03 14:12:46.582387','2026-12-03 14:12:46.582390'); -INSERT INTO ar_internal_metadata VALUES('schema_sha1','329070adbe704f45d3baf76252364b118fcf372d','2026-12-03 14:12:46.586255','2026-12-03 14:12:46.586257'); -CREATE TABLE IF NOT EXISTS "towns" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "location_id" integer NOT NULL, "streets" integer NOT NULL, "square" boolean DEFAULT FALSE NOT NULL, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL, CONSTRAINT "fk_rails_4f24ffc062" -FOREIGN KEY ("location_id") - REFERENCES "locations" ("id") - ON DELETE CASCADE); -INSERT INTO towns VALUES(1000000001,1000000003,3,1,'2026-12-03 14:12:48.160000','2026-12-03 14:12:48.160000'); +INSERT INTO ar_internal_metadata VALUES('environment','test','2026-12-04 14:13:00.658502','2026-12-04 14:13:00.658505'); +INSERT INTO ar_internal_metadata VALUES('schema_sha1','d5998e09f0207cdc7ce34291ef6e0066b9311caf','2026-12-04 14:13:00.662585','2026-12-04 14:13:00.662588'); PRAGMA writable_schema=ON; CREATE TABLE IF NOT EXISTS sqlite_sequence(name,seq); DELETE FROM sqlite_sequence; @@ -515,9 +515,9 @@ INSERT INTO sqlite_sequence VALUES('relay_receipts',1000000000); INSERT INTO sqlite_sequence VALUES('scenes',1000000001); INSERT INTO sqlite_sequence VALUES('stories',1000000001); INSERT INTO sqlite_sequence VALUES('system_one_receipts',1000000000); +INSERT INTO sqlite_sequence VALUES('towns',1000000001); INSERT INTO sqlite_sequence VALUES('world_events',1000000000); INSERT INTO sqlite_sequence VALUES('world_mechanics',1000000000); -INSERT INTO sqlite_sequence VALUES('towns',1000000001); CREATE INDEX "index_characters_scenes_on_character_id_and_scene_id" ON "characters_scenes" ("character_id", "scene_id"); CREATE INDEX "index_characters_scenes_on_scene_id_and_character_id" ON "characters_scenes" ("scene_id", "character_id"); CREATE UNIQUE INDEX "index_players_on_name" ON "players" ("name"); @@ -682,6 +682,7 @@ CREATE INDEX "index_stories_on_universe_id" ON "stories" ("universe_id"); CREATE INDEX "index_system_one_receipts_on_player_id_and_created_at" ON "system_one_receipts" ("player_id", "created_at"); CREATE INDEX "index_system_one_receipts_on_player_id" ON "system_one_receipts" ("player_id"); CREATE INDEX "index_system_one_receipts_on_playthrough_id" ON "system_one_receipts" ("playthrough_id"); +CREATE UNIQUE INDEX "index_towns_on_location_id" ON "towns" ("location_id"); CREATE INDEX "index_world_events_on_playthrough_id" ON "world_events" ("playthrough_id"); CREATE INDEX "index_world_events_on_story_id_and_occurred_at" ON "world_events" ("story_id", "occurred_at"); CREATE INDEX "index_world_events_on_story_id_and_scheduled_for" ON "world_events" ("story_id", "scheduled_for"); @@ -689,6 +690,5 @@ CREATE INDEX "index_world_events_on_story_id" ON "world_events" ("story_id"); CREATE INDEX "index_world_events_on_world_mechanic_id" ON "world_events" ("world_mechanic_id"); CREATE UNIQUE INDEX "index_world_mechanics_on_story_id_and_name" ON "world_mechanics" ("story_id", "name"); CREATE INDEX "index_world_mechanics_on_story_id" ON "world_mechanics" ("story_id"); -CREATE UNIQUE INDEX "index_towns_on_location_id" ON "towns" ("location_id"); PRAGMA writable_schema=OFF; COMMIT; From 2eefc5f6db7d8644085fa452b0284fa2bfb4d00a Mon Sep 17 00:00:00 2001 From: Caleb LeNoir Date: Fri, 4 Dec 2026 09:59:33 -0500 Subject: [PATCH 5/5] Run CI against the game change that lays a town out (renderedstep/server ad16f9f) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bcb5d34..68b5066 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,7 @@ jobs: env: # The game commit whose runner, scripts and judges this checkout is # held to (parity/README.md, "Changing a rule"). - SERVER_COMMIT: ad6bce7c2c83af947c1d1fd398d53adb5f3eb3bc + SERVER_COMMIT: ad16f9f0274ac6777653454bdd4346eec9bb9007 steps: # Side by side, not one inside the other: the game's extension is a # crate of its own, and inside this checkout cargo would read it as a