Lights Out Puzzle

I know there's a tutorial for MV, but I would like to know how to do this in Ace.

I want to have a puzzle where the player has to turn off all of a number of torches by flipping switches; the trick is, every time you press a switch it turns one of the lights next to it on or off, so you need to find a way to push the switches in the right order so that all lights go off.
I assume you are referring to this tutorial?

https://forums.rpgmakerweb.com/index.php?threads/lights-out-puzzle.66148/

You can use it for VX Ace also because it is all Event Commands, and those operate the same between the engines.
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/lights-out-puzzle.91708/