Tile Puzzle?

So I've been trying to figure this one out, I've seen a few videos showcasing a "Tile Puzzle" where if a player steps on a tile, it changes its graphic, but if stepped on again it will reset all tiles in the room. The goal is to activate all tiles. I've tried using 4 Pages of events per square where if stepped on once, it will add a variable and then Self Switch A so then if stepped on again, it will play a SE then Call a Switch to start a Autorun event to then reset all squares in the room and reset player position outside the puzzle. Issue with that is, it resets only 2 of my squares by random chance and the rest are stuck on page 2 permanently.
What can I do to make this work? I would appreciate the help!
Show us your event code - screenshots using Alt+PrintScreen please, without cropping anything. If you have multiple pages, show each page.

Where are the videos you've seen? Were they tutorials? If so, please post links.
This sounds like a situation for https://galvs-scripts.com/2016/08/14/mv-puzzle-functions/
Show us your event code - screenshots using Alt+PrintScreen please, without cropping anything. If you have multiple pages, show each page.

Where are the videos you've seen? Were they tutorials? If so, please post links.
upload_2019-9-21_13-45-46.png

upload_2019-9-21_13-45-58.png

upload_2019-9-21_13-46-8.png

upload_2019-9-21_13-46-19.png


There wasn't a tutorial on this sadly so I had to go by thought but here is a link to a similar post with a video showing what I want:
https://forums.rpgmakerweb.com/index.php?threads/tile-pattern-puzzle.96026/
Basically I want a simple tile puzzle that can use variables and if stepped on the same tile, itll reset the puzzle. In the video it shows you can step outside for it to reset but I don't want that.
Took a look at it, not sure what I can do to achieve what im trying to do, is there some example you can explain please?
The fun thing about Galv is he already includes a demo with the plugin usage examples. So you can usually just mess with that and see how it's done. You're looking for the section "4. EVENT ACTIVATION ORDER - COMBINATIONS" in the plugin description.
The fun thing about Galv is he already includes a demo with the plugin usage examples. So you can usually just mess with that and see how it's done. You're looking for the section "4. EVENT ACTIVATION ORDER - COMBINATIONS" in the plugin description.
That sets it in a 'certain' order, I want the player to be able to hit tiles in any order to get the same solution.
Ah, I probably should get more than two hours of sleep. :hswt:

So if you also use OuterSelfSwitch, can just copy and paste this event as many times as you like, and all you need to change is the Galv.PUZ.selfSwitchesOn(A,8,9,10,11,12) to reflect the Event IDs you're using.
The problem is on Page 3 of OPs Pictures.
Only 1 Autorun can run at a Time if i remember correctly. Change Autorun to Parallel in all Events.
Than your code for page 3:
self switch A turn off
wait 60 Frames
Do this for all your Puzzle Tiles.

Create 1 extra parallel Event with page condition: Puzzle Fail On.
Eventcode:
Wait: 4 Frames
Tile Puzzle = 0
Turn Switch Puzzle Fail Off.
Teleport Player (not sure if above or below turn switch, maybe it doesnt matter =))
The 4 Frames is enough for all other Events to run their Parallel resett page. Maybe even 1 Frame Wait would be enough.

OPs attempt is very nice and simple, i would not go for extra Plugins in this case.
The problem is on Page 3 of OPs Pictures.
Only 1 Autorun can run at a Time if i remember correctly. Change Autorun to Parallel in all Events.
Than your code for page 3:
self switch A turn off
wait 60 Frames
Do this for all your Puzzle Tiles.

Create 1 extra parallel Event with page condition: Puzzle Fail On.
Eventcode:
Wait: 4 Frames
Tile Puzzle = 0
Turn Switch Puzzle Fail Off.
Teleport Player (not sure if above or below turn switch, maybe it doesnt matter =))
The 4 Frames is enough for all other Events to run their Parallel resett page. Maybe even 1 Frame Wait would be enough.

OPs attempt is very nice and simple, i would not go for extra Plugins in this case.
Oh my gosh, thank you for catching my error! xD Didn't realize till know I had it on autorun the whole time, many thanks! Mods can close this post.

Original thread: https://forums.rpgmakerweb.com/threads/tile-puzzle.113512/