So this is Trainer Battles There are alot difrent BUT i only know some few here are they are. ill just not write the whole script because the commands are pretty simple Lets go
Now Lets Cover the commands. Trainerbattle 0x0 is the trainer number ill cover all down below. 0x001 is the trainer Id, in advance trainer or pet. 0x0 again is resered byte. ill recomend you to just use 0x0 because of it is normal. Now trainer number: 0x1 gym leader! 0x3 is for script that continue after the battle. 0x4 is for double trainerbattle. rember you need @2pokemon or more. then just etc. 4 pokemons @4pokemon! 0x5 is for rematch trainerbattle OUTDOOR. Just have some adds on!
The only a few thing special2 0x800D 0x39 is vs seeker. so you can use it. compare 0x800D 0x1 is going down to the next line witch. goes to @pointer rematch. Then just make trainerbattl 0x5 because of rematch. Lets go to the next! 0x7 is 0x5 but its double battle... some edits. First 0x0 is going to be 0x4 then 0x5 is gonna be 0x7. Then last but not least. 0x9 i will use a pickture.
Now lets cover the commands. 0x9 means just 0x3 with losing so pointer @lose does when you lose you can do alot of things with it! Thats is compile it and test it!