Hi there! This is my first post, I'm pretty sure I chose the right section, if not, I'm really sorry.
I managed to create a script which lets the main character steal gold or items from NPCs, This is the common event:
so I would only assign each NPC an "attention level" value, and then call the event, choosing what item to give if switch[9] is on, the main problem is that it looks a bit to heavy (Considering I would have to add all of this to every NPC event):
I'm sure it could be simpler, but I can't figure it out >_> . Is there a way to transform that in a simple: set v[12] and reward, call common event? (those text messages don't change from Npc to Npc) I'm grateful for any help!
I managed to create a script which lets the main character steal gold or items from NPCs, This is the common event:
$game_variables[1] = rand($game_variables[12]) - $game_party.leader.agiif $game_variables[1] < 0$game_switches[9] = trueendif $game_variables[1] > $game_variables[12]/2$game_switches[10] = trueend where v[12] is "attention level", switch[9] checks if you stole something, and switch[10] checks if you got caught