Jump to content
Sign in to follow this  
Driveby

End trigger?

Recommended Posts

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... ghostface.gif

Share this post


Link to post
Share on other sites

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

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

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

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

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

in the init of the leader, put

groupalpha = group this

Share this post


Link to post
Share on other sites

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

ehh, what if someone in the group dies? will it still work?

Share this post


Link to post
Share on other sites
ehh, what if someone in the group dies? will it still work?

Don't worry. Test it yourself. smile_o.gif

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  

×