Revive somewhere when you die

Okay, so in VX Ace, when you die it goes to the game over, but I want the player to be teleported to an inn or something when you die. I know how to do this with visible encounters, but the game I'm making currently has random encounters.

Anyone know how I can do this?^^;;
You could check "Continue when defeated" in the battle processing tab, and using teleport command, take your player to the place you desire. ^^

EDIT: Oh sorry, I read quickly and didn't notice it was for random encounters. XD This will help you,

https://grimoirecastle.wordpress.com/rgss3-scripts/utility-scripts/game-over-common-event/

It replaces the default Game Over with a common event, which you can use to teleport the player to wherever you want. ^^
You could check "Continue when defeated" in the battle processing tab, and using teleport command, take your player to the place you desire. ^^

EDIT: Oh sorry, I read quickly and didn't notice it was for random encounters. XD This will help you,

https://grimoirecastle.wordpress.com/rgss3-scripts/utility-scripts/game-over-common-event/

It replaces the default Game Over with a common event, which you can use to teleport the player to wherever you want. ^^
Thank you! The death event works how I want it to now! :3
will this repeat forever, or just once?
will this repeat forever, or just once?
wat?

Original thread: https://forums.rpgmakerweb.com/threads/revive-somewhere-when-you-die.42609/