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

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