• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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