CLICK HERE FOR THE DEMO!
This basically works just like games using the D20 system (like Dungeons & Dragons).
You go to an NPC and talk to him while having Z pressed down. If you don't hold Z, then you just talk to him.
CLICK HERE FOR THE DEMO!
Creating variables
Create variable PickpocketRoll (this is a random number determining how good you go each time you pickpocket).
Create variable PickpocketSkill (this is a bonus to the number above).
Creating a "pickpocketable" NPC
Create a common NPC.
Add a conditional branch: If button Z is being pushed.
--->When false, then create a dialogue that will be showing up (normal talking with the NPC).
--->When true, then see the steps below.
Picking pockets
Control variable PickpocketRoll, random (set 1~20).
Control variable PickpocketRoll, add PickpocketSkill to PickpocketRoll.
--->If PickpocketRoll is less than 12, then the attempt is a fail.
--->If PickpocketRoll is equal or greater to 12, then you manage to steal an item
After pickpocketing, never forget to set PickpocketRoll to 0!
I know I'm not good at explaining, there's a playable tutorial/demo below.
CLICK HERE FOR THE DEMO!
P.S.: If the link is dead, send me a PM.