I use the last version of Pokemon Essentials, in addition to the EBS and Following Pokemon script and I definitely can't make black out after a specific battle.
I have a battle with the rival, in which I need something to happen and my opponent heals my Pokemon, I have everything programmed correctly ... But it is time to lose the fight, the black out occurs and I get home with mom. .. And then ... The event of my rival continues!!! Although it is no longer on the map !!!
I've tried it anyway and I can't make it ...
Whatever happens, it takes me home with mom, even being there at home, the event continues ... But I can't stop the BLACKOUT.
Something similar has happened to someone?? :C
I am using the following main scripts in my project, with a few more add ons...:
Elite Battle System
Yesterday I discovered that something is causing conflict so that the battle with the enemu trainer was not respecting my call "rules" to continue the event after losing the match, avoiding blackout ...
Today I try to make a battle with a wild Pokemon in which you can not run away and is not respecting the call either. It's something extremely strange, because I am making the calls just as indicate in the wiki through the conditional branch ...
You will need to make an else branch and set a self switch there too, so the event doesn't retrigger itself, though that bit of advice might just only be for regular trainers and not event trainers? Do make sure that the event doesn't activate again when you lose, that's the main point you need to remember.