• 🏆 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!

[Solved] Play music from path?

Status
Not open for further replies.
Level 18
Joined
Jan 12, 2011
Messages
1,512
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 18
Joined
Jan 12, 2011
Messages
1,512
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