Build a detective case with cases, clues and words
The case: you're writing a deduction game. In each case the player searches a scene, finds clues, and reads words off them that they later slot into their own account of what happened. Your first case is The Drowned Keeper: a lighthouse keeper found drowned at dawn. The player finds a Stopped pocket watch, a Torn letter and an Empty oil can, and each one gives up a word or two, like midnight or Harbourmaster Crane. You want to see the whole case at a glance and check that every clue gives the player something to work with.
The Drowned Keeper (case)
├── Stopped pocket watch → high tide, midnight
├── Torn letter → Harbourmaster Crane, unpaid debt
└── Empty oil can → sabotage, Harbourmaster Crane
The short answer: make three templates, Case, Clue and Word, and two relation types with the Hierarchy shape: Case / Clue and Clue / Word. Then build the case in the Tree tab of Relations with the + under each card, or from each document's Relations block with Add relation. Both write the same relations, so you can switch between them at any time.

1. Make the templates
Templates give each kind of document its own icon and fields, and they let the relation types below accept only the right kind of document.
- Open any document, click the template menu at the top left (it says Document) and choose Manage templates.
- On the Templates tab, click New template and choose Blank template. Type Case and click Create.
- Click the icon next to the template's name and pick one, for example the skull. Click Save.
- Do the same for Clue (a key) and Word (a feather).

Add fields to them now or later, for example a Location on clues or a Solution on cases. See Give a character a race from your lore for how fields and templates work together.
2. Make the two relation types
- Open Relations from the menu at the top, next to your world's name, and click Relation types at the top right.
- Click New type. For Side A, type Case. For Side B, type Clue.
- Set Shape to Hierarchy. That's what puts cases above clues in the tree.
- Under Between, open the first list and tick Case, then open the second and tick Clue.
- Pick a colour on the left and click Create.
- Click New type again and make Clue / Word the same way: Hierarchy, Clue on the first side, Word on the second.

Reads as under the table spells out the selected type. The side names also become the group headings on document pages: a case lists its Clues, a clue its Words and Cases, a word its Clues.
The Between lists do two jobs: LoreHub only offers documents with the right template when you link, and a document you create from a relation gets that template on its own.
3. Build the case in the Tree view
This is the quickest way to lay out a whole case.
- Make the case document if you don't have one: Documents → New Document, name it The Drowned Keeper, pick Case in Template and click Save.
- In Relations, open the Tree tab. Click Add type and pick Case — Clue, then Add type again for Clue — Word. Both are drawn in the same tree, each in its own colour.
- Click Root and pick The Drowned Keeper. The tree starts from the case.
- Click the + under the case's card. Add child to The Drowned Keeper opens.
- Type Stopped pocket watch and choose Create "Stopped pocket watch"…. To link a document you already have, pick it from the list instead.

- New Document opens with Clue already chosen in Template, because it's the only template the type allows under a case. Click Save.

- The clue appears under the case, on a line labelled Clue. Add the Torn letter the same way.
- Click the Stopped pocket watch card, then the + under it. Now the child is a word: create midnight and high tide. Do the same for the letter.
When a card is selected, the panel on the right shows Children of that document, grouped by relation type. Use the + next to a group to add another child, the unlink icon to take one out (both documents stay), and Rename to fix a name. Open takes you to the document's page, and Focus here makes it the root.

To keep a big case readable, click Collapse under a card to fold its branch; the pill then shows how many documents are hidden. Relations in this tree at the bottom right says which colour is which type. The address in your browser keeps the types, root and selection, so you can bookmark a case or send the link to a co-writer.
4. Or build it from the document pages
When you're writing a clue's description and think of a new word, add it right there.
- Open the clue, for example Empty oil can. Its Relations block is in the side column.
- Click Add relation. The sentence starts with Empty oil can is.
- Type Clue and pick the Clue with Clue — Word under it. (The other Clue, from Case — Clue, is the one a clue plays for its case.)

- Type the word. Pick an existing word from the list, or choose Create "…" as a new document: it's created as a Word straight away.
- Click Add. The box stays open with Clue kept, so you can add the next word right away.

A word can belong to more than one clue. Here both the letter and the oil can point to Harbourmaster Crane; in the tree that word sits under one clue, with a dashed line to the other.
5. Read the case from its page
Open The Drowned Keeper. Its Relations block lists the Clues, with the number of other relations each one has. Click the arrow before a clue to see its words without leaving the page, and click any name to open it.

To get back to the tree, click … next to the Clues heading and choose Show in tree. The tree opens with this case as the root. Click Add type there to bring the words back in.

Check the case
Open the tree with both types and the case as root, and look for:
- a clue with no words under it: the player finds it, but learns nothing;
- a word with no clue: the player could never find it;
- a word under the wrong clue: unlink it in the panel on the right, then add it under the right one.
The count at the top right, like 9 of 9 documents, tells you whether anything is folded away.
Variations
- Several cases: set Root to All. Every case without a parent becomes its own tree, side by side.
- Suspects and people: add a Character template and a Case / Suspect type with the Hierarchy shape, then add it to the tree next to the clues.
- Links that aren't a hierarchy: for Ally or Rival between suspects, make a Mutual type. In the tree, choose it in Side links to draw it between the cards too.
- Fields on a word: a Document list field can hold the words a deduction needs. See Give a character a race from your lore.
In your game
Relations go to relations.json at the top of your Game Sync folder. Each type is there with its export key (case_clue, clue_word), and each relation with from (the case or clue) and to (the clue or word), so your game can rebuild the same tree. See Relations v1.
Did this answer your question?
More in Worldbuilder
Still need help?
Can't find what you're looking for? Ask us, we read every question.