• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Music List!

Status
Not open for further replies.
Level 6
Joined
Aug 12, 2005
Messages
205
The trigger is this:

:arrow: Set the music list to doom starting with a random initial song
:arrow: Set the music list to dark agents starting with a random initial song
:arrow: Set the music list to credits starting with a random initial song
...

But only the last music (credits) is that plays always, when the music ends, it repeats agains...
Then, I think that only 1 music can be added to the music list per time, but... Why exists the "starting with a random initial song" if can have only 1 music in the list?

I want to play in my map a list of random musics, +/- 10 songs that are playing randomly, when a song ends, another random song starts to play, and when all the 10 songs are played, the list repeats all the musics.
How to do it?
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
I use this trigger for random music in my campaign:

Events:
Time - Elapsed game time is 0.01 seconds
Conditions:
--------
Actions:
Sound - Stop (Last played sound) After fading
Sound - Stop music Immediately
If - Conditions:
(Random integer number between 1 and x(number of soundtracks) Equal to x
Then - Actions:
Sound - Play ...... <gen>
Wait ..... seconds(length of soundtrack (u can c that in the sound editor)
Trigger - Run *This Trigger* <gen> (ignoring conditions)
Else - Actions
If - Conditions
(Random integer number between 1 and x) Equal to x+1
Then - Actions
Sound - Play ...... <gen>
Wait ...... seconds
Trigger - *This Trigger* <gen> (ignoring conditions)
Else - Actions Etc.....
 
Status
Not open for further replies.
Top