Driveby 0 Posted March 6, 2004 right, i want to make an end trigger that only ends after THE WHOLE group is in it. i have read the big sticky topic and tried a few "solutions", but no luck. can you help? i actually want to make the trigger end when two groups enter it. how is that done? i saw something like in the res campaign... Share this post Link to post Share on other sites
AliMag 0 Posted March 6, 2004 Hi, try putting this line in the condition edit box: "_x in thislist" count units <group> == count units <group> Just replace <group> by the group name. The trigger will activate only if ALL the units in the group are inside. From there I guess you can do what you want. Cheers Share this post Link to post Share on other sites
Bart.Jan 0 Posted March 7, 2004 for one group: group (F2) leader of the group with the trigger and then change trigger activation for more groups: do not group it but change condition to: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">"_x in thislist" count (units groupA)+(units gropuB) == "alive _x" count (units groupA)+(units groupB) tested Share this post Link to post Share on other sites
dinger 1 Posted March 7, 2004 and remember that if you have more than one End trigger on a given end #, they all need to trigger in order to end. Share this post Link to post Share on other sites
Driveby 0 Posted March 7, 2004 hi hi hi there, how do i change/make the group have a name? where do i write that? Share this post Link to post Share on other sites
Driveby 0 Posted March 7, 2004 is that "this setgroupid" or just "setgroupid", in the init field of the leader? EDIT: i think i got the thing about groupid, but the trigger will not recognize what Dinger says i should put in the triggers condition field. is says: Invalid number in expression darn! Share this post Link to post Share on other sites
MrZig 0 Posted March 7, 2004 in the init of the leader, put groupalpha = group this Share this post Link to post Share on other sites
Driveby 0 Posted March 7, 2004 WOW, it works. i made alotta mistakes, but it works. you were all very helpful! thanks a bunch! Share this post Link to post Share on other sites
Driveby 0 Posted March 7, 2004 ehh, what if someone in the group dies? will it still work? Share this post Link to post Share on other sites
Bart.Jan 0 Posted March 7, 2004 ehh, what if someone in the group dies? will it still work? Don't worry. Test it yourself. Share this post Link to post Share on other sites