Pickpocket formulas

Discuss Daggerfall Unity and Daggerfall Tools for Unity.
Post Reply
L57
Posts: 227
Joined: Tue Dec 31, 2019 7:53 pm
Location: Moscow, Russia

Pickpocket formulas

Post by L57 »

What is the formula for the chance to pickpocket and to steal (or fail to steal) items in the stores? The question is both about Daggerfall and DFU.

Regarding vanilla Daggerfall UESP points to strange formula which implies that chance to steal item depends positively on the weight and value. :| https://en.uesp.net/wiki/Daggerfall:Pickpocket

There is a formula from DF Chronicles, which looks like that: chance caught = (100 - pickpocket) + store level + total weight + number items. Bounded by 5% min and 95% max. Which one is correct, if any?

User avatar
Jay_H
Posts: 4061
Joined: Tue Aug 25, 2015 1:54 am
Contact:

Re: Pickpocket formulas

Post by Jay_H »

I'm not good with C# or math, so if you can figure out the formula, it's here :) https://github.com/Interkarma/daggerfal ... er.cs#L260

User avatar
Ralzar
Posts: 2211
Joined: Mon Oct 07, 2019 4:11 pm
Location: Norway

Re: Pickpocket formulas

Post by Ralzar »

Jay_H wrote: Wed Jan 08, 2020 9:39 pm I'm not good with C# or math, so if you can figure out the formula, it's here :) https://github.com/Interkarma/daggerfal ... er.cs#L260

Code: Select all

                 // Calculate chance of being caught shoplifting items
         int chance = 100 - player.Skills.GetLiveSkillValue(DFCareer.Skills.Pickpocket);
            chance += shopQuality + weightAndNumItems;
            return Mathf.Clamp(chance, 5, 95);
Which, as far as I can tell, matches the calculation in the OP:
chance caught = (100 - pickpocket) + store level + total weight + number items. Bounded by 5% min and 95% max.

L57
Posts: 227
Joined: Tue Dec 31, 2019 7:53 pm
Location: Moscow, Russia

Re: Pickpocket formulas

Post by L57 »

Now it's clear, thanks!

Post Reply