Alright, so I have the basic understanding of trainer battles, how to make them, how to edit them, and where to place them and use scripts for them.
How ever, when I call upon a trainer battle after some dialog is said, when I test it and the player interacts with the trainer, it goes straight to the Comment: Battle: and skips all the dialog and movement scripts before hand.
Is there a way to call upon a trainer battle in/after dialog? Example:
Trainer: Hey whats up?
Player: Nothing much you?
Trainer: You insulted my family!
*Trainer battle* (Note: just an example)
*straight to trainer battle*
lol Please and thank you! I'm sorry if this is a noob question. I have tried searching for this on the web to no avail.
I've tried doing this, and I've compared it to the example given in the PKMN Essentials kit: Brock is a dialogue before battle NPC, so I copied the layout of it, edited Trainer info into PBS files, and it doesn't work for some reason.
Note that in Debug->Test Battle, the NEW TRAINER works, which makes me believe that I have done something wrong in the Event Box.
joey645: Read up on trainers some more, and have a look at some other trainers in the example maps. In particular, learn what the trainer comments actually do, and why they should be deleted (after compiling the game then closing/opening RMXP) if you want to make any changes to a trainer.
Yusshin: The one event page you've showed us looks fine to me, although I don't know whether it should be Parallel Process (try Autorun), and I don't know what the other pages look like so I can't comment any further.
The other event page is exactly the same, only translated in French. Then there's the "A" switch page (Autorun) which continues dialogue after the battle, and a "B" page to turn everything off.
The event auto-changed into a Trainer Battle since my post, so I can't post another pic because it auto-erased.
If I do Autorun, the game produces a black screen (and the error still occurs regardless). In this specific scenario, Parallel Process does the same thing, but doesn't produce the black screen; just the error.
It's a selection at the beginning. The game is in French and English, with a warning that some aspects are English-only.
And everything works up to when he says "I won't go easy on you, though!" The game crashed at the point with the aforementioned error. The battle doesn't start whatsoever. There's no Battle ME or BGM; nothing of the sort. The game stays on the map and crashes.
So the event itself works, but the battle never starts; yet, in the DeBug, the trainer is usable and works in battle. I can see how the battle plays out via DeBug but trying to activate the same trainer in a script crashes the game.
If I try to make the trainer (ID 072) a basic Trainer NPC, however, that works; but I can't integrate it into any storylines or dialogue-before-fight scenarios.
Brock in Essentials Sample maps uses only a script command to start the battle (his event name isn't "Trainer(4)" or other number). The Brock event don't spot the player like a standard trainer, theses kind of event are better for making storylines. Just copy the Brock script line and do the event like a standard event.