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

Training waves

Status
Not open for further replies.
It sounds like a basic attack wave pattern. You can look at moyackx's AI tutorial or mine (in the signature) to see how it's done. Also, to set the area the units will get to you can call SetCaptainHome at the start of the script.
 
Here is a simple (not leak free) system i'm using, if you don't want to go into configuring AI

attackernumber is an integer that increases over time in a separate trigger

  • Events
    • Unit - A unit Finishes training a unit
  • Conditions
    • (Unit-type of (Triggering unit)) Equal to Ice Troll Hut (Chief)
    • (Troll main <gen> contains (Triggering unit)) Equal to True
  • Actions
    • Unit - Order (Triggering unit) to train/upgrade to a Ice Troll Warlord
    • Unit Group - Add (Trained unit) to trollattackers[1]
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Number of units in trollattackers[1]) Greater than or equal to attackernumber
      • Then - Actions
        • Unit Group - Pick every unit in trollattackers[1] and do (Actions)
          • Loop - Actions
            • Unit - Order (Picked unit) to Attack-Move To (Position of xxxxx)
        • Unit Group - Remove all units from trollattackers[1].
      • Else - Actions
 
Status
Not open for further replies.
Back
Top