HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wander

01-11-2004, 09:40 PM#1
Eriond
The wander (neutral) ability doesn't seem to work on computer controlled units (player 11). Is there anyway I could get it to work?
01-11-2004, 09:42 PM#2
Narwanza
you could make a wander AI. It would be simple, just every 5 secs of game order unit to move to random point in map.
01-11-2004, 09:54 PM#3
Eriond
It's not the same... I suppose I could do a point with polar offset, randomly... Yeah, that'd work. Thanks.
01-12-2004, 12:22 AM#4
AllPainful
It WILL work on computer controlled units, but you have to do a "AI-Ignore Guard Position" otherwise the unit will just go back to where it wandered from.

Unless your computer has an AI, then it won't work because the computer would be giving it orders.

I know it works because my map has some computer controlled units that have the wonder ability.
01-12-2004, 03:51 PM#5
Vexorian
Note that wander doesn't work like Starcraft's junk yard dog, so when a unit is wandering around it will * AVOID to ATTack *
01-12-2004, 06:17 PM#6
AllPainful
* AVOID to ATTack * ???????

Ok, I sorry but I am unaware what you mean. I use the wander ability all the time yet I have never seen any avoidence in the units, they wander around like there is no care in the world, ignoring any units unless it comes within range, then they out and out attack.

Can you please explain what you meant by the above statement * AVOID to ATTack *?
01-12-2004, 07:42 PM#7
FerretDruid
I had the same experience. I thought units would not aquire targets if they had Wander but it turns out that normal critters just don't have any attack :ggani:. Given attacks, they will aquire as usual.

So what you talkin' about Vex?
01-12-2004, 08:15 PM#8
AllPainful
I know all about wander, I even know some things that others don't seem to know... Because I use wander in my maps alot, heck, in my TD there is an entire race (completely controlled by the computer, with the players having shared control) that all but 1 of its units have the wander ability. :D

Did you know Wander STACKS?

A unit with 2 wanders will move around twice as much! LOL (yes I tested this fact, thats how I found out...)

I was just trying to figure out what Vex meant by the "Avoid" part, yes, if a unit doesn't have an attack it will run away if attacked, but if it does have an attack, it will attack and cast spells like any other unit.

When a unit that has wander is given any order (be it a move, patrol or attack) it over rules the "Wander" ability, hense if you are in control of a unit that has wander that you don't want to wander, you can tell it to hold position or Patrol and it will.

Wander is a fun ability to play with, for realism, someone should make a modified melee map, where the only modifications is that ALL the units have Wander and so you HAVE to keep an eye on your units, and tell them to hold position if you don't want them wandering off... that would be an interesting game.... LOL....

Dang, one little reply and I kinda just went on and on.........
01-13-2004, 01:44 PM#9
Vexorian
Ok, I'll elaborate, Units with attack and wander will eventually stop attacking and move out of the range of the target unit ( Didn't test with trigger orders though )
01-13-2004, 05:12 PM#10
AllPainful
Really? Never had that happen.

How often/How long till they do that?

Could it be the "AI - Guard Position" bug that is doing that?
01-13-2004, 06:25 PM#11
Ligature
Wander works - as far as I can tell - EXACTLY like the trigger you guys are talking about - it issues move orders to the unit at somewhat random intervals, each of which tells the unit to move to a random point within a given radius.

Since move orders will override the unit's current behavior, it stands to reason that with either the trigger or the ability, the unit will stop attacking momentarily to move to another location.

You could solve this problem for the trigger, by including conditions specifying that no enemy units are within range. As for the ability... I guess you could rig it so it removed wander from units within range of an enemy, and then added it again... that would be some rough chicken though...