HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Wandering Hostiles??

12-23-2002, 02:07 AM#1
Guest
Ok in a game where you travel lands looking for stuff I figure creeps should wander as well sort of like sheep. So I put ability Wander(Neutral) on a creep, this worked quite well but the only problem is, is because it says (Neutral) he will run away when attacked. Anyway to fix this problem?
12-23-2002, 02:34 AM#2
Dinadan87
Could you set a trigger which disables the ability when the unit is attacked, and then reenables it a few seconds later. Even if he's still being attacked a few seconds later the next attack will turn the ability off again. I'm not sure if it will work but I guess it's worth a try. Other than that you could try to make a trigger that orders the units to move to a random point in a circular area centered on the unit every so often. So every so often the unit will walk for a bit in a random direction without the ability.
12-23-2002, 02:43 AM#3
Guest
Hurry up on your map damn it I NEED YOU :D:ggani: 8)
12-23-2002, 03:02 AM#4
Ari
You could always use a trigger. Every 5 seconds or so, find every neutral on the map and order them to move 100 or so in a random direction (use polar coordinates). That would gradually have them drift all over the map like sheep. For more active wandering, give them a larger step radius.
12-23-2002, 03:05 AM#5
Guest
Nice idea man. Anyway you could give me exact code? I suck with triggs no joke.
12-23-2002, 03:45 AM#6
Dinadan87
Yo Ari, I just said something almost identical to your suggestion. You probably didn't even read the whole thing, lol
12-23-2002, 03:51 AM#7
Ari
oops, absolutely right - the curse of speed reading :)
12-23-2002, 03:51 AM#8
Dinadan87
Quote:
Originally posted by GlowSkulls
Hurry up on your map damn it I NEED YOU :D:ggani: 8)


You talking to me? Ok well I'm pretty much putting my other map on hold. Damn substrings aren't working for some reason. Anyway I might as well help you out. It'll be nice to contribute to something that'll probably get finished instead of starting a whole new idea that I'll probably scrap half way through the creation. Do you use AIM? If so contact, me at ChroniusPrince. I'll go ahead and make a wandering units trigger for ya.
12-23-2002, 01:05 PM#9
Sytadel
Another option (Worse IMO, but depends on what you're looking for) is using the action:

'Order, issue order targeting point' where point is 'random point in playable map area'. This would cause them to move all over the place quite randomly. You can also replace playable map area with a region, if you want them to wander but stay in a set region.
12-23-2002, 04:52 PM#10
Dinadan87
We took care of the problem now. I gave him a trigger which gave all neutral hostile units the wander ability, but when they get attacked they are transferred to player 12 who has wander disabled and then they are turned back after 5 seconds (and if it's still fighting after 5 seconds the next attack will set it to non-wander again of course)