[SOLVED] -Lever Puzzle- (Door Help)

Here I am again. I kind of wish I didn't have to ask so much questions all the time but I guess practice makes perfect.

My problem is that I have a whole bunch of levers that I am trying to get to work as a puzzle. I looked at another topic on this matter and tried pretty much what they discussed but now my only problem im facing is how and where I will get the switch to occur for my door to open.
 

-SCREENSHOTS-

This right here is my first lever I am working with (5 in total). I am using a comman event to check these regulary.

LEVER 1
Help1.png


Help2.png


This here is my common event im calling on (Shaz, I know you're quite familiar with this type of stuff because I took reference from another topic)

COMMON EVENT
Help3.png


Now this is the big picture I am trying to figure out. Where do I place my switch to open this door? Do I need to use variables? First page will be empty because the door will remain static until the switch is active.

DOOR

Help4.png


Help5.png


So that is that! Please help me out here D: (Watch it be something really obvious)
Hopefully everything has been set up right. My plan is for only 1,4, and 5 need to be used for the door to open.

Thanks!

- Kevin
bump

-Sorry for that, couldn't remember forum rules-
Acidicjester, please do not bump your topic unless it has been 72 hours later since your last post. You can review our forum rules here. Thank you.

I think you are expecting a lot if 8 mins is too long to wait for an answer so you have to bump.  People who answer queries do so in their free time, so answers are rarely instantaneous, unless by chance.
Acidicjester, please do not bump your topic unless it has been 72 hours later since your last post. You can review our forum rules here. Thank you.

I think you are expecting a lot if 8 mins is too long to wait for an answer so you have to bump.  People who answer queries do so in their free time, so answers are rarely instantaneous, unless by chance.
Thank you for the heads up. I'll watch out next time. xo
I'm confused on what your common event is for.
I'm confused on what your common event is for.
The switches refer to levers i have (1-5), and the plan was that the door will be opened ONLY if switches 1, 4, and 5 are on, and 2 and 3 are off. From what was described earlier on another topic, its so the conditional branches are checking for the opposite result. That saying if 1, 4, and 5 are off or 2 and 3 are on, the common event is going to stop checking because the correct levers aren't turned on. (That's how I think it works that is)
I would do it like this:

XOQQ9S7.png
Although from what I can see, those conditionals aren't checking that the other 2 switches are OFF.  They could be ON and the event would never know it.  I'd add 2 more nested conditionals checking that they are OFF.
Uuh god this is giving me a headache :/
So, I think I've kind of got this figured out. There are a few problems with my solution, the animations on the switches are wonky, and once you've solved the puzzle you can't, reverse it. What I mean by that is, once the conditions are met to open the door, if you were to open a switch that should be closed, or close one that's open, it won't return the event to the state where it's closed.

If it's not a problem, instead of posting the pictures one by one and taken up a huge amount of space I'm going to post the link to the page containing all of the images. It's pretty self explanatory.

http://imgur.com/a/YkBab

Basically, I've got all the switches with their own control switch, and an event, priority parallel that has 5 conditional branches nested checking to see if the switches we need are on and off. Once these conditions are fulfilled, a self switch goes off taking it to it's second page. That second page is also parallel, turns a switch called Switch Complete! on, then self switch b. The third page, activated by self switch b, turns the event off. (I should note the images have the second page of door set to player interaction, which I changed to autorun)

The only problem with my event, and I've no idea how to fix it, is that if you don't turn the switches on in ascending order starting from the bottom all the switches below the one you activate will appear "on" and won't be intractable. =/

[IMG]http://i.imgur.com/bHseO0z.png[/IMG]

I watched a video by despain related to, I believe it was random loot chests, and in one of the chest events he set up there was a similar problem.

If you opened the fifth one in line, it would actually open the first one, give you the item, and keep going until you got to the fifth.
Okay so I tried Ndrfie's tactic and I think it's working out for me! 😀

I implemented the event process demonstrated in that first screenshot with the conditional branches and then I proceeded to add a "Wrong Switch" variable added up by one on every wrong lever. If the door reads that this variable is 1 or greater, it won't open. I also added an "All Pulled" variable which resets all levers if all are pulled. So, thanks a bunch guys! 🙂



-You may close now-

Original thread: https://forums.rpgmakerweb.com/threads/solved-lever-puzzle-door-help.41582/