Jump to content
Sign in to follow this  
_Hekler_

A little problem

Recommended Posts

Ok I have named  group with

IV1 = group this

That is the trigger that reconises they are dead and it is supposed to activate this trigger

but when I start I get this message up the top

'not alive (IV1)/#/': Error Type Group, Expected Object

It works when I replace the IV1 (Which is the name of the group) with the name of a unit

Share this post


Link to post
Share on other sites

Put instead:

( "_x alive" count units IV1 ) == 0

That sentence is true when all units of IV1 are dead.

Share this post


Link to post
Share on other sites

Sure beats the way I've been doing it...

Naming each piece of the squad...

Support1

Support2

Support3

Support4

!(alive Support1) and !(alive Support2) and !(Support3) and !(Support4)

Thanks for the tip... biggrin.gif

Pomp

Share this post


Link to post
Share on other sites

The is not space between _x alive or it don't work

but Then the game ends straight away

untill i can get the group one working i'm using the individual unit way. 24 BLOODY UNITS!

Share this post


Link to post
Share on other sites

Condition for your trigger :

( "alive _x" count units IV1 ) == 0

Share this post


Link to post
Share on other sites

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote </td></tr><tr><td id="QUOTE"> Condition for your trigger :

( "alive _x" count units IV1 ) == 0<span id='postcolor'>

Ooops.. sorry.

That is the right way, indeed.. smile.gif

Share this post


Link to post
Share on other sites

condition:

</span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">not (alive IV1)<span id='postcolor'>

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  

×