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

Custum Sound set (is it possible? How?)

Status
Not open for further replies.
Level 9
Joined
Apr 3, 2008
Messages
700
You can set a normal sound play to NONE in object editor and use a custom sound by trigger when player selects a unit.
  • Events
    • Player - Player 1 (Red) Selects a unit
  • Conditions
  • Actions
    • Sound - Play BeastiaryWhat1 <gen> at 100.00% volume, attached to (unit)
You can also to play different custom sounds to be played with some chance randomly (random number function).
  • Actions
    • Set i = (Random integer number between 1 and 3)
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • i Equal to 1
      • Then - Actions
        • Sound - Play BeastiaryWhat1 <gen> at 100.00% volume, attached to (Picked unit)
      • Else - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • i Equal to 2
          • Then - Actions
            • Sound - Play BearDenWhat1 <gen> at 100.00% volume, attached to (Picked unit)
          • Else - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • i Equal to 3
              • Then - Actions
                • Sound - Play HuntersHallWhat1 <gen> at 100.00% volume, attached to (Picked unit)
              • Else - Actions
The plus of this way that you can make some sounds to be played more often, other more rare.
But, all sounds has a large size.
 
Status
Not open for further replies.
Top