• 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.

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 64
Joined
Jan 18, 2005
Messages
27,258
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