Need help with a "restart event"

Okay i am making a puzzle game, where u simply just walk to room to room with different puzzles in every room. So you can't die, but you can screw things up, and therefore i need an option to restart the room, all swithes, variables, everything need to be reset. Is there a way to do this?

I'm using MV
you have to do this manually (in case of switches and variables).


Event positions reset by default if you leave and return to the map, but switches and variables always contain the last values.


So you need a reset event that has the commands to set all switches and variables to the numbers you need to start the puzzle.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-restart-event.48472/