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

Any tip for this trigger (scream battle sound)

Status
Not open for further replies.
Level 13
Joined
Oct 28, 2019
Messages
528
  • Bowman
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Archer
    • Actions
      • Set VariableSet RandomNumberSound1 = (Random integer number between 1 and 60)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RandomNumberSound1 Equal to 1
        • Then - Actions
          • Sound - Play battle001 <gen>
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • RandomNumberSound1 Equal to 2
            • Then - Actions
              • Sound - Play battle101 <gen>
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • RandomNumberSound1 Equal to 3
                • Then - Actions
                  • Sound - Play battle2 <gen>
                • Else - Actions
Its simple its when an archer starts attack has a minor chance to play one of 3 types of sounds but with 20 or 30 archers they scream everytime... any tip to improve this trigger?
 
No problem for now... I am asking a suggestion to make this trigger better
Maybe give the attacking unit a dummy aura (no visual effect or stats) for 0.5 seconds and check that unit must not have this buff in order to trigger?
Because auras linger for a second or so, it should only trigger every once in a while (because that's what you wanted, right?).

Also, you can set the size of the aura to whatever is reasonable.
 
Status
Not open for further replies.
Top