I want to make a trigger to activate when a whole squad is wipped out.
SQUAD:
Compossed by squad leader, machine gunner, 3 riflemen and a medic.
Squad leader's name sla01
machine gunner's name sla02
riflemen's names sla03, sla04, sla05 and
medic's name sla06
... at the beginning I used this code in the CONDITION field in the trigger:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">not(alive sla01) and not(alive sla02) and not(alive sla03) and not(alive sla04) and not(alive sla05) and not(alive sla06)[/QUOTE]
But when I used many squads it gets very tiring to do this everytime, so I wondered if there's a way to make trigger detect if a whole group is dead.
Maybe if I set this squad in a group like
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">sla01 setgroupid ["Eagle squad"][/QUOTE]
HOME
Reply With Quote