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

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

Status
Not open for further replies.
Level 16
Joined
Jul 21, 2008
Messages
1,121
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.
Top