Characters
A character in Crime Engine is assembled from several sources rather than defined in one. There is a row that makes them searchable, a dossier the player can read, and the authored text that gives them a voice — and the engine deliberately keeps these apart, because they are seen by different audiences. For the practice of writing one, see Authoring a Character; this page is about what a character is to the engine.
1. The population row
The row is the character's structural facts, and it is the only part that is tabular:
| Field | Meaning |
|---|---|
Id |
the identity everything else is keyed by; must match every authored file exactly |
Name |
the display name |
Gender, Age, Occupation |
basic profile facts, printed into the prompt |
BringCostDays |
days spent to summon them to the station; see below |
IsDead |
the victim, and anyone else past interviewing |
IsVisible |
whether they are in the police database |
Keywords |
free text, separated by semicolons, for search only |
The display line a player sees in lists is the name and the occupation together. Search matches across name, occupation, age, gender, summoning cost, alive-or-dead and keywords — notably not the id, so an internal identifier never leaks into search results.
Blood type is not a row field. It lives in the character's dossier, which is Markdown, and it becomes searchable because search falls through to the dossier text. That is what makes typing a blood type into the database search work, and it is a good illustration of the division: structural things are columns, readable things are documents, and search spans both.
2. Summoning and visibility
BringCostDays has three meanings rather than two, and the distinction matters when authoring:
- zero — free, available today. No confirmation is shown, deliberately: a confirmation that always says this is free teaches a player to dismiss confirmations.
- positive — that many days are spent to bring them in, with a confirmation naming the cost.
- negative — never. The person cannot be summoned at all and must be found physically. In Case 1 the organiser of the murder is the untraceable one, which is a large part of what makes the case hard.
Somebody already at the station, the player character, and the dead are all refused, each with its own player-facing reason.
IsVisible is about the database, not the world. An invisible person is absent from the searchable police directory but can still be placed on the map — the homeless man in the alleyway is in the case, just not on file. That is why the engine carries a population service and a directory separately: the directory is the filtered, player-searchable view, and the population is everyone.
3. The character the model plays
For a conversation the engine assembles a character from the row plus the authored files: a descriptive feature, a dossier summary, an appearance and a personality. That becomes a character definition — a flat record of id, name, gender, age, occupation, summary, feature, appearance and personality — which is what the prompt builder sees. Built with no profile database at all, a character still has a name and an occupation, so a case with no authored text runs rather than crashing.
Birth year is derived from age against the case's year rather than stored, which keeps one fewer fact to contradict.
4. Finding somebody
The player meets a character one of three ways, and all three are authored differently:
| Route | Authored as | Cost |
|---|---|---|
| Placed at a location | a people discovery on that location, optionally restricted to certain hours | free |
| Part of the crowd | a crowd rule on the location: everyone, or a named subset, by day or by night | free |
| Summoned to the station | a positive BringCostDays in the row |
that many days |
The crowd is the one chance element in an otherwise deterministic case: passers-by are drawn from the session's seeded random source, so the same seed gives the same crowd. The pool is filtered so that the dead and the untraceable never turn up as passers-by, and so that somebody currently at the police station is not simultaneously on the street. A location given no crowd rule gets a daytime crowd by default; an explicitly empty rule makes it deserted.
5. Greetings
A character can have an authored greeting, optionally specific to a location, with a character-wide fallback. Greetings cost no questions — they are the engine speaking for the character, not a model turn, which is why they can afford to hint at something the player might ask for next.
See also
- Authoring a Character: the files, and the practice
- Locations and travel: where and when a character is
- Knowledge and retrieval: what the character remembers