Basics of Scripting
View Single Post
February 10th, 2013 (11:54 AM).
Join Date: Sep 2012
Flags are nothing else than "checkers" in a Pokémon Game.
If someone gives you an item, you set a flag, that he can't give it to you twice, three times, endless.
It works this way..
if 0x1 call @got_it <---- this checks if the flag 0xyour_flag is set. If 0x1 (yes), call a pointer.
giveitem 0xItem 0xAmount 0x0 0x0 0x0
setflag 0xyour_flag <---- Sets a flag. I prefer starting at 0x450 up to 0x7FF and 0x900-0xFFF
Well, if you click the person again, it will automatically jump to @got_it and the script ends.
Attention! You can set every flag only once!
If you set for example setflag 0x500, you can check this flag everytime, to remove it, type
Hope I helped
If you are interested in a german romhacker forum, go to
I'm registered under the name: "Laz0r" there.
Also Known As:
View Public Profile
Send a private message to .parado✗
Visit .parado✗'s homepage!
Find all posts by .parado✗
Find threads started by .parado✗
Ignore Posts by .parado✗