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

Any tip for this trigger (scream battle sound)

Status
Not open for further replies.
Level 12
Joined
Oct 28, 2019
Messages
478
  • 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