I found the pages with the midbattle scripting, triggers and the like. Still confused. That example with the gym leader and her asking questions isn't helping. I got the setBattleRule("midbattleScript", and the script afterwards figured out, but I'm getting errors except they are appearing in the addTrainer section of the script. It keeps telling me unexpected comma after TEAMROCKET_F, "Grunt", 8. It has a problem with me adding in ( ) when I put it as (TEAMROCKET_F, "Grunt", 8) and tells me to put it on the previous line, but when I do that, I get other errors.
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Script error in event 3 (coords 36,4), map 111 (Silph Co. Floor 2)
Exception: SyntaxError
Message: (eval):3: syntax error, unexpected (, expecting ')'
(addTrainer) => TEAMROCKET_F,
^
(eval):5: syntax error, unexpected ')', expecting end-of-input
***Line ' (addTrainer) => TEAMROCKET_F,' shouldn't begin with '('. Try putting the '('
at the end of the previous line instead, or using 'extendtext.exe'.
***Full script:
setBattleRule("midbattleScript" ,
"RoundStartCommand"
(addTrainer) => TEAMROCKET_F,
Grunt, 8
)
setBattleRule("2v3")