The Commander

The Blood Knight
Veteran
Joined
May 20, 2014
Messages
40
Reaction score
4
First Language
English
Primarily Uses
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)
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,113
Reaction score
5,810
First Language
English
Primarily Uses
RMVXA
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.
 

Latest Threads

Latest Profile Posts

I THINK I have a slightly better grasp on drawing my maps now... sorta. I still need to figure out how to draw a city of sorts. I've only got the abstract going so far.
One day, I'll not have this lingering cough and we'll have another make a game stream.
A music I create while practicing E Major scale. :D
Too bad the Boss Battle Build Bout isn't also for VXAce.

Forum statistics

Threads
115,184
Messages
1,087,917
Members
149,752
Latest member
VoanjoboryMaster
Top