Things like screen tint and weather persist from one map to the next - if you make it rain on an outside map and then go to an inside map, it's still raining. So you need to add event commands to stop them.
This is kinda related to what I'm struggling with.
I have a map. It normally has a BGM which is set in the map settings.
However, the first time you enter this map, the BGM doesn't play (the auto-run event has a "Play none" command), because the auto-run also kicks off a cutscene (state #1).
After the cutscene is over, the player is in state #2, which is a blank "player touch" page, where they can run around and explore; still there is no BGM.
When the player speaks to an NPC, they start state #3, which is another auto-run that plays another cutscene. The BGM starts. This takes the player onto states #4, #5...
The problem I'm having is that during state #2, the player
could leave the map and re-enter it - and as #2 is a blank "player touch" page, the default map BGM will play. (I can't just remove the map default or I'll have the opposite problem later - the player leaves and re-enters in state #4 and the music will
not play).
After #3 it's fine if the music plays every time. I just need it to
not play in state #2, which is not an auto-run page.
The way I'm doing it right now is that I have a separate event with a parallel page, which has one page with a conditional IF. If the state is #2, it "plays none" in terms of BGM, then "Exit Event Process". This works, but it feels... Hacky? This parallel event will be used for all the things where I need to be able to set the "on-entering-the-room" stuff.
Is there a
right way to do this?