Checktrainerflag cleartrainerflag and settrainerflag is good! Kinda not useless!We've got three commands here, all #raw's. First is checktrainerflag. Second is cleartrainerflag. Last is is settrainerflag. All three commands are set out in the same way: [command] [PET ID] or Advancetrainer For all three examples, I'm going to use the trainer "Leader Brock", with a trainer ID of 0x19E. in Pet i have not checked it in a-trainer. Now let's work with checktrainerflag. Since we're checking for something, the answer or result is going to have to be stored somewhere. Like most commands, the result is stored into 0x800D. Here's an example: Code: checktrainerflag 0x19E compare 0x800D 0x1 if 0x1 goto @alreadybattled
Pretty straightforward, isn't it? It's simply followed by the compare and if statements. If you thought this was easy, the next two are even easier. Here's cleartrainerflag. Again, we'll be using Brock for the example: Code: cleartrainerflag 0x19E
That's it. If were supposed to battle Brock, we couldn't battle him anymore. The trainerbattle is disabled. But if we want to re-enable the trainerbattle what command do we use? settrainerflag! I'm still using Brock. Code: settrainerflag 0x19E
The trainerbattle 0x19E has now been re-enabled. Cool Huh? Then compile it and end it!