I dont really know what youre looking at, because none of the examples in the guide are formatted like that. Tbh, it kinda just looks like youre throwing random symbols together and hoping they do something.
Because that isnt how its formatted at all. Based on what you wrote here, you seem pretty confused. Id suggest reading through the midbattle scripting guide and playing around with the examples first. Youre trying to run before you can walk. Forget about adding trainers for now. Come back to...
You still need the trainer battle call. Which in your case, sounds like it will be in the conditional branch. All of the setBattleRule calls are put above the battle call.
Yeah, definitely a compatibility error, then. I have no idea what youre using, so I have no idea what it would be. But DBK is compatible with most of the popularly used plugins that I know of, other than the ones explicitly listed as conflicts in the meta file.
Again, I need a lot more details. I let a Lvl 100 Mewtwo one-shot my entire party and couldn't replicate the error. So what you're providing me isn't nearly the full picture in regards to what is causing the error.
What plugins are installed, what Pokemon is KOing you, what's your party, what...
You need to provide a lot more information than this, because I just tested a 1v1 battle with a trainer and let them KO my entire party, and could not replicate this error.
The "cannotRun" battle rule in vanilla Essentials already does what you want. The "cannotRun" rule doesn't just prevent the player from clicking the "Run" option; it prevents all methods of fleeing, such as Teleport, Emergency Exit, and even being hit by the opponent's Roar/Whirlwind.
Well, the party selection code I added was directly lifted from the Battle Frontier code. Thats why I say it took like 30 seconds to add, I literally just copy/pasted what already exists in Essentials. I see no reason why you can just do the same with all the Battle Frontier rules.
You're using a super outdated version of the plugin (since youre still on v20.1), which is no longer supported and riddled with bugs that have long since been fixed.
Nope. This was a throwaway addition that got put in on a whim only because it took like 30 seconds to make. Ive put zero thought into it beyond that and have no plans on expanding on it.
All of that stuff sounds like Battle Frontier features, anyway, and would be better off as part of a more...
It works fine, I already implemented it. I sent the updates to @NoNoNever to include in an update for the Following Pokemon EX plugin. It'll be implemented at some point.
Did you make edits to the DBK plugin? Some of these error lines just dont match up with whats in the plugin. It also doesnt make any sense how there could be a situation where no midbattle scripts exist (since global scripts are always present), unless you physically removed them from the code.