Milkman 1 Posted April 18, 2004 I have a where groups attack in waves. Once the first wave is killed off the second wave attacks. Three groups named terr1, terr2, and terr3 are the first wave. When all members of these groups are eliminated the next wave starts. What syntax can I use to detect these group's elimination? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">NOT (Alive terr1) Does not work because the group is not an object. Suggestions? Share this post Link to post Share on other sites
Sgt_Wilson 0 Posted April 18, 2004 Hi, Use IsNull, that will do it. Share this post Link to post Share on other sites
Zombie_Mod 0 Posted April 18, 2004 What about !alive leader terr1 Remember, there is always a leader in a team - even if 11 out of 12 get killed the last man is still the leader! If all squad is dead the above code will return false. Share this post Link to post Share on other sites
Bart.Jan 0 Posted April 18, 2004 Suggestions? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{alive _x} count (units terr1) + (units terr2) + (units terr3) == 0 or not so reliable <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">count (units terr1) + (units terr2) + (units terr3) == 0tested Share this post Link to post Share on other sites