Level restart

Hi everyone,
So I'm building a stealth game and I need a way to restart the level once the player gets caught easy.

I was previously using something like that, whenever player gets caught, the map will restart.
1596822328485.png


But I end up having a ton of issues with it, like some switches aren't working resseting, I get issues with event positions and so many others, and it might be too long to just individually have to add each switch / event or whatever to the restart event.

Is there a quicker way to do it ? Maybe a plugin ? I was thinking something along the lines of an auto save / auto load.
Like when the player enter the room it autosaves and then when he get caught I just go back to the save.

If someone knows a good plugin that would do that or have any good idea it would be great 🙂

P.S : If it's a yanfly plugin that would be great because I have the pack.
When you teleport the Player to a different Map and then back to the first one, it should be resetted.

Can you provide more details?
Well it's hard to provide more details because it's just while building the game I often encounter new issues due to this restart thing. So right now I created a new map and when I restarted some events weren't in their place.

Maybe I'll try to send the player to an other map and back yeah.

But isn't there a quick save / load plugin by any chance ?
But isn't there a quick save / load plugin by any chance ?
Why not just have script calls save at the start of the level and load the save after the player gets caught? You don't really need a script
Why not just have script calls save at the start of the level and load the save after the player gets caught? You don't really need a script

But then wouldn't that erase the player's save ?
But then wouldn't that erase the player's save ?
Use a different save file. You could have a hidden save file the game would save to that the player can't select. The cherry on top of this solution? This solution would work across different save files
Use a different save file. You could have a hidden save file the game would save to that the player can't select. The cherry on top of this solution? This solution would work across different save files

That is quite convenient indeed, but how do you do that ?
I don't even know the script to save / load and how do you even make a hidden file ?
For VXAce, this is the script call to save to a specific file

DataManager.save_game(0)

That would save to file 1, so make it something other than 0
I assume loading would be

DataManager.load_game(0)

As for how to make a hidden save file the player can't access, i have no idea. Sorry
For VXAce, this is the script call to save to a specific file

DataManager.save_game(0)

That would save to file 1, so make it something other than 0
I assume loading would be

DataManager.load_game(0)

As for how to make a hidden save file the player can't access, i have no idea. Sorry

Oh but do you know if that is even possible to do a hidden file ?
Oh but do you know if that is even possible to do a hidden file ?
I'm guessing it is possible. Ask a scripter
Alright thank you !

Original thread: https://forums.rpgmakerweb.com/threads/level-restart.125016/