We were looking for maybe a way to have the player die and return to a nearby pokecenter when all their pokemon faint.
I was wondering if there was a pre setup way for us to do this, and if not how I could tell from an external plugin when all the pokemon in a party faint.