So in my game, one of the possible class choices is a thief. I've been looking around for a script for stealing things, and I've found a few things, but not the one I want. Most seem to be scripts for stealing things from your enemy mid battle. I want the player to be able to walk up to any npc and be able to pickpocket them. Nothing huge, maybe just a few gold coins or something. Is there anything like that available?
Pickpocket Script?
RPG Maker VXAce SupportYou don't need a script for that (and if you did, you should post in the Script Requests forum).
Just add a condition to every NPC event to say if X (the pickpocket) is in the party, take some money from the NPC. If you want to give the player a random chance - say 1 in 5 of successfully taking something (which would be better than just giving them something every time, as if they got something EVERY time they'd just sit there gold farming and wouldn't have to work to make money), do something like this:
If you don't want to change what can be stolen from each NPC, put all of that into a Common Event (don't set it to parallel or automatic and don't give it a switch), and instead, at the start of each NPC event page, do a Call Common Event and choose the pickpocket event. That means, if you want to change anything, you've just got to do it in one place instead of revisit every single event.
Just add a condition to every NPC event to say if X (the pickpocket) is in the party, take some money from the NPC. If you want to give the player a random chance - say 1 in 5 of successfully taking something (which would be better than just giving them something every time, as if they got something EVERY time they'd just sit there gold farming and wouldn't have to work to make money), do something like this:
Code:
Conditional Branch: X (Pickpocket) is in the party Control Variables [0001: Steal Chance] = Random Number 1-10 Conditional Branch: Variable [0001: Steal Chance] = 1 add the stuff you stole, and a message box Else add a message box to say nothing was stolen (though this could get annoying, so you could just leave out the Else part altogether) Branch EndBranch Endnow do the regular NPC stuff that you'd normally have here
hm.... that could work. But would adding that to every npc slow down the game? Like overloading it, I guess?
Not if they're triggered by Action Button.
Cool. Thanks for your help 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/pickpocket-script.25252/