• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Play music from path?

Status
Not open for further replies.
Level 19
Joined
Jan 12, 2011
Messages
1,527
well since i'm importing music to the warcraft mpq.
i would like to get a trigger were you can play music from path like:
Sound\Music\mp3Music\Rise Against - Help Is On The Way.mp3

and also a trigger to make it repeat every X seconds.

(it's like the ones used in gui).
 
Level 19
Joined
Jan 12, 2011
Messages
1,527
oh thanks a lot, though you know how to play it again every x seconds?

and play music action makes you select a music you got in the editor and you can't
select something that isn't in the editor because i haven't edited the slk files.
i may do but for now i need a trigger for that
 
Level 8
Joined
Dec 9, 2009
Messages
397
It wouldn't work because each song is more than likely a different length,

with 2 variables
song array
songtime array

music1 is 40 seconds
music2 is 70 seconds
music3 is 120 seconds


set song[1] = Muisc1
set songtime[1] = 40
set song[2] = Music2
set songtime[2] = 70
set song[3] = Music3
set songtime[3] = 120

When songtimer expires
set tempint = random number between 1 and 3
play song[tempint]
set songtimer = songtime[tempint]

You could put in a way it won't repeat the exact same song that ended as well.
 
Status
Not open for further replies.
Top