I just came across an interesting music issue with SugarCube's load game function. If music is playing, and I decide to load game, the music will keep playing as it will reload all variables but not give any stopsound commands. But sometimes the music playing at the start of the game or where ever loaded from will not be appropriate, since I use a specific music track for the start screen.
So is there a way to tie a <<stopallsound>> command to the load game function? Cause I don't want to have to manually append <<stopsound "sound/intromusic.ogg">> to every single passge a player may load to. Or failing that, is there a way to append that command to every single passage except those tagged with a certain identifier? Pretty sure I did this at one point, but have forgotten how I did it.
E.g. Some kind of function that will automatically carry out <<stopsound "sound/intromusic.ogg">> to every passage loaded except for those passages I tag with "intro". Seems kinda excessive to just meet the load game issue, but it'd work.