So you want a system where you have to step on every tile once, and only once?
Personally, I would write a script to do this, rather than putting an event on every single floor tile, just for the lag issue.
But evented ...
Create a variable called "Tiles Crossed"
Create an event with 2 pages, both set to 'below characters' and 'player touch'.
On page 1, turn on self switch A and add 1 to the Tiles Crossed variable.
On page 2, set the condition to be self switch A, and add your trap (this might include a Set Move Route that changes the event graphic - try to avoid another page with another self switch if possible). The second page would probably have a different floor tile graphic, or <something> that would indicate to the player that they'd already crossed it.
Copy your event and paste it onto every floor tile.
Now create your "win" event - this could be a door that only opens once the puzzle is done, or just "something" that happens when the puzzle is done - the former would require the player to start and end on a specific spot (otherwise they'd have to walk over other tiles to reach the door, triggering the trap); the latter would happen no matter where the player ended up. If it's a door and you want it to open, create a first page with a closed door image, and a second page with an open door image, conditioned by the Tiles Crossed variable being equal to the number of tiles they have to walk over. If it's an event that just does something, but you don't see it, just create a single page and condition it by the variable.
Finally create your 'reset' event - a parallel process event that will turn off all the self switches that have previously been turned on. If you have 20 floor events and they're named sequentially as EV001 - EV020, your 'reset' event will have the following in a script call:
(1..20).each do |evt| $game_self_switches[[$game_map.map_id, evt, 'A']] = falseendThen add commands to set the Tiles Crossed variable back to 0, and Erase Event as the last command.It will reset the self switches on all your floor events every time you walk into the room.
Note - you'll have to test whether the tile you land on when you transfer INTO the room changes automatically. I have a feeling it won't. So you might want to add a "landing" tile that has no event on it and isn't counted, or in the 'reset' event above, set self switch A for the 'landing tile' to true instead of false, and set the Tiles Crossed variable to 1.
Personally, I would write a script to do this, rather than putting an event on every single floor tile, just for the lag issue.
But evented ...
Create a variable called "Tiles Crossed"
Create an event with 2 pages, both set to 'below characters' and 'player touch'.
On page 1, turn on self switch A and add 1 to the Tiles Crossed variable.
On page 2, set the condition to be self switch A, and add your trap (this might include a Set Move Route that changes the event graphic - try to avoid another page with another self switch if possible). The second page would probably have a different floor tile graphic, or <something> that would indicate to the player that they'd already crossed it.
Copy your event and paste it onto every floor tile.
Now create your "win" event - this could be a door that only opens once the puzzle is done, or just "something" that happens when the puzzle is done - the former would require the player to start and end on a specific spot (otherwise they'd have to walk over other tiles to reach the door, triggering the trap); the latter would happen no matter where the player ended up. If it's a door and you want it to open, create a first page with a closed door image, and a second page with an open door image, conditioned by the Tiles Crossed variable being equal to the number of tiles they have to walk over. If it's an event that just does something, but you don't see it, just create a single page and condition it by the variable.
Finally create your 'reset' event - a parallel process event that will turn off all the self switches that have previously been turned on. If you have 20 floor events and they're named sequentially as EV001 - EV020, your 'reset' event will have the following in a script call:
(1..20).each do |evt| $game_self_switches[[$game_map.map_id, evt, 'A']] = falseendThen add commands to set the Tiles Crossed variable back to 0, and Erase Event as the last command.It will reset the self switches on all your floor events every time you walk into the room.
Note - you'll have to test whether the tile you land on when you transfer INTO the room changes automatically. I have a feeling it won't. So you might want to add a "landing" tile that has no event on it and isn't counted, or in the 'reset' event above, set self switch A for the 'landing tile' to true instead of false, and set the Tiles Crossed variable to 1.





