Switch triggered event update - gegerlan/aog GitHub Wiki
Detail
Filename | Author | Version | Core Update | Last Patch Update | Active contributor |
---|---|---|---|---|---|
Game_Switches - set -> map event refresh | gegerlan | 1.0 | - | - | YES |
Version history
Summary
As a new map is loaded in the game, every event in the map that has a switch requirement to trigger is captured and passed to $game_switches. When $game_switches modifies a switch if forces a refresh of the events that are dependent on the switch just changed.
Rationale
When switches are modified, it's not always the case that the events dependent on these are refreshed. To solve this issue, a simple hook is added for Game_Switches, and used by Game_Map as a new map is loaded.