Does anyone know why this event isn't working?

So I have this window that you can open and close. At first I had a switch for the closed and open state, but I'm trying to come up with creative ways to do things different so I don't have to waste a lot of switches on minor things.


Here's what I have now. The closed window sprite is on the "facing down" slot of the charset, and the open window is "facing right". In my head, this event should execute the commands in the top part of the branch until the window event is not facing down, in which case it should execute the bottom part. But the problem is, it doesn't work. Whenever I stand in front of the window and press the action key, it just executes the top part, even though the sprite does change to the open window and so I know it's facing right. 


Anyone know what I'm missing?


Knipsel.PNG
Try changing the Animation Type to Direction Fix/Inanimate. The sprite is probably turning when you press on it and ruining your conditional branch.
Oh God, ofcourse. I knew the solution would be something stupidly simple that I missed. Completely forgot to change that. Thanks for helping out. 
That's a clever use of the conditional branches there! I think I would have used a switch, but your solution is pretty elegant. 🙂  I guess the absence of self switches makes you more creative with alternatives.
Yeah, it doesn't come without its limitations. Initially, I had the open window on the right frame of the "facing down" slot. But, in a "Set move route" event command, you can't change the graphic of a sprite to the "stepping left" or "stepping right" frame, only the four stationary directions. So for all of the sprites like this window, I can only use the middle frames. But I still like that better than making a crapload of switches for everything. 


Edit: I actually realized that you can. When you create an event, you can set the event graphic to "stepping right" or "stepping left". Then you can use the Set move route event command to make it face in any direction, and it will stay on the same stepping frame. So basically, when making your sprites, as long as you make sure that all sprites of the same "type" (e.g. window open and closed) are on vertical rows only, you can utilize every frame of your sprite sets. 


This also works for treasure chests for example. I think every game I've come across used switches to change the treasure chest graphic when opened, but that's not even needed. Just change the facing of the treasure chest, and make it so you only get the item if it's facing in its "closed" position. 
Refresh map and this way is to rubbish.
Yeah, found that out myself last night too. Apparently if you change maps the sprite will go back to its original facing. So I guess you still need to use switches for stuff you wanna change permanently. Oh well, it was a cool experiment  😎

Original thread: https://forums.rpgmakerweb.com/threads/does-anyone-know-why-this-event-isnt-working.57613/