- Joined
- Sep 9, 2007
- Messages
- 253
So for TD's etc it is usually easiest to just have different triggers eg.
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.
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
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.