- Joined
- Jan 20, 2016
- Messages
- 3
- Reaction score
- 0
- First Language
- English
- Primarily Uses
Hello, first post here. Just looking for some feedback on my weird setup for picking pockets.
I wrote it out in some funky pseudocode so I hope it's readable. If you can think of anyway I can improve this, it would be great. So far I just have it set up for a random gold amount on success and after many failed attempts, you have to pay a fine. You can only pick a person's pocket once. Unless self switches don't work how I think they do.
Here it goes.
pickpocketswitch //Skill used by thief character that calls this common event.
{
"Start picking picking pockets?"
Yes/no
If yes
set pickpockettoggle switch to ON
"Everyone you meet is a target."
If no
"Let's just talk to them for now."
end
}
pickpocketskill // When talking to npc with skill on.
{
if pickpockettoggle is ON
"Pick this pocket?"
Yes/no
When Yes
set pickpocketsuccess = random(1 - 10)
set goldamount = random(5 - 1000)
IF pickpocketsuccess >= 7
Change gold + &goldamount
"You stole &goldamount gold!"
ELSE
"Hey! get out of there!"
"I'm reporting you!"
guards += 1
IF guards = 5
"Halt thief! You have been caught pick
pocketing. You must pay the fine. "
Change gold - 1500
"You've paid 1500G"
set guards to 0
When No
"Decided not to, better stop pick pocketing"
End
}
On NPCs
---------
IF pickpockettoggle is ON
call common event pickpocketskill
IF pickpocketsuccess >= 7
set selfswitch A to ON
end
ELSE
// Insert NPC dialogue on here and page 2 with switch A on.
End
Thanks for getting this far.
I wrote it out in some funky pseudocode so I hope it's readable. If you can think of anyway I can improve this, it would be great. So far I just have it set up for a random gold amount on success and after many failed attempts, you have to pay a fine. You can only pick a person's pocket once. Unless self switches don't work how I think they do.
Here it goes.
pickpocketswitch //Skill used by thief character that calls this common event.
{
"Start picking picking pockets?"
Yes/no
If yes
set pickpockettoggle switch to ON
"Everyone you meet is a target."
If no
"Let's just talk to them for now."
end
}
pickpocketskill // When talking to npc with skill on.
{
if pickpockettoggle is ON
"Pick this pocket?"
Yes/no
When Yes
set pickpocketsuccess = random(1 - 10)
set goldamount = random(5 - 1000)
IF pickpocketsuccess >= 7
Change gold + &goldamount
"You stole &goldamount gold!"
ELSE
"Hey! get out of there!"
"I'm reporting you!"
guards += 1
IF guards = 5
"Halt thief! You have been caught pick
pocketing. You must pay the fine. "
Change gold - 1500
"You've paid 1500G"
set guards to 0
When No
"Decided not to, better stop pick pocketing"
End
}
On NPCs
---------
IF pickpockettoggle is ON
call common event pickpocketskill
IF pickpocketsuccess >= 7
set selfswitch A to ON
end
ELSE
// Insert NPC dialogue on here and page 2 with switch A on.
End
Thanks for getting this far.

