I hope this is in the correct forum...but I'm using RMXP, and one of my maps contains a switch puzzle. If not in the right forum, forgive me, cause sometimes these forums can be a little confusing to navigate.
There are two switches that briefly open up a door on opposite sides of the room. How do I fix it so that if the timer runs out before the player reaches the switch turn-off event, it resets the event to try again? Because right now, if the player were to run out of time before they managed to reach the end, the event ends and there is no way to reset the puzzle...how do I fix this?
Here's what I have in the event program.
Switch #1: Opens the Boss Chamber
Tab 1: http://vvcap.net/db/R7TxZUWWz980SrsKR6J9.htp
Tab 2: http://vvcap.net/db/SMUD6EB7waNCGpS9dHYc.htp
Tab 3: http://vvcap.net/db/m9kfLoZe4Kv7fnsUvgL9.htp
Tab 4 = Blank Event (After activating the EVENT END (Variable = 2) tile past the gate)
Switch #2: Opens the Storage Room
Tab 1: http://vvcap.net/db/ZPzztejShZwCgf2t-cIR.htp
Tab 2: http://vvcap.net/db/psOtbBU-3saWAPD02-y4.htp
Tab 3: http://vvcap.net/db/TPleW2YXHHvAUVApBG9s.htp
Tab 4 = Blank Event (After activating the EVENT END (Variable = 2) tile past the gate)
Help on Creating a Switch Puzzle
● ARCHIVED · READ-ONLY
-
-
I didn't look at your files since I don't know enough about the .htp file extension to trust it. Maybe you could post the picture or event code here directly.
But in general, the best way to do this type of puzzle is to use switches/variables as event page conditions, and to reset those switches/variables if the event becomes unwinnable.
So for example you have a button that opens a door. The button's event sets the timer and sets SWITCH 37 to ON (you could have a second event page when SWITCH 37 is ON to show that the button has been pressed, but that's optional). The door's event has two pages: the first has no requirements, and the second requires SWITCH 37 to be ON. The first page is just a closed door, and the second page will warp you to the next area if you touch the open door. When the timer runs out, simply set SWITCH 37 to OFF (closing the door). The player should be able to re-activate the button, which will set SWITCH 37 to ON, restart the timer, and essentially restart the whole challenge, which sounds like what you want to do.