Puzzle Help

I apologise if this has been asked before but I couldn't find anything related to it. I am trying to make a puzzle for one of my dungeons in my first game where you have to get all the floor tiles illuminated.
It's a similar idea to this: Puzzle Idea
But with switches instead. Now, I have the basis of this idea but struggling to implement it so that some switches turn off as some turn on etc.
I have attached a video of what I currently have done. Just unsure how to go about "toggling" the different floor tiles.
Thank you for any help and advice!
My current design
there is something ou there with different puzzles, and toggling.
Galv_PuzzleFunctions has similair to it, but I also have the evented
way for different puzzles and can be found as well on your tube
with explanation.

there are different versions on how to handle them, but turning 1
is something I dont know, but it is doable.
Thank you, I'll give that plugin a look
I don't remember if it was an example for a plugin or a tutorial on the site, but I've seen this exact situation described. You should look through the tutorials forum, and if I come across it I'll let you know.
I don't remember if it was an example for a plugin or a tutorial on the site, but I've seen this exact situation described. You should look through the tutorials forum, and if I come across it I'll let you know.
Thank you, I will give the tutorial section a browse when I finish work.
I have managed to get it sorted by utilising conditional branches and all is working as it should. Thank you all for your advice

Original thread: https://forums.rpgmakerweb.com/threads/puzzle-help.134249/