The problem is that the command "
Wait for door to open at ()"
does not wait until the door
changes from open to closed. It just waits for the door to
be open. If the door is already open when the script gets to this command, then it does not wait at all. So once all the doors are open, the script just continues through all the "
Wait for door to open at ()"
commands and reaches the last part. What you want instead is something like this:
Label "Loop 1"
Wait 0
If..
Wait for door to open at (1,1)
Goto "Loop 2"
If..
Wait for door to open at (3,3)
Goto "Wrong"
If..
Wait for door to open at (5,5)
Goto "Wrong"
If..
Wait for door to open at (7,7)
Goto "Wrong"
If..
Wait for door to open at (9,9)
Goto "Wrong"
Goto "Loop 1"
Label "Loop 2"
Wait 0
If..
Wait for door to open at (3,3)
Goto "Loop 3"
If..
Wait for door to open at (5,5)
Goto "Wrong"
If..
Wait for door to open at (7,7)
Goto "Wrong"
If..
Wait for door to open at (9,9)
Goto "Wrong"
Goto "Loop 2"
Label "Loop 3"
Wait 0
If..
Wait for door to open at (5,5)
Goto "Loop 4"
If..
Wait for door to open at (7,7)
Goto "Wrong"
If..
Wait for door to open at (9,9)
Goto "Wrong"
Goto "Loop 3"
Label "Loop 4"
Wait 0
If..
Wait for door to open at (7,7)
Goto "Right"
If..
Wait for door to open at (9,9)
Goto "Wrong"
Goto "Loop 4"
Label "Wrong"
Speech "Nope, wrong."
End
Label "Right"
Wait for door to open at (9,9)
Speech "Congratulations!"
Here, each loop waits for you to open one of the doors. If you open the right one, it jumps to the next loop; if you open the wrong one it tells you so and ends the script.
____________________________
Today the refrigerator, tomorrow the world!