Well, I created an event that plays a song as a background sound, not a background music so that if you move to another map it keeps playing. I noticed that it loops so that's okay but it's always the same song so I thought of a event based background music system:
One event that gives "song" variable a random integer value, then a music player event has many conditional branches, depending on the "song" valor, it plays one song or another and waits until song is played, then stops playing background sound and activate a "playmusic" global switch that triggers the first event and gives the "song" variable an integer random number, then triggers the music player event again and it plays the music according to the "song" variable.
And that was my initial idea but I realized that wouldn't work because when you exit that map, there will not be any music player event and when the music stops won't play again or at least wont change song because there will not be any song choser event
So I need a script that just can create playlists and plays the chosen one in all the maps and can be stoped with an event to play just the custom map music or to change to the boss fight music
I mean, you run around all the forests and mountains and the same playlist is played but then you enter a dungeon and the dungeon playlist is played, then you encounter a boss and the script just stops playin music and you use a event to play your custom boss music
One event that gives "song" variable a random integer value, then a music player event has many conditional branches, depending on the "song" valor, it plays one song or another and waits until song is played, then stops playing background sound and activate a "playmusic" global switch that triggers the first event and gives the "song" variable an integer random number, then triggers the music player event again and it plays the music according to the "song" variable.
And that was my initial idea but I realized that wouldn't work because when you exit that map, there will not be any music player event and when the music stops won't play again or at least wont change song because there will not be any song choser event
So I need a script that just can create playlists and plays the chosen one in all the maps and can be stoped with an event to play just the custom map music or to change to the boss fight music
I mean, you run around all the forests and mountains and the same playlist is played but then you enter a dungeon and the dungeon playlist is played, then you encounter a boss and the script just stops playin music and you use a event to play your custom boss music