Okay, actually I haven't used trainerbattle yet (just converted from pokescript to XSE) but I'll do the best I can. To my knowledge the first parameter is the battle type, I think you know both of them. (Regular and continuing) The second one is of course the trainer ID, what is the trainer ID? To know you have to use wither PET or A-Trainer. (I prefer A-Trainer) Here you open up your ROM (using A-Trainer) and there are a lot of numbers in hex, these are trainer ID's. If you scoll down you'll see some have names and others don't. The nameless ones are free ones. By selecting one you're free to do anything, edit the sprite, name, music, money, and Pokemon. You should be able to figure out how to work the program without my explaining. Make sure to use the ID that your trainer is on in A-Trainer in your script. There isn't much I know on the thrid parameter so just keep it 0x0. Hopefully you know how to make people trainers and I hope that I managed to help you.