This is a good idea, but I think "Lose" means all actors are 0 hp, right?
I'm looking to make it so that only if the main actor ("you") reach 0 hp, the entire party automatically escapes.
They should all end up in the spot where the battle activated.
Actually no, i mean yes you "lose" the battle but there is absolutely no indication that you did so, when your last member is at 0 HP, then your game just goes black and youre infront of the enemy that attacked you with all your party members alive but at 1HP (so to say, in the position before you started the battle) , you can set in the branch that their HP go to full again.
So dont worry, there is absolutely no indication for losing, you can even add in the "lose" branch an text, something like "we had to retreat" or whatever you want, actually your imagination is the limit.
If you need help to put those events together, then feel free to ask.
but if you still want it to be mainly the main chara to reach 0HP then you need the resist dead trait for that main character and just a condition in the troop section "when main character = 0%HP or less" then abort battle" looks something like this:
You can add there text messages as well or whatever you like, also i would suggest to revil his HP.
Here is how it would look:
▶ YouTube video
and here the event: