How to continue after being defeated in a random encounter

Today I'd like to ask the community for advice on how to make sure that there is life after dying in a random encounter.

I already know that Makers can set a series of events after a programmed battle via events. I have yet to find out, however, how to make sure that the game does not end when you get defeated in a random encounter.
This often results in being able to try again in the case of a boss battle or a mandatory regular battle (e.g. a regular monster blocking access to the next area), but getting a Game Over if you are killed by the random-est of random monsters.
Not pretty.

So, the main idea is this:
- the Hero can continue the game if you lose the battle. BUT you are moved back to a safe area.
- there may be checkpoints, so you don't have to start your journey from square one.

I would prefer a solution that does not involve scripting. However, I realise that some features REQUIRE it. As always, ANY and ALL advice is welcome.

Thank you for your time!
Unfortunately, I think you're going to need a script. I believe there are already some out there that will do what you want, so perhaps check the Master Script List and see if you can find one there.
yes, it needs one of the game over replacement scripts.
If you don't have a link to the master script list, follow the link "how to use a script" in my signature, that tutorial contains one of the links to the MSL
Moved to: RGSS3 Script Requests
Moved to: RGSS3 Script Requests

Sorry mate, I had no idea this feature is impossible to do without a script, otherwise I wouldn't have posted it in the wrong section :| thanks for your help! 😀

And thank you @Shaz and @Andar for your suggestions, I'll have a look at the Master Script List 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-continue-after-being-defeated-in-a-random-encounter.103202/