Script Help Thread (DO NOT REQUEST SCRIPTS)
View Single Post
February 27th, 2013 (6:32 AM).
Quote originally posted by
Umm FBI, trainer flags work backwards. They are cleared when you beat them. Another name for settrainerflag is enabletrainer. They are interchangeable names for the same command. Same goes for cleartrainerflag, its other optional name is disabletrainer.
I know that the commands themselves work that way, but the settrainerflag 0x0 command may be equivalent to a standard clearflag 0x500 (trainer flags are just regular flags starting at 500 if I remember correctly) so there is a chance that the main names for the commands are misleading. The only way to really tell would be to take a clean rom and right off the bat, checkflag 0x500 and see what it holds.
Proof- I wrote a working script to make every trainer in the game ready to battle again. It didn't work when I logically used cleartrainerflag, so when I switched to setrainerflag, everybody wanted to battle again.
Edit: Comrade likes your Signiture.
View original post
Derp, I always forget some detail. :D
You are right about the trainer flags, they do work differently (and in my opinion they should be named in script editors more consistently with other flags). The script should still work if you remove settrainerflag (you don't have to remove settrainerflag but it's a pointless command using up space, where it is right now) and change this part:
It's often easy to confuse/generalize on commands that appear to work in the same fashion. Sorry for any confusion last post caused.
I'm glad comrade likes my signature, I was originally going to leave it under maintenance forever :P
YT Random Hacks
ASM Resource Thread
Joined Jan 2013
Also Known As:
Battle Server Name:
Definitely not FBI
View Public Profile
Send a private message to FBI
Find all posts by FBI
Find threads started by FBI
Ignore Posts by FBI