Accusation script please?

Post » Sat May 28, 2011 2:15 am

I'm working on a mod that brings a court system to morrowind. The problem is that I can't find a way to find out what crime the player commited since there is nothing built in to detect it. I think however that possibly it could be done through a script. Here is the original topic about this on the pes forums http://forumplanet.gamespy.com/morrowind_mod_ideas/b49691/20286711/r20463235/. Here is the topic that has lots of good info on the crime system: http://www.gamesas.com/index.php?/topic/1104989-morrowind-crime-recognition/

User avatar
ijohnnny
 
Posts: 3412
Joined: Sun Oct 22, 2006 12:15 am

Post » Sat May 28, 2011 7:46 am

Assuming that every crime in Morrowind has a distinct bounty value, you could do some sort of check to see when the player's crime level increases and have a variable for each type of crime (like the "counts" of each crime). Every time the player commits a crime, you add 1 to whatever variable based on the value of the bounty increment... that idea sounds a bit cumbersome, but I think it would at least work, and you could improve your design from that.
User avatar
CHANONE
 
Posts: 3377
Joined: Fri Mar 30, 2007 10:04 am

Post » Sat May 28, 2011 4:17 am

Assuming that every crime in Morrowind has a distinct bounty value, you could do some sort of check to see when the player's crime level increases and have a variable for each type of crime (like the "counts" of each crime). Every time the player commits a crime, you add 1 to whatever variable based on the value of the bounty increment... that idea sounds a bit cumbersome, but I think it would at least work, and you could improve your design from that.

The problem is that only the most basic scripts aren't over my head. That's why I'm asking if someone could write it. I've tried and I just can't get it...
User avatar
Chantelle Walker
 
Posts: 3385
Joined: Mon Oct 16, 2006 5:56 am

Post » Sat May 28, 2011 5:50 am

I'm not certain basing the crime on the fine will work out... for instance, I believe that assaulting a guard gets a fine of 40 gold. Fines on theft are based on the value of the item stolen, so if you stole an item worth 40 gold it wouldn't be distinguished fron the assault charge.

At least, that's how I think it would work out, eh? :)
User avatar
Rudi Carter
 
Posts: 3365
Joined: Fri Sep 01, 2006 11:09 pm

Post » Sat May 28, 2011 1:29 am

I'm not certain basing the crime on the fine will work out... for instance, I believe that assaulting a guard gets a fine of 40 gold. Fines on theft are based on the value of the item stolen, so if you stole an item worth 40 gold it wouldn't be distinguished fron the assault charge.

At least, that's how I think it would work out, eh? :)

Actually if you follow the link to the gamesas forum topic in the original post then it will take you to one I started a while back where someone did some research and found out that there are several other things included with that happening, including a decrease in the disposition of people around you.
User avatar
Dalton Greynolds
 
Posts: 3476
Joined: Thu Oct 18, 2007 5:12 pm

Post » Sat May 28, 2011 5:19 am

Sure, other things are affected, but trying to sort those out to differentiate crimes would be really difficult for ordinary scripting. Perhaps if you could get someone like Hrnchmd interested, they could check to see how the game engine sorts it out.

The problem from the scripting point of view is that all of these effects like lowering disposition can have more than one cause.
User avatar
Silencio
 
Posts: 3442
Joined: Sun Mar 18, 2007 11:30 pm

Post » Sat May 28, 2011 6:23 am

Yeah, that's true. I had someone on the PES forums trying to write one and he couldn't get it to work and it was probably because of that. Just a thought, but those things don't change every second do they? If they don't then could it be made where if several things were detected at the same time in the same cell it would register a crime, not just one thing?
User avatar
Andrew
 
Posts: 3521
Joined: Tue May 08, 2007 1:44 am


Return to III - Morrowind