Research:Security and Crime

Pickpocketing
Pickpocketing is a multi-stage process. Not all items in the NPC's inventory are available, depending on the initial rolls. There are checks on a steal attempt, and when the window is closed.

On closing the pickpocket window
Same calculation as taking an item, but with valueTerm = 0.

Comments
The stealing process is highly broken for most items; any item or stack of items worth over 100 septims has such a negative result that it is picked at minimum chance, and this is at maximum all stats. A player with stats around 50 is picking at minimum for anything valuable. The available items window is not reset after every successful steal, only when you close the window and retry the pickpocket.

Bounties
Trespass includes activating, picking, and using Open magic on an owned door. Normal faction ownership rules apply.

Comments
Note that the crime level that prompts the "death warrant" dialogue from the guards (5000 gold) is coded through dialogue conditions, not here.

Thieves Guild reductions
Interacts with dialogue through global script variables, which are set every time the player enters dialogue with an NPC.

CrimeGoldDiscount

CrimeGoldTurnIn

PCHasCrimeGold

PCHasGoldDiscount

PCHasTurnIn

Prison
Prison time is proportional to the bounty. Skills can be lost during time spent in prison, except Security which can improve.