Need help with switches

I need some help with switches. the door i want to open is locked and the only way to open it is to press a hidden button on the wall. I cant figure out were the switch would go so i just guess were it would go. I cant get it wright. can someone help me out.


Untitled.jpgUntitled2.jpgUntitled3.jpg
1. Right after the text message "sounds like the door unlocked." activate a second switch.


2. Go to the door event and and create a second event page that activates under the condition that the second switch is on.


3. Allow access to the character.
On the door event create another page that is only active when control switch 2 is on. Set this to a different graphic or so that it can be walked through etc, this will be the unlocked door event.


Then, create a second page in your switch in the wall event and set this to only be active when self switch A is on. Do a show text of something like "I've already pulled the switch".


On your first page of your switch event, in the "When throw switch" section, turn control switch 2 on and control self switch A on. Should work okay.
your locked door event needs a second page, and that second page needs to be conditioned on a switch "door opened".


The control command for turning that switch on needs to be in your event for the hidden button, when that button is pressed
Thanks for the help i figured it out

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-switches.59529/