OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Old_Man on 02 Feb 2003, 17:43:20
-
I need a snippet that will be the ending for a mission that only trips if
less than 8 units make it back.
something something < 8
-
count units grpname < 8
-
Ok, I put that in the condition field and now end trigger doesn't work at all.
-
What I need is correct syntax for condition count units BirdDog1 <0 but >8
-
Can't remember exactly but try
1 < count units birdog1 < 8
or something. For syntax questions its always best to refer to the [un]official command reference guide in the ed depot.
-
That doesn't work either :(
Command reference says---- ?_condVar>10:_var=_var+2
But it doesn't except that, Tried several variations.
-
Maybe this reads wrong, what I need is trigger "end 2" to end the mission if less than 8 units make it ; and "end 3" if more than 8 units make it. I've looked in the command reference and quite frankly I can't make heads or tales of it as I'm no good at writing code.
thanks one all for any imput that you might have,
Old_Man
-
So you're after a trigger that trips when the group moves onto it, with end 2 if there are less than 8 units and end 3 if there are more? I'd use two triggers:
Trigger 1
Radius: covering area to get back to
Condition: Group Leader Present
Type: end 2
Condition field: this and (west countside units group < 8 )
Trigger 2
Radius: covering area to get back to
Condition: Group Leader Present
Type: end 3
Condition field: this and (west countside units group >= 8 )
Group those triggers with your group (F2 and drag a blue line from the trigger to your group leader) and you'll be able to get the Group Leader present option in the condition box ;)
[size=0.5] [Edit] Would you believe that putting an 8 too close to a ) results in a 8) ? ;D[/edit] [/size]
-
Thanks Sui,
that did it.