• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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.
 
Level 7
Joined
Sep 9, 2007
Messages
253
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.
Top