So for this script I'm looking to be able to create a puzzle where the player needs to find the correct order to burn torches. However, there are also dummy torches where, when burned, will still light up but will deceive the player into thinking that the dummy torches are relevant to the puzzle.
In order to clarify what I mean, here is an example puzzle:
(Each square contains one torch to light, there are four torches total in the correct order)
The puzzle solution is in the following order:
1d, 3b, 4a, 1b
In order for the puzzle to be completed, the player needs to light the correct torches in order. So, the player will fail the puzzle (causing all lit torches to unlit) if the player enters the wrong order. The torches will only become unlit when the player lights four torches and that order is incorrect. For example, if the player chooses to light 1d, 2b, 4b, 4a then the torches will become unlit. Likewise, if the player chooses to light 1a, 2a, 3a, 4b then the torches will become unlit.
The thing to note in the example is the fact that the player is able to light four torches even though the order is incorrect. If the order happens to be incorrect, then the error sound will only appear after the player has lit those four torches. This allows for the player to be forced to find the solution elsewhere, as this would make it harder for the player to find the solution through trial and error.
If this is possible to script, please do so! (though, I'm not so savy at scripting, so a small summary of how to set it up is appreciated!)
(oh btw i'm using 2.53)
Thanks in advance.