An unknown bug is seemingly causing common events to ignore their switches.
In this game, the player must solve puzzles that involve activating switches and traversing tiles of various colors. The player cannot traverse tiles of a different color than the player character. Some Events on the map will activate Switches that change the player to a specific color. The color of a tile is determined by its Terrain Tag, referred to in the images below as the "Tile Suite".
When a color-changing Event is activated, it triggers a Switch that triggers its corresponding Parallel Process Common Event. The purpose of this Common Event is to set the permissions a player has in relation to the passability of each Terrain Tag. The Common Event does this by turning off all other color-changing Switches and then changing the appearance of the player character to match the active color. After this, a series of nested Conditional Branches verifies what Terrain Tags the player is able to traverse and causes the player to step backward if the player enters an impassable Terrain Tag.
There is one color, "Light", that the player is meant to reset to upon entering a new Map. This is to be achieved by one of two methods:
The first method, which is the one that doesn't freaking work, is a Parallel Process Event present on pretty much every Map called the "Master Initiative", which turns off all color-changing Switches, then turns on the "Light" Switch, then deletes itself afterward. The "Master Initiative" also stores its coordinates into a Variable, which is checked during the second method.
The second method, which works for unknown reasons, is by "resetting the current level", which is achieved by transferring the player to a map with one Parallel Process Event on it that turns off all color-changing Switches, then transfers the player to the coordinates of the "Master Initiative".
An unknown bug causes the player to retain their color mode between Maps, rendering the first method unfunctional. For example, if the player is transferred to the next Map while in "Dark mode", instead of immediately reverting to "Light mode" as they should, the player remains in "Dark mode" and may traverse tiles that have the Terrain Tag associated with "Dark" without activating the appropriate color-changing Event first. Fellow denizens of the RPG Maker forums, please help me defeat this bug.
In this game, the player must solve puzzles that involve activating switches and traversing tiles of various colors. The player cannot traverse tiles of a different color than the player character. Some Events on the map will activate Switches that change the player to a specific color. The color of a tile is determined by its Terrain Tag, referred to in the images below as the "Tile Suite".
When a color-changing Event is activated, it triggers a Switch that triggers its corresponding Parallel Process Common Event. The purpose of this Common Event is to set the permissions a player has in relation to the passability of each Terrain Tag. The Common Event does this by turning off all other color-changing Switches and then changing the appearance of the player character to match the active color. After this, a series of nested Conditional Branches verifies what Terrain Tags the player is able to traverse and causes the player to step backward if the player enters an impassable Terrain Tag.
There is one color, "Light", that the player is meant to reset to upon entering a new Map. This is to be achieved by one of two methods:
The first method, which is the one that doesn't freaking work, is a Parallel Process Event present on pretty much every Map called the "Master Initiative", which turns off all color-changing Switches, then turns on the "Light" Switch, then deletes itself afterward. The "Master Initiative" also stores its coordinates into a Variable, which is checked during the second method.
The second method, which works for unknown reasons, is by "resetting the current level", which is achieved by transferring the player to a map with one Parallel Process Event on it that turns off all color-changing Switches, then transfers the player to the coordinates of the "Master Initiative".
An unknown bug causes the player to retain their color mode between Maps, rendering the first method unfunctional. For example, if the player is transferred to the next Map while in "Dark mode", instead of immediately reverting to "Light mode" as they should, the player remains in "Dark mode" and may traverse tiles that have the Terrain Tag associated with "Dark" without activating the appropriate color-changing Event first. Fellow denizens of the RPG Maker forums, please help me defeat this bug.