Ill post the tutorial a bit late, when i actually have my computer to do it on. (on my ps3) but you can do al the moves like cut and surf even when no one in your party knows how to do it. How do you fix that?
Edit: Tutorial:
First off, go check trainers.txt; make sure the name has a comma then rebattle number
(Example:
HIKER
Dan,1 <-- means first rebattle)
Then, make sure the battle begin comment has a duplicate, and the number the comment comes in is the speech he will give for that battle, not to mention it is what enables rebattles (iknow, wierd right)
After that, basically just check out the sample event in the demo, to see how exactly rebattles will occur.
Heres a little bit of a key to help you out:
*pbPhoneRegisterBattle(get_character(0),PBTrainers::trainertype,"trainername",numberofbattlestotal) <- use this to register the trainer's phone number
*pbPhoneBattleCount(PBTrainers::trainertype,"trainername")>=rebattlenumber <- This is the conditional that checks the REbattle number, after he challenges you to a rebattle.
*pbPhoneIncrement(PBTrainers::trainertype,"trainername",rebattlenumber) <- Not exactly sure what this does, but it helps check which battle is going to happen.
So theres a "brief" description on how it works, ask me a question and I'll try my best to help you out.