What Ho-Oh 112 means to say is...
Code:
pbTrainerBattle(PBTrainers::trainertype,"trainername",false,0,true)
trainertype = BUGCATCHER or HIKER or LONELYMAN
whatever trainer you are using at that point.
trainername = "Jill" or "Alan" or "Smelly"
whatever name you are giving this trainer
false = double battle (
otherwise true)
0 = If you have so many trainers with same name and type,
I.E. 3 HIKER Bobs, this number would = 0, 1 or 2...
true = whether a player can lose, end the line of code at 0 unless you want the player to lose, in your case, it's sounds as if you can allow the player to lose, so this would be true.
Use a
conditional branch and make sure the box is ticked,
set handling when conditions do not apply.
As Ho-oh said, the higher part is for if you win, the lower would be if you lost... At the end of this event, use
Set Move Route, located on page 2 of the event commands, this is where you will move the character, just remember to change to that character in the drop box... Just underneath set move route is,
Wait For Move's Completion, this will ensure that character does all steps, but, make sure that character goes out the screen by 1 square max, I would say, so the game doesn't cause a silly crash (
or in this case will just stop playing,
not the same as a crash!), then
Control Self Switch: A=On, create a new page with condition
Self Switch A being
On, with no graphic!
Da da daaaa! Congratulations! A working battle with NPC moving plus the event disappearing and you can use this for every NPC if you like.
Maybe you should play around with RPGMaker a while before you begin to get serious, play around with the different options... Check here
(broken link removed)
This explains almost everything with Essentials, but not scripting, that you will have to learn yourself, hope this helps!