• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[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