So my rom has a PickPocketing system in place right now that resets the potential victims every time you earn a badge or beat the E4 (not that the game is far enough in development for you to get to that point).
Basically when Pickpocketing someone, there are 4 possible outcomes: you get an item, you get money, you miss or you're caught and they battle you.
Once you're caught they cannot be battled again until their trainerflag is cleared.
Basically I want the game to clear certain trainerflags after I step a certain amount of times. (kinda like the VS. Seeker).
What I'm wondering, is if there is some sort of value that I can compare when starting a script that will determine if a certain amount of steps were taken since the last time I had interacted with said script.
This would be greatly helpful as I plan on adding a mining system that will have a similar method of re spawning resources.
example of what I'm looking for:
comparevar 0xSTEPS 0x(amount of steps since last interaction)
if 0x4(greater than or equal to)
goto @PICKPOCKETINGSCRIPT
msgbox @CANTPICKPOCKET 0x6
release
end
#org @PICKPOCKTINGSCRIPT
cleartrainerflag 0x(whichevertrainer)
......insert script here......
or even if there is some way for me to force the game to check steps and cleartrainerflags/flags manually. I'll take what I can get.
Basically when Pickpocketing someone, there are 4 possible outcomes: you get an item, you get money, you miss or you're caught and they battle you.
Once you're caught they cannot be battled again until their trainerflag is cleared.
Basically I want the game to clear certain trainerflags after I step a certain amount of times. (kinda like the VS. Seeker).
What I'm wondering, is if there is some sort of value that I can compare when starting a script that will determine if a certain amount of steps were taken since the last time I had interacted with said script.
This would be greatly helpful as I plan on adding a mining system that will have a similar method of re spawning resources.
example of what I'm looking for:
comparevar 0xSTEPS 0x(amount of steps since last interaction)
if 0x4(greater than or equal to)
goto @PICKPOCKETINGSCRIPT
msgbox @CANTPICKPOCKET 0x6
release
end
#org @PICKPOCKTINGSCRIPT
cleartrainerflag 0x(whichevertrainer)
......insert script here......
or even if there is some way for me to force the game to check steps and cleartrainerflags/flags manually. I'll take what I can get.