SOLVED Background music soundtrack script

● ARCHIVED · READ-ONLY
Started by Demrottens 5 posts View original ↗
  1. 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
  2. BGS will play in another map as long as you don't have it turn off or turn into another thing by default. If you want certain music or cues to play between maps, you can always use conditional branches to play the song you need as long as you don't have the maps do something different by default. It takes time, but if done right, it can be rewarding.
  3. Diretooth said:
    BGS will play in another map as long as you don't have it turn off or turn into another thing by default. If you want certain music or cues to play between maps, you can always use conditional branches to play the song you need as long as you don't have the maps do something different by default. It takes time, but if done right, it can be rewarding.
    Yes I know but I want different songs to play not the same song over and over
  4. I have done this with a complex custom "Music player" event that behaves like this:

    Imagine you have a "outside world" playlist
    This event plays that playlist in a random order and does not stop playin music when you change from a outside world map to another outside world map but when you enter say a dungeon then you put a stop "outside world" playlist event and you play your own custom dungeon song or playlist, then when you exit again to whatever outside world map it starts that playlist again
    So songs don't play one over the other, they don't stop music and play another one when you change map, it just plays the same play list in a random order when you are in the correct map category, then stops playing when you enter another map category and starts again when in correct map category, a music player with no sripts.

    I may post a tutorial and a demo for people to just copy paste the event and customize their own playlists some day.
  5. All you need is variables and conditional branches.