• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Need help with attacking triggers

Status
Not open for further replies.
Level 1
Joined
Sep 11, 2010
Messages
1
I am working on a multiplayer map that has a neutral hostile race of trolls randomly attacking various players. However, i have a couple problems:

The attacking groups eventually return to their spawn point, and continue to
build up, my attempts to solve this end up crashing the map.

The Attack move command can only affect 12 units at a time, and since the
attacking groups eventually get bigger than this, it contributes to the
buildup

The trolls will not attack buildings

This trigger is supposed to order all the units near the spawn point to attack-move to an enemy unit, and continue looping until there are no units remaining to order. When run it crashes the program. any suggestions or alternate ways to do the same thing would be appreciated.

Unit Group - Order Attackers to Attack-Move To (Position of (Random unit from (Units owned by (Random player from (All enemies of Neutral Hostile)))))

Unit Group - Remove all units of (Units owned by Neutral Hostile matching ((Current order of (Matching unit)) Equal to (Order(attack)))) from Attackers

If ((Number of units in Attackers) Greater than 0) then do (Trigger - Run (This trigger) (ignoring conditions)) else do (Do nothing)
 

Attachments

  • Neutral Hostile Strikes Back.w3x
    120 KB · Views: 43
Last edited:
Status
Not open for further replies.
Top