Jump to content
Sign in to follow this  
Milkman

Count dead groups

Recommended Posts

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

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
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×