Event Restart

Hello .

So I've always worked by myself on Rpg maker yet now I really need help .

Here's what the issue .

I want to make a puzzle that consists of pushing buttons in the proper order to unlock a door , yet if the player makes a mistake on the puzzle I want them to be able to reset the initial puzzle by getting out of the room .

Is anybody able to tell me how to do that ?

I'm pretty confused with variables though .

Thank youuuu !
If you don't use scripts or switches to store an event's location, all those will automatically reset to their original position upon reloading the map (leaving and reentering).


You only have to do something if you did use switches and variables and changed there value - in that case you'll need an autorun with commands to set all switches and variables to their original values upon entering.


And if variables are confusing to you, then you should stop working on your project and do the tutorials instead, because variables are very important for most types of puzzles.


I suggest you follow the link in my signature and look for a tutorial called "variables guide"
Yep, Andar pretty much gave you the long and short of it!  You've probably used either switches or variables or self-switches (or scripts) to track what buttons your player pushed, because these are the best way to do it - so if it was switches or variables, just reset them to their original state upon entering the room, and if it was self-switches there's an easy script call for resetting them.  You should definitely check out the tutorials for variables and puzzle-making.

Original thread: https://forums.rpgmakerweb.com/threads/event-restart.39692/