Guy1 is supposed to be the group leader? Or other squad member? And do I need to put there only the leader (or squad member, dunno), or all the guys in my squad (guy2, guy3 etc ...).
Let's have a look, what the trigger below does
Trigger 1:
size: (as big as it covers your whole squad - maybe a lil bit
bigger to get sure it covers the squad really)
activation: west/present/once
condition: this
onActivation: guy1 = thislist select 0; group1 = group guy1
When you start your game, the trigger becomes activated,
because your west squad is inside the trigger area.
The trigger now creates an array of all west units inside
it's range. This array can be accessed by thislist.
If you would give the trigger a name in the name field, then
you could access the trigger list from anywhere else aswell
by "list triggername".
Now the code: guy1 = thislist select 0
This tells the trigger to name the first unit in it's trigger list
with the name "guy1" (can be a groupleader or whatever)
Now the code: group1 = group guy1
This tells the trigger to give the group of the unit we named
guy1 (above) the groupname "group1"
:note - it doesn't matter if "guy1" is the groupleader or not,
as the code says: group1 = group guy1 - and this means
that the group, where this unit is a member from has to be
named "group1".
:sidenote - it should only be the one western group inside
the trigger area, which we are talking about. If there were
two different groups in the same trigger area, it could happen
that the wrong group will be named "group1"
:edit - ah yeah forgot your secondary question in question 1
You don't have to name your other units, and don't use those
names (guy1,group1) already in the unit's name fields.
The names "guy1" and "group1" will be defined in-game when
using my suggested method. If you use the same names already before, you would create two equal names when starting the game, and then: who is who ??
I think, when reading my explanation of the trigger above,
you should already see, why it isn't required to name the
other guys of the group.
Now to the second trigger:
"alive _x" count (units group1) == 0
When I press ok in the trigger it says: type Bool, expected Nothing.
What to do?
Could you tell me exactly, how you did it, because i can only
imagine a typo or a missclick somewhere in the trigger.
The code:
"alive _x" count (units group1) == 0
should work for sure if it is placed into the condition field
(and only this code in our case - not THIS or TRUE with the code)
Just make sure that you've entered the syntax correct:
~S~ CD