• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Wander Question!!! {how does the Wander ability work?}

Status
Not open for further replies.
Wander, every 5 seconds orders units with ability ''Wander'' to ''Move To'' random point in range. I think that ''Area of Effect'' is 500 or 600.

If you want to modify it, you will have to trigger it.


Note that you can add new conditions to this trigger.

  • Wander
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Set TempGroup = (Units in (Playable map area))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of <Wonder> for (Picked unit)) Greater than 0
            • Then - Actions
              • Set TempPoint = (Random point in (Region centered at (Position of (Picked unit)) with size (<Width>, <Height>)))
              • Unit - Order (Picked unit) to Move To TempPoint
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions
 
Status
Not open for further replies.
Back
Top