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 seem to recall that Yanfly Engine had a plugin that would be helpful to you.  He has a youtube channel that shows what each plugin does.

Here it is:  https://youtu.be/XAnfR5-1ZWc?list=PL1nGayyJbMLY0a6T6_pzF1qxx77MUq8-L
In my Ace game I had to do something similar, so I just used a for loop (script) to go through and reset everything. But you may not want to reset EVERY switch. If they're all in a row (10-30, for instance), then it's pretty easy.

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