MV I have a problem with the upper left conditions switch check and I need some help

So I run into some issues with the upper left conditions switch and I can’t figure out what I am doing wrong.

I want for the character to first interact with the desk and then to be able to change outfit(interact with the wardrobe).

This is the code that I did that works in one map with explanations of what I am tying to do
att.BhYmw3GMZ3xp3hJ_4Q-2GsrAXOuxLidYA_C9RCxdBPA.jpeg

This is how that part of the room looks. I want for the player to first interact with the desk and then to be able to interact with the wardrobe.
att.tUb3x5XOtrhwJNJ6yuS7OSMBLumfNNpfECsWfXTU10I.jpeg

Here is the code of the desk. When the player interacts with it turn on the wardrobe ON switch.
att.vkvz3EohrtaC2IjttHDQtVdzInDCTZiiaVBIJrx2NbU.jpeg

Now here is the code on the wardrobe. If you were to interact with it does nothing until you interact with the desk first. I did this by checking the upper left conditions switch to Wardrobe ON to On.
att.ZyNdIXZzmQRCbdHLLFaJyoWWDMizqTk2QWbjObf3Vso.jpeg


Now here it’s my problem. When I made another map I did the same thing. First the player needs to interact with the drawer and then the player is able to interact with the wardrobe. But now the image of the door with the uniform on it does not appear until I interact with the desk first(wardrobe ON is turned On).
I even copy pasted both events from one map to another and it still doesn’t work
att.Bp_t8AopM-JIAph-aPIR-KMrsZMfI60DhVvO-lRvaZU.jpeg

Here the image of the door with the uniform on it doesn’t show up until wardrobe ON is turned On. This is the rest of the code
att.S5DmVKZoyQByipr8qp3bIYiTzEaEGBTQdhE3ftCU0xk.jpeg

att.Cy_g20BlV2hkIZWTkQ167eoU0v8O7Cde_uRmlxh35k8.jpeg

I also tried to not use the upper left conditions switch and now the image appears as it should, but now the wardrobe can be interacted with before interacting with the desk which is not what I want.
att.ZyNdIXZzmQRCbdHLLFaJyoWWDMizqTk2QWbjObf3Vso.jpeg


What should I do?
Well, I believe it's because you have the first page set to ONLY appear after the switch is turned on. You can get rid of the switch condition on the page and set up a conditional branch and place the entire event into that branch. Make the branch only active when the switch is on.

Now the Wardrobe will have the uniform on it but it won't do anything until the switch is on...

Like this:
New Project (2).png
it may be that page 2 of the wardrobe gets priority is that page is empty
and possible no condition.

if wardrop uses selfswitch A on, put it on 1 page in a condition:
if sefswitch A is on
exit eventprocessing
end
..... rest of the wardrobe function

the wardrobe function will be skipped if selfswitch A is on, so no more pages
needed.

if its pure that the image switch from no clothes on the door to with,
than you need it, but also probably "$gameMap.requestRefresh()" to refresh the map.
so it actually refreshes the events on the map.
Well, I believe it's because you have the first page set to ONLY appear after the switch is turned on. You can get rid of the switch condition on the page and set up a conditional branch and place the entire event into that branch. Make the branch only active when the switch is on.

Now the Wardrobe will have the uniform on it but it won't do anything until the switch is on...

Like this:
View attachment 361583
Wow, thanks a lot, it worked perfectly!!!! But I still wonder why it worked on the first map and then it didn’t work no more on the new one, even after I did a copy paste of that map. Thanks again!!!!!

Original thread: https://forums.rpgmakerweb.com/threads/i-have-a-problem-with-the-upper-left-conditions-switch-check-and-i-need-some-help.182618/