• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Adding a music list to a map

Status
Not open for further replies.
Level 3
Joined
Jan 8, 2011
Messages
70
I'll create the trigger for you.

  • Music
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set musicarray[1] = sound1
      • Set musicarray[1] = sound2
      • Set musicarray[1] = sound3
  • Music2
    • Events
      • Player - Player 1 (Red) types a chat message containing select music as An exact match
    • Conditions
    • Actions
      • Dialog - Show dialogmenu for Player 1 (Red)
      • Dialog - Change the title of dialogmenu to Music Type
      • Dialog - Create a dialog button for dialogmenu labelled Sound1
      • Set dialogbutton1 = (Last created dialog Button)
      • Dialog - Create a dialog button for dialogmenu labelled Sound2
      • Set dialogbutton2 = (Last created dialog Button)
      • Dialog - Create a dialog button for dialogmenu labelled Sound3
      • Set dialogbutton3 = (Last created dialog Button)
  • ButtonClicked
    • Events
      • Dialog - A dialog button is clicked for dialogmenu
    • Conditions
      • (Clicked dialog button) Equal to dialogbutton1
    • Actions
      • Sound - Play sound1
You will also need these variables:

dialogbutton1 (dialogbutton)
dialogbutton2 (dialogbutton)
dialogbutton3 (dialogbutton)
dialogmenu (dialog)
musicarray (sound array)
sound1 (sound)
sound2 (sound)
sound3 (sound)

For the 'sound' variables, just import the music you want and set the music as that variable.
 
Status
Not open for further replies.
Top