A way to increase "Wanders" range?

Azlier

Old World Ghost
Reaction score
461
None that I see. The best I could suggest would be a dummy wander with a triggered effect.

EDITILICIOUSNESS: Something like this... It's leaky but it works.

Trigger:
  • Wander
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Level of Bash for (Picked unit)) Greater than (>) 0)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Move To (Random point in (Region centered at (Position of (Picked unit)) with size (500.00, 500.00)))

Change the region size to increase range. Not perfect, though. It wanders in a set rectangle, not a circle.
 

Killerphill

New Member
Reaction score
1
What does this skill do?
Not everyone, including I, knows what it does.

its a neutral ability that neutral passive units have which cause them to basically wander around, for example: a sheep with Wander would move around every where near hes spawn point like a confused sheep.

lol i hope you can understand my explanation.
 

CaptDeath

New Member
Reaction score
103
no in the map City Of Drugs There animals with wander that walk all they way up and down the map
they Mechanical sheep do the same
 

Azlier

Old World Ghost
Reaction score
461
CaptDeath... Wander lets a unit walk all over the map. The range only limits the next move. After a series of moves, a wandering unit can get quite far.
 

Killerphill

New Member
Reaction score
1
None that I see. The best I could suggest would be a dummy wander with a triggered effect.

EDITILICIOUSNESS: Something like this... It's leaky but it works.

Trigger:
  • Wander
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Level of Bash for (Picked unit)) Greater than (>) 0)) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Move To (Random point in (Region centered at (Position of (Picked unit)) with size (500.00, 500.00)))

Change the region size to increase range. Not perfect, though. It wanders in a set rectangle, not a circle.


i dont understand the condition inside the "unit group" ?

please explain :)
 

Azlier

Old World Ghost
Reaction score
461
The condition checks whether your unit has your custom Wander ability or not. It seems that I neglected to change the word Bash... :p
 

Azlier

Old World Ghost
Reaction score
461
Yes. On every unit in the entire map.
 

Killerphill

New Member
Reaction score
1
Just tested it on my map, every 3 seconds (when the triggers fires off) the game freezes for like a second...

so no good unfortunetly :(
 

Azlier

Old World Ghost
Reaction score
461
Possibly because it leaks and the fact that a whole lot of units are being ordered at once.
 

Killerphill

New Member
Reaction score
1
yep its cause a whole lot of units are being ordered at once.

ok how about this:
is there a way of creating a unit at a random location in region, but making the unit not be created on a cliff where it gets stuck!?
 

Azlier

Old World Ghost
Reaction score
461
Alas, your efforts to clean the leaks have failed! It leaks one unit group at map initialization, and a rect every five seconds.
 

Killerphill

New Member
Reaction score
1
I don't know where to remove the group :( .
Trigger:
  • Wander Initiation
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching ((Level of Wander (Neutral) for (Matching unit)) Greater than (>) 0)) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to wanderGroup

Trigger:
  • Wander
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in wanderGroup and do (Actions)
        • Loop - Actions
          • Set tempPoint = (Random point in (Region centered at (Position of (Picked unit)) with size (500.00, 500.00)))
          • Unit - Order (Picked unit) to Move To tempPoint
          • Custom script: call RemoveLocation(udg_tempPoint)

There.


i cant get the variable right! cant seem to find the "random" part :(
 

Azlier

Old World Ghost
Reaction score
461
Alas, your efforts to clean the leaks have failed! It leaks a point, and a rect every five seconds.

The point is (Position of (Picked Unit)).

The rect is (Region Centered at(...)).
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Trigger:
  • Wander Initiation
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set tempGroup = (Units in (Playable map area))
      • Unit Group - Pick every unit in tempGroup matching ((Level of Wander (Neutral) for (Matching unit)) Greater than (>) 0)) and do (Actions)
        • Loop - Actions
          • Unit Group - Add (Picked unit) to wanderGroup
      • Custom script: call DestroyGroup(udg_tempGroup)

Trigger:
  • Wander
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in wanderGroup and do (Actions)
        • Loop - Actions
          • Set tempPoint = (Random point in (Region centered at (Position of (Picked unit)) with size (500.00, 500.00)))
          • Unit - Order (Picked unit) to Move To tempPoint
          • Custom script: call RemoveLocation(udg_tempPoint)

THERE :) .

Also, for your question:
It's in the function list, Random Point In Region;
It's the second option.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top