Let’s see if I can explain myself. There is this one level, the map is all white, then on the right there is a box, when you click it the color changes, now it is red. You place it on a floor plate and this causes all the red doors to open unless those doors require another color as well. Suppose there are two doors and both need blue in addition to red, so they are not open. But there is a button. Then you go and click the button two times and you change the color of the button to blue. Then a door opens, the second one, you press the button and the first one opens but the second one closes.
I have variables set for the color. Now I want the door to check these variables whenever the box is on the plate, and if they are true then make the door open (I know how to animate it, I just need the conditional part).