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

Trigger to Loop Music?

Status
Not open for further replies.
Level 4
Joined
Dec 11, 2007
Messages
53
Hey, having some trouble with this, im in need of a way to loop one piece of custom music i have while ingame (eg - keep is playing over and over until i stop it with a different trigger)

I have tried using this current trigger:

Sound - Clear Music List
Sound - Stop Music Immediatly
Sound - Set Music to 100%
Sound - Set volume of (my music) to 100%
Sound - Play (my music)

I have ticked the loop button in the sound editor, but it has had no effect ingame, any help would be greatly appreciated!
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Time Elapsed 0.00 seconds
Play X music
Wait (duration of X music)
Run This trigger

There is a way to make music loop but this one but I forgot how to
 
Level 4
Joined
Dec 11, 2007
Messages
53
Have tried, didnt work ;(

Goddamn it why does everyone else not have this problem but i do ;<
 
Level 25
Joined
Mar 23, 2008
Messages
1,813
You need 2 triggers if i remember right:
  • Events
    • Time - Time elapsed is equal to 0.1 seconds
  • Conditions
  • Action
    • Trigger - Run *the other trigger*
    • Music - stop play the currently music theme
And:
  • Events
  • Conditions
  • Actions
    • Music - Play your music
    • Wait - *the length of your music*
    • Trigger - Run this trigger
This worked for me when i had music in one of my maps.
 
Last edited:
Level 6
Joined
Apr 14, 2008
Messages
172
there is no need for 2 triggers, easily done with 1:
  • Trigger
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Sound - Play babmersMusic <gen>
      • Custom script: call TriggerSleepAction ( 60.00)
      • Custom script: call RunTrigger ( GetTriggeringTrigger())
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,192
You can not make the music play without pauses or breaks at one point due to the way WC3 buffers music. RDZ pointed this out to me and said the only way to make endless music was to play it in the sound channel which can get annoying to so people and is not recomended.
 
Level 4
Joined
Dec 11, 2007
Messages
53
Thank you all for the replies, im off to bed for now ;o. will try it all in the morning however.
 
Status
Not open for further replies.
Top