- a judge, who will list all the crime reports
- a courtroom, where this judge shall be
- a dungeon room
- guards that will (attempt to) carry out punishment on crime doers
- witnesses who can report crimes
The last point is quite important. If all your mobs are sentinel, with only one mob per room, it is very likely that the crimes will never be reported. Mobs who report crimes will have to walk to the courtroom to see the judge, so they need a clear path to this room (they can open closed, non-locked doors though).
In the first part of the area file, you should have a block like the following one.
Code: Select all
#JUSTICE
CourtRoom 4081
Dungeon 4085
Judge 4070
Crime CRIME_HIGH_MURDER PUNISHMENT_DEATH
Crime CRIME_LOW_MURDER PUNISHMENT_SEVER
Crime CRIME_ASSAULT PUNISHMENT_JAIL
Crime CRIME_MUGGING PUNISHMENT_RANDOM_ITEM
$
The available sentences are the following ones:
PUNISHMENT_NOT_ENFORCED (no punishment)
PUNISHMENT_DEATH (death)
PUNISHMENT_RANDOM_ITEM (random item is confiscated)
PUNISHMENT_SEVER (random limb is severed)
PUNISHMENT_JAIL (1 hour real time in the dungeon room)
PUNISHMENT_EXILE (NOT CODED yet)
Setting a mob as a guard is done in the #SPECIAL section of the area file.
Code: Select all
#SPECIALS
M 16201 spec_guard
M 16202 spec_guard
S