Skip to content

Chapter 22 — Gaslight Detective (Detective Demo)

Part VI — Starter Worlds

A walkthrough of the detective starter.

A fog-choked Victorian estate. A man lies dead in a locked study. Everyone has secrets, and the clock is ticking before the real killer vanishes into the gaslight.

ElementDescription
The StudyStarting zone — locked-room crime scene with desk, brandy glass, fireplace
The ParlourSocial zone — aristocratic setting with portrait, letter tray
Servants’ HallHidden zone — below-stairs access, key rack, coal chute
Front EntranceTransition zone — foggy public entrance
Back AlleyDanger zone — dark, ambush risk, fog chill hazard
Lady AshfordNPC — widow and suspect, eloquence 7, branching interrogation
Constable PikeNPC — law enforcement, grit 6
Mrs CallowayNPC — servant and witness, perception 5
Dock ThugEnemy — aggressive AI, guards territory
Smelling SaltsItem — restores 6 composure
Deduction MasteryProgression tree — keen-eye → silver-tongue / iron-nerves
StatRole
PerceptionNotice clues, detect lies, observe details
EloquencePersuade, interrogate, navigate social encounters
GritPhysical toughness, resist intimidation
ResourceRangeNotes
HP0–30Physical health
Composure0–20Mental fortitude, regens 1/tick

Unique verbs: interrogate (press for information), deduce (draw conclusions from evidence).

  1. Dialogue — The widow interrogation branches based on approach. Pressing her sets the pressed-widow global flag. Asking about keys reveals knows-spare-key.

  2. Cognition — The suspect paranoia presentation rule makes suspects perceive the inspector’s arrival as threatening, influencing NPC behavior.

  3. Environment — The back alley’s fog chill hazard drains composure on entry, creating tension before encounters.

  4. Progression — Defeating enemies awards XP. The deduction mastery tree grants perception, eloquence, and composure boosts.

  5. Districts — Ashford Estate (4 zones, aristocratic) vs The Dockyards (1 zone, dockworker-controlled).

Terminal window
npm install @ai-rpg-engine/starter-detective
import { createGame } from '@ai-rpg-engine/starter-detective';
const engine = createGame(42);