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

Custom Music for Map

Status
Not open for further replies.
Level 2
Joined
Mar 13, 2009
Messages
13
iv got a song that i want to play during the whole time the snecario is playing how do i get it to do that
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
Make sure the players can turn off the music!
I'm a metalhead (mostly Melodic Death Metal) and if I hear a song I don't like, it ruins the game for me.
On the other side, most people will hate a map with a metal-song.

Here's a trigger to turn the music on/off for only 1 player:

  • Events
    • Player - Player 1 (Red) types a chat message containing -Music Off as An exact match
  • Conditions
  • Actions
    • Custom script: if ( GetLocalPlayer() == Player(X) ) then
    • Sound - Play Music
    • Custom script: endif
red: X = 0,
blue: X = 1,
...

I know this is very basic, but just add all other players here and set the X to the triggering player.
Do the same for when a player types -music on (or something).
You can also make the on/off-trigger only 1 trigger with
"types a chat message containing -Music as a substring"

Anyhow, good luck :p
 
Status
Not open for further replies.
Top