Jump to content

Pick pockets


Taimon

Recommended Posts

Crossposting from http://forums.pocketplane.net/index.php/topic,26419.0.html

 

Pseudocode for pickpockets / steal in store:

pick pockets:
r = rand(1,100)
if (r == 100) pp_fail()
diff = actor->mod_pp_skill - target->mod_pp_skill
if (r >= diff) pp_fail()
if (target->mod_pp_skill == 255) pp_fail()

steal in store:
if ((actor->mod_pp_skill < store_steal_rate)
 or (store_steal_rate == 100))
	diff = 0
else
	diff = actor->mod_pp_skill - store_steal_rate
r = rand(1,100)
if (r > diff) steal_fail()

I assumed this was already known and didn't look further into it.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...