• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Attack Randomization

Status
Not open for further replies.
Level 7
Joined
Dec 4, 2009
Messages
175
I am making a map and you are able to have many archer units and this where the problem comes in.

I would like the archers to attack multiple units at once instead of having fifty archers shooting the same unit. This is a problem when there are one-hundred enemies rushing and each would die from three arrows but all fifty archers are shooting one at a time.

Could some one please tell me how to fix this. Thank You.
 
Try not misquoting me and Dr. Super Good, you'll destroy us all man, and if you just want it to work, try modifying Pheonix fire and make its cooldown time to match your archers attack cooldown, I'm not really surprised barrage didn't work, its sometimes buggy in my case.
 
Try not misquoting me and Dr. Super Good, you'll destroy us all man...

Sorry about that. Its fixed now.

...and if you just want it to work, try modifying Pheonix fire and make its cooldown time to match your archers attack cooldown, I'm not really surprised barrage didn't work, its sometimes buggy in my case.

I used it and it works perfectly but, yes but, I run into another problem using pheonix fire. All the units that are hit catch on fire and there is no buff listed in the buff option in the editor. Do you know how to remove this buff?
 
  • Attack
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Issued order) Equal to (Order(attack))
          • (Unit-type of (Triggering unit)) Equal to Archer
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target unit of issued order) Equal to (Load 1 of (Key (Target unit of issued order)) in hashtable)
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop
        • Else - Actions
          • Hashtable - Save Handle Of(Target unit of issued order) as 0 of (Key (Triggering unit)) in hashtable
          • Hashtable - Save Handle Of(Triggering unit) as 1 of (Key (Target unit of issued order)) in hashtable
  • Stop
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Archer
          • (Issued order) Equal to (Order(stop))
    • Actions
      • Hashtable - Clear all child hashtables of child (Key (Load 1 of (Key (Load 0 of (Key (Triggering unit)) in hashtable)) in hashtable)) in hashtable
      • Hashtable - Clear all child hashtables of child (Key (Triggering unit)) in hashtable
Hey how's this? It's supposed to save the value of the attacking unit in the hashtable and vice versa.
 
Status
Not open for further replies.
Back
Top