• 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 theme trigger

Status
Not open for further replies.
Level 3
Joined
Apr 29, 2012
Messages
64
Hi!
I imported 4 music files to my map, (note it as A,B,C,D)
and i want to setup a trigger that whenever a player using human race, his theme song is A, and repeatly playing, and B for orc, C for undead, D for nightelf

so, can any1 teach me how to set up this trigger please?
Thanks alot.
 
Last edited:
Level 3
Joined
Apr 29, 2012
Messages
64
I got only 1 theme for each race, or should say I using only 1 theme for each race, but there are not only 1 theme for the original files, which means if the imported theme played, then the next theme would be the original files again, and i wan the imported theme play repeat..

BTW, thanks.
 
Level 13
Joined
Sep 13, 2010
Messages
550
  • M
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Custom script: local race R = GetPlayerRace( GetLocalPlayer( ) )
      • Sound - Clear the music list
      • Custom script: if R == RACE_HUMAN then
      • -------- Music for human race --------
      • Sound - Play YourMusic_A <gen>
      • Sound - Set the music list to YourMusic_A <gen>, starting with song 0
      • Custom script: elseif R == RACE_ORC then
      • -------- Music for orc race --------
      • Sound - Play YourMusic_B <gen>
      • Sound - Set the music list to YourMusic_B <gen>, starting with song 0
      • Custom script: elseif R == RACE_NIGHTELF then
      • -------- Music for night elf race --------
      • Sound - Play YourMusic_C <gen>
      • Sound - Set the music list to YourMusic_C <gen>, starting with song 0
      • Custom script: else
      • -------- Music for undead race --------
      • Sound - Play YourMusic_D <gen>
      • Sound - Set the music list to YourMusic_D <gen>, starting with song 0
      • Custom script: endif

And if everything goes well it wont desync, it will loop endless times, and it will be race based.
 
Status
Not open for further replies.
Top