Respawn Instead Of Game Over After Random Encounter

Hey there, I'm fairly new and also late in the game to using RPG Maker VX Ace (didn't know about MV at the time I purchased it, otherwise I'd have access to all of it's amazing scripts). Anywho, I was wondering if someone could lend me a script that would have my party respawn to a map location (kind of like respawning at a Pokemon Center in the Pokemon series) if they were to lose in a fight. But not to just one location, to the nearest "safe point" from where the party falls (so that if they fall in a map that is hours into the game, they don't respawn at the beginning of the game). My encounters are all random, other than boss fights. I have searched the internet far and wide and it seems like there is no script to help me with this. In a perfect world I would love a script that gives game over options such as: Retry, Respawn, Load Save, Title Screen. But that seems to be nonexistent.

(if this is the wrong forum to post in, i apologize)
Moved to: RGSS3 Script Requests
Somewhere there's gotta be my Kyonides's Respawn Point script...

Original thread: https://forums.rpgmakerweb.com/threads/respawn-instead-of-game-over-after-random-encounter.116562/