• 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] Music to repeat?

Status
Not open for further replies.
Level 4
Joined
Aug 2, 2007
Messages
69
I have a music file playing as background music for my hero defense, but after the music stops, it no longer plays again. Is there a way I can have it keep playing?

Here's my trigger:

  • Events
  • Time - Elapsed game time is 0.01 seconds
  • Conditions
  • Actions
  • Sound - Play Carl_Orff___Carmina Burana01 <gen>
 
Level 5
Joined
Oct 18, 2007
Messages
139
Hey suave o-o didn't know you were a member of hive lol, your making a hero defence?

How long is the music? Put a trigger to shut this trigger off after X seconds (X being the time the music lasts) then another trigger to turn it back on, restarting the music o-o?
 
Level 3
Joined
Nov 11, 2007
Messages
39
Turning back on that trigger will do nothing as the event will not be triggered.

A much easier and more elegant solution is to add a second event.

  • Music
    • Events
      • Time - Elapsed game time is 0.01 seconds
      • Time - Every 122.00 seconds of game time
    • Conditions
    • Actions
      • Sound - Play ArthasTheme <gen>
 
  • Events
    • Time - Elapsed game time is 0.50 seconds
  • Conditions
    • (This trigger is On) equal to true
  • Actions
    • Sound - Play YourMusic (Sound - Play Music not Play Sound of course)
    • Wait (insert length of that song here) seconds
    • Trigger - Run (This trigger) (checking conditions)

Turn the trigger off if you want the music to stop looping.
 
Status
Not open for further replies.
Top