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...