Jump to content
Sign in to follow this  
mattxr

Condiditon Help

Recommended Posts

what is wrong with this tounge2.gif

Quote[/b] ]!(alive con1 && con1a && con1b && con1c)

Its for when those 4 units are dead i want to do other things but i need this done first.

Share this post


Link to post
Share on other sites

Because "alive" affects only con1 in your example.

What you need is this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{not alive _x} count [con1, con1a, con1b, con1c] == 4

(or

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">{not alive _x} count units grp1 == count units grp1

)

Share this post


Link to post
Share on other sites

uhm yeah and off course the other way around:

"alive _x" count [con1,con1a, con1b, con1c] == 0

or

"alive _x" count units grp1 == 0

This way would check if the sum of alive guys, considering

the given units in array or group is at zero.

~S~ CD

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  

×