• 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.

Roaming units

Status
Not open for further replies.
Level 1
Joined
Jul 8, 2014
Messages
4
Hello.
Its me again ^ ^ I really don't have idea how to make units ,,free walking''. I was searching for tutorials but there was none. I want to make villagers who belongs to (computer) Grey roam in the city. Now they are just simply standing. Walking villagers are really important part of my map. Thanks for help:)
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
Do not know the nature of the map, but if the villagers ever need to cast spells or be ordered to do anything , the Wander ability could potentially ruin that. You can easily trigger this, picking all the villagers and picking a random coordinate for each to move to and could be restricted by range and any other factors you desire.
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
It is only really viable to have at most a hundred or two wondering units. Any more will cause issues such as map performance difficulties and/or movement difficulties for the owning player.

As in units with Wander ability ('AWan') or triggering units to wander?

I would hope there would be no map performance difficulties with 'AWan.' Unless Blizzard made 'AWan' use their path finding system (sadness :[).

Also, if you want a wandering unit to cast spells or fight, you can trigger when to remove/add wander ability. e.g. a wandering creep is in combat, remove the wander ability. Then, when the creep is out of combat, add it back in.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
As in units with Wander ability ('AWan') or triggering units to wander?
More as in for map performance caused by too many units. This is why creeps despawn in good RPGs when you are not in the area.

Another effect could be movement overload (too many units moving at same time) to very poor AI performance due to too many units to consider.
 
Last edited:
Status
Not open for further replies.
Top