• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Question about triggering creep pathing systems

Status
Not open for further replies.
Level 7
Joined
Sep 9, 2007
Messages
253
So for TD's etc it is usually easiest to just have different triggers eg.

if unit enters region-A
order triggering unit to move (or attack-move) to region-B

if unit enters region-B
order triggering unit to move (or attack-move) to region-C

if unit enters region-C
if random number between 1 and 100 is < 50
then order triggering unit to move (or attack-move) to region-D
else order triggering unit to move (or attack-move) to region-Z

But if you have a very complex network of movement regions is there a better way to do it. Or is the best way just to have a list of say 50 different triggers which all handle a slightly different task. If I want to change all the triggers to attack-move instead of move i would have to go through 50 different triggers which would be a pain but not if I had the system set up to allow for that kind of thing.

I'ave had a look through a few maps and resources to see if I can see how other people do it but I haven't come across anything interesting/helpful yet.
 
Thanks for your replies, +rep given.

Chaosy I'm pretty new to JASS so I'm not really sure what you mean.
SeriousEnemy that link was interesting and helped me gain a slightly better understanding of rects vs regions.
 
Status
Not open for further replies.
Back
Top