Script triggered when going to jail?

Post » Thu Jun 21, 2012 2:05 am

Hi there,

I'm trying to find the script that is triggered when the player goes to jail, to be more specific, the one that lowers skill progress, but I can't find it anywhere...

Does anyone know where to find this?

Thanks in advance.
User avatar
Naomi Ward
 
Posts: 3450
Joined: Fri Jul 14, 2006 8:37 pm

Post » Wed Jun 20, 2012 3:20 pm

http://www.creationkit.com/Jail_Event, perhaps. Haven't messed with http://SM%20Event%20Node yet.
User avatar
Lauren Graves
 
Posts: 3343
Joined: Fri Aug 04, 2006 6:03 pm

Post » Wed Jun 20, 2012 4:41 pm

http://www.creationkit.com/Jail_Event, perhaps. Haven't messed with http://SM%20Event%20Node yet.

Thanks for the reply. I checked that out but I see nothing. I did also check quests related to Arrest, Jail, etc... with no success.

What I'm trying to find out is how the game handles Skill Progress.

When serving jail time, some skills lose their current progress. This is the code I'm trying to find. I checked the CK Wiki for information on this, but I found nothing... I don't even know if it's possible. I only find functions for handling skill points, but nothing about skill progress.

Now I tried tracking the message box that pops when activating the bed in jail (asking if player wants to serve jail time), but on the CK this Message object reports "Uses: 0", and the bed on jail does nothing special, so it seems this event is called from some other place, possibly with an OnSleep event that checks if the player is in jail, but I'm unable to find anything...
User avatar
suniti
 
Posts: 3176
Joined: Mon Sep 25, 2006 4:22 pm

Post » Wed Jun 20, 2012 8:14 pm

As far as I know all the papyrus functions allow skill progression in only one direction: forward. Which would mean this is not handled via quests and scripts but internally and is hard-coded.
If you want to look the papyrus functions up, they are all part of the http://www.creationkit.com/Game_Script script and are named somethingSkill.
User avatar
Charleigh Anderson
 
Posts: 3398
Joined: Fri Feb 02, 2007 5:17 am

Post » Wed Jun 20, 2012 8:02 pm

As far as I know all the papyrus functions allow skill progression in only one direction: forward. Which would mean this is not handled via quests and scripts but internally and is hard-coded.
If you want to look the papyrus functions up, they are all part of the http://www.creationkit.com/Game_Script script and are named somethingSkill.

This is what I was afraid of, and makes some sense...

I tried extracting the BSA to find things easier, and I got a script called "jailbedscript". Inside it, a comment says "hopefully temp script to serve jail time", and this script prompts the Message I mentioned before, and if agreed, calls a function "serveTime()". Here I lost all track, and couldn't find that function anywhere.

So possibly this is just deprecated, and this is why the Message object has "0" uses.

Anyway I don't understand why hard-code stuff, having a tool like papyrus, and keeping in mind that this is somehow disallowing players to edit how a feature behaves...
User avatar
Rhiannon Jones
 
Posts: 3423
Joined: Thu Sep 21, 2006 3:18 pm

Post » Wed Jun 20, 2012 1:03 pm

I can point you to http://www.creationkit.com/ServeTime_-_Game but it's still hard-coded (or native).
User avatar
Jade
 
Posts: 3520
Joined: Mon Jul 10, 2006 6:42 am

Post » Wed Jun 20, 2012 9:12 pm

I can point you to http://www.creationkit.com/ServeTime_-_Game but it's still hard-coded (or native).

It's good this function wasn't a wolf.. because I checked the Game Script several times and missed it :biggrin:

Thanks for the reply. It isn't the answer I wanted to read, but at least I know for sure that I can't change skill progress via Papyrus.
User avatar
Emily Jeffs
 
Posts: 3335
Joined: Thu Nov 02, 2006 10:27 pm


Return to V - Skyrim