Hi, I've been having some trouble with getting battles to work where the trainer has the same name as a previous or later battle. The best example is the one causing me the most trouble right now. This is how I've defined the trainer type:
This is how I defined the first battle with a Grunt, so far this one seems to be working:
And this is how I defined the one that's giving me trouble:
And also how the second Grunt is defined in the battle event:
pbTrainerBattle(:TEAMSKY_M,"Grunt,1",_I("How did I lose?!"),false,0,false,0)
When I got to battle this second Grunt in the game I get asked to define a new trainer named TEAMSKY_M,Grunt,1 but I tried doing that and the game asked me to do it again the next time I tried the battle. If anyone could help me figure out what I'm doing wrong I'd be very grateful.
The way you have it, "Grunt,1" is what's causing the issue. The line that starts the battle searches for the trainer named 'Grunt,1' which doesn't exist as the trainers PBS would still interpret an alternate battle as "Grunt."
What you need to do is set it up like below, where the number of the trainer battle is defined later in the code, bolded here:
pbTrainerBattle(:TEAMSKY_M,"Grunt",_I("How did I lose?!"),false,1,false,0)
"The past can hold us back and yet still drive us forward."