thetrooper 10 Posted April 15, 2014 Hi all, I can't work out how the following combined would work. Description: any of the four units in a trigger area, but 2 enemy units must be dead. (ff1 in thislist || ff2 in thislist || ff3 in thislist || ff3 in thislist) && (!(alive enldr) && !(alive en1)); Doesn't look right. If helps to simplify. The four units are in a group called FFGrp. Any help would be much appreciated Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 15, 2014 (edited) Simplification : ({_x in thislist} count [ff1,ff2,ff3,ff4] >1) AND ({alive _x} count [enldr,en1] == 0) Edited April 15, 2014 by ProfTournesol Share this post Link to post Share on other sites
k0rd 3 Posted April 15, 2014 Hi all, I can't work out how the following combined would work.Description: any of the four units in a trigger area, but 2 enemy units must be dead. (ff1 in thislist || ff2 in thislist || ff3 in thislist || ff3 in thislist) && (!(alive enldr) && !(alive en1)); Doesn't look right. If helps to simplify. The four units are in a group called FFGrp. Any help would be much appreciated {group _x == FFGrp} count thislist > 0 Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 15, 2014 Yeah, i didn't see the group thingy. You can have too : ({_x in thislist} count units FFgrp >1) AND ({alive _x} count [enldr,en1] == 0) Share this post Link to post Share on other sites
k0rd 3 Posted April 15, 2014 Yeah, i didn't see the group thingy. You can have too : ({_x in thislist} count units FFgrp >1) AND ({alive _x} count [enldr,en1] == 0) yep should work fine, change to FFgrp >0 though (only need 1 from the group to trigger) Share this post Link to post Share on other sites
ProfTournesol 956 Posted April 15, 2014 yep should work fine, change to FFgrp >0 though (only need 1 from the group to trigger) Indeed ! ({_x in thislist} count units FFgrp >0) AND ({alive _x} count [enldr,en1] == 0) Share this post Link to post Share on other sites
thetrooper 10 Posted April 15, 2014 Thanks for your responses. Works a treat ;) Share this post Link to post Share on other sites