A case file for your detective game in Ren'Py 8: an evidence board, a timeline and a notebook, a cross-examination screen where players present evidence against a statement, and a final deduction that asks who, how and why. Copy mystery_kit into your game folder, set up your case in init and write $ md.find("ticket").
Show full description...
Try the free Ren'Py Mystery Kit Lite first; it has the case file and the notebook. The full kit is also in the Ren'Py VN Complete Toolkit (32 kits for $14.99), the Horror Game Dev Bundle (22 packs for $14.99) and the Everything Bundle (every paid asset for $35). To see it in a finished game, play Lantern Street in your browser, built with the Ren'Py Complete VN Template. Need locks and puzzles between the questioning? The Ren'Py Minigame Pack works in the same project.
What is inside
- Case database: md.evidence(), md.person() and md.place() make cards with name, text, icon and colour; md.clue() for notebook entries, md.event("last_ferry", "22:40", ...) for moments on the timeline. Each card is an MDCard object; subclass it for cards with their own behaviour.
- Evidence board with red threads: every found card hangs on a cork board. The player clicks a card, then the card it belongs with: md.link("ticket", "pier", event="last_ferry") pins a red thread and hands out a clue, new cards or a moment on the timeline. A wrong pair only gives a note and is counted.
- Testimony with contradictions: md.testimony() with statements, Press for more and Present evidence, Ace Attorney style. The right card on the right statement catches the lie; hearts limit wrong presents per round (lives=3). $ md.cross_examine("ward_story") runs the whole scene.
- Case file: tabs for the board, evidence, people and places (with a detail page), the timeline and the notebook, with numbers for new entries. Stamps such as Suspect, Cleared or Charged on people.
- Point and click: $ it = md.present("Show her what?") opens the case file and returns the card the player picked.
- Timeline: moments sort themselves by HH:MM, other labels take order=.
- Final deduction: sentences with a gap ("The ledger was taken by ___."), filled from the found cards or from your own choices; md.deduce("final") checks them, says how many are right and solves the case.
- Pop-ups: "New clue", "Evidence added", "New person", "New place", "Timeline updated", "Thread pinned", "Contradiction", "Case solved", as a small paper note with tape.
- Drawn by code: cork and paper textures, polaroid cards, pins, threads, stamps and 16 card icons, all tinted at runtime; a card without an icon gets a placeholder tile with its first letter.
- Two styles: Cork (light) and Noir (dark), switchable while playing with MDSetTheme("noir").
- Demo project: the Gull Street ledger: search an office, ask a witness, pin threads, catch a lie about the last ferry and name the thief, two endings, plus a short tour of the kit. No assets from anyone else.
Save- and rollback-safe
Everything that changes while playing lives in nine Ren'Py default variables, so saves, loads and rollback keep found cards, threads, clues, stamps, testimony and deduction exactly right. Only ids are saved, never the card objects, so saves stay small and keep working when you change a card's text later. A typo in a card, clue or link stops the game with a clear message instead of failing quietly.
Fits every resolution
The case file is laid out once and zoomed: at 1280x720, 1920x1080 and 2560x1440 it covers the same share of the screen, with no numbers to change.
Works with your project
Every name starts with md, no standard screen is replaced and no label is defined, so the kit runs next to any GUI kit, your own screens and other packs. Need items and quests too? The Ren'Py Inventory & Quest Journal works in the same project.
Requirements
Ren'Py 8.1 or newer with the default renderer. No shaders, so it runs everywhere Ren'Py runs, including Android, iOS and the web. Tested in Ren'Py 8.5.3: the kit and the demo pass Ren'Py's lint, also in one project together with eight other packs, at 1280x720 and 1920x1080, and saving, loading and rollback were checked inside the engine.
Known limits
- Threads are pinned by clicking two cards, not by dragging; this works the same with mouse, touch and keyboard
- The board shows up to 20 cards in its own order of spots; give a card pos= to hang it yourself
- One pop-up at a time; a newer one replaces the older
License
Use the files in any number of your own games, commercial or free. Change them as you like. Do not resell or share the files as an asset. Full text in LICENSE.txt.