Respawn after death

I was wondering how I could implement a GTA-like death mechanic. Instead of showing an end game / load screen, I would like the player to just wake up in a hospital, losing some cash for the treatment.

Any idea how to approach this?
If you don't have random battles (as in, all battles are on the map), just check continue if lose on every battle, then have it call your revive/respawn event. I'd recommend making the revive/respawn event a common event so that it is easy to find and fix.
Make a common event.
In the common event:
1. transfer the player to where the hospital is.
2. change the gold, by using the change gold event and making it decrease by some amount.
3. Recover all

Now depending on whether or not you have Random Encounters or not Changes how this works.

So if you have on map battles, set it so that the player can loose, and place this common event under if the player loses.

If you have random encounters then you can use this plugin. In the parameters "Use Command Window" set it to false, and "Start Common Event" to the id of the common event of the common event you made.
Thank you both!

Digging through in the meantime I found this plugin: http://himeworks.com/2015/10/end-phase-triggers-mv/ and was tinkering with making it work for me, but the plugin Zarsla links seems way better (+I'm now a fan of the video).

I'll let you guys know if it works 🙂
Aaand... It seems to be failing. I did exactly what Zarsla suggested, step-by-step and:
- with the event encounters I get an annoying blink of the map where the fight was, then it takes me to the hospital and everything works great from there, so pretty much a success
- with the plugin, it does call the event, but something glitches. It shows me the hospital map for a sec, even lets me move, but then it fades to black and shows the hospital map over and over, like it's calling the event in a loop, but without finishing it, because it never shows a "you lost 10g" message.

It seems like a problem with the plugin, because the common event seems to work fine (since it works with the event encounters). Any ideas what it could be?
I figured it out. For some reason, the event works great when it starts with a text window. If it starts with player transfer, it starts misbehaving.

Weird, but oh well.
Well you can make your window a clear blank window with the text code \^, if you don't want any text. Cuz that would be a window that has nothing and it would disappear without any player interaction. Thus not noticeable.
Nah, the text window is fine, I always find a text to put somewhere. It's just weird how the plugin misbehaves depending on the event's content.

Original thread: https://forums.rpgmakerweb.com/threads/respawn-after-death.82186/