How to create a justice system?

For builders to discuss and ask building questions.
Post Reply
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

How to create a justice system?

Post by Dalvyn » Wed Aug 06, 2003 12:12 pm

For a complete justice system, you need five things:
- 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 
$
It lists the room vnum for the courtroom, the room vnum for the dungeon, and the mob vnum for the judge. It also lists the punishment associated to the four types of crime: CRIME_HIGH_MURDER is murdering another PC, CRIME_LOW_MURDER is killing a mob, CRIME_ASSAULT is attacking (but not killing) a PC/mob, and CRIME_MUGGING is a failed pickpocket attempt.

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
Mask
Staff
Staff
Posts: 2649
Joined: Tue Jul 15, 2003 9:21 pm

Walking mobs

Post by Mask » Thu Aug 07, 2003 6:48 am

Do not open closed, unlocked doors...
Caius
Sword Novice
Sword Novice
Posts: 31
Joined: Mon Aug 04, 2003 5:53 pm
Location: Waterdeep
Contact:

Post by Caius » Thu Aug 07, 2003 6:20 pm

I noticed there is also a PUNISHMENT_MAX in FKBIT.LST for the area checker.
Mask
Staff
Staff
Posts: 2649
Joined: Tue Jul 15, 2003 9:21 pm

Post by Mask » Fri Aug 08, 2003 1:49 am

Yes, mobs will not open closed, unlocked doors when doing justice system stuff.

What Sharon said about MAX_ is right.

As far as I remember, Exile is coded, but it isn't meant to be used as a punishment for normal crimes, only as an RP tool.
I'd have to check how finished it is though.
User avatar
Andreas
Sword Grand Master
Sword Grand Master
Posts: 720
Joined: Fri Aug 01, 2003 4:55 am
Location: Mobile, Alabama
Contact:

Justice Code

Post by Andreas » Thu Jan 08, 2004 8:40 pm

What is it and how does it work?

#JUSTICE
CourtRoom 0
Dungeon 0
Judge 0
Crime CRIME_HIGH_MURDER PUNISHMENT_NOT_ENFORCED
Crime CRIME_LOW_MURDER PUNISHMENT_NOT_ENFORCED
Crime CRIME_ASSAULT PUNISHMENT_NOT_ENFORCED
Crime CRIME_MUGGING PUNISHMENT_NOT_ENFORCED
$
Helm keep thee.
Post Reply