• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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