Door will not open nor close how I want it

EV015 Page 1 Below Characters Player Touch

Code:
If Player 1 is facing up
If Master Gate Scenario > 0
Player SE Close_Door (90,100,0)
Control Variable 32 Master Gate Scenario = 0



EV015 Page 2 Below Characters Confirm Button

Code:
If Player is facing down
If Master Gate Scenario = 0
Text: Master Password Please
Name Input Character 12 16 Characters

If Character 12 name is Miranda Cosgrove
Text: Door open
Play Sound Effect Door Open
Master Gate Scenario = 1
Else
Text: Sorry wrong password



Master Gate Parallel Same As Characters Variable Master Gate Scenario >= 0

Code:
If Master Gate Scenario != 0
Set movement route image to None


EV017

Code:
If Player is facing up
If A button is pressed
Text: Please talk to current left most talk to able Character named Tina to leave.
Hi there, need more context.
  1. What are you currently seeing?
  2. What is the result you want?
  3. Screenshots would work better. EV015 - can't tell how page 2 is getting triggered.
In this screen shot you see a door ("MainBedroom") opened, the player moving a little, and then the door closed:

ScreenshotDelMe.png


Hope it helps.
if A equals B, by all means it doesn't equal C
if A does NOT equal C, it can equal either B, D or Z.

the condition is not reversible, depending on where you look at it from.
don't use conditionals to drive operations within the same event, because they may drop out of the loop at some point and you'll have to check every line of every event to find it.
every event itself has a section dedicated to checking conditions before activating.... try using those first and foremost, and then correct any out-of-bounds cases within the event's routine.

condense the conditions that are impossible to get and take them out of the program.
if it's physically impossible for a player to activate an event at their back, don't check for "player looking up".
the event is either in front of the player, or not in front of the player.
"up" or "down" are fixed... "in front" of the player, is relative to the player... and if the player can only activate events in front of them, then only that event will trigger.
Thank you all so very much for your help. I Was basically trying to make a Door close and open how and when I want.

Please have a nice day

Original thread: https://forums.rpgmakerweb.com/threads/door-will-not-open-nor-close-how-i-want-it.162019/