after knockout you appear at hospital in rpg maker mv

I was trying to figure out a way to do an event to where you appear at the hospital after losing a battle or being knocked out. Like Pokemon where when your Pokemon pass out you appear at the PokeCenter.
I'm looking for this as well. And going further with the Pokemon theme it will detract money from your current amount with each death.
Before I begin explaining it, are all encounters evented, or are they just troops?
They are events, and maybe troops later.
They are events, and maybe troops later.
That is not what was really meant by the question.
ALL battles are with troops, but those battles can be called by event or by random encounter.


If your battles are by event only, you can simply make all those events contain a branch for loosing a battle.


If even part of your battles is NOT by event but by random encounter table, you'll need a plugin for that because by default, random generated battles are ending in autodeath.
If http://himeworks.com/2015/10/end-phase-triggers-mv/ will allow you to run an event to stop game over

you can use http://yanfly.moe/2015/10/18/yep-15-base-troop-events/

to put the event into every random battle.
Thanks guys! 😀

Original thread: https://forums.rpgmakerweb.com/threads/after-knockout-you-appear-at-hospital-in-rpg-maker-mv.54716/