Question on Torch Puzzle

upload_2017-10-10_14-26-56.png


upload_2017-10-10_14-27-15.png


upload_2017-10-10_14-27-32.png


So I am able to get this idea to work. The purpose behind it is to have the player light up the barren braziers with a specific flame that matches the previous lit brazier. If the player is to do this method correctly, the previous lit braziers go barren, chamber door opens, and player encounters imprisoned ghosts he accidently freed. If wrong, the torches he previously used relights and the braziers he just lit are now barren, enable him to try again. As you can see, I shared some example screens. No worries! I have this completed, tested, and works. Just didn't want to flood the topic with over 10 screenshots.

Which now comes to my question. Here's the catch, each brazier I have labeled torched01, torch02, torch03, and torch04 under its own event. At first I thought just using 4 switches would work, but unfortunately the results were flawed due to the fact all torches lit under the same switch being activated. Thus I had to make 12 different switches, defining each one something like redLit01, redLit02, redLit03, etc etc. To prevent this issue from happening.

My question is, is there a simpler way of approaching this? Or maybe I should try scripting this, so that I don't use so many switch spaces? I thought about variable use, but this isn't a math related puzzle. More so a choice between four decisions of color, choosing one, lighting the brazier, check under lit variable, after all 4 are lit, lit variable uses autorun on the next event to check and see how many correctLit variables are there and if it doesn't = 4, restarts the puzzle. Catch my drift?

I mean, I don't mind this method, but the usage of switches will be... a lot. Not a very bright idea, especially if this puzzle can be a basic written out script.

Original thread: https://forums.rpgmakerweb.com/threads/question-on-torch-puzzle.85521/