mattxr 9 Posted September 12, 2006 what is wrong with this 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
hardrock 1 Posted September 12, 2006 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
Chris Death 0 Posted September 12, 2006 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
hardrock 1 Posted September 12, 2006 uhm yeah and off course the other way around: Ah, yes, even better Share this post Link to post Share on other sites