@eomereolsson
I'm sorry. I'll try to explain better ^^':
First of all, I set these 2 variables equal to the coordinates of the rock and of the switch.
Then I made 2 if-events into each other. The one asks, if the rock's X is the same as the switch's X, and the other one asks, if the Y variables are the same.
And if the coordinates are the same, then a switch called 'door' will turn on.
But the if-events have else-brackets too. In these 2 else-brackets I coded that 'door' will turn off.
Here's everything in the RPG Maker. I hope you can understand it, although the code is in German.
Spoiler: [ATTACH type="full
But then I wanted to make another puzzle with 2 rocks. I did the if-system again. I coded, that if all of these variables from 'switchA' and 'rockA' are the same and the variables of 'switchB' and 'rockB', then 'door2' will be turned on. Every single if-event got its own else-bracket, in which the other combination ('switchA' with 'rockB' and 'switchB' with 'rockA') came in. And in every else-bracket of these new if-events came 'door2' is turned off.
Here is the code:
Spoiler: [ATTACH type="full
Spoiler: [ATTACH type="full
Spoiler: [ATTACH type="full
Spoiler: [ATTACH type="full
Spoiler: [ATTACH type="full
With three rocks, I'd have 6 combination possibilities:
(A=B and C=D and E=F)
(A=B and C=F and E=D)
(A=D and C=B and E=F)
(A=D and C=F and E=
😎
(A=F and C=D and E=
😎
(A=F and C=B and E=D)
So 6 times I'd have to put the second possibility in the first else-brackets, in its 6 again, in theirs 6 again and so on.
At the end I'd have to write 6 by 6 by 6 by 6 by 6 if-constellations. So these are... 7,776 if-constellations.
Pretty much handwork. '^^
That's why I'm asking for other ideas how to make this.