OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Old_Man on 02 Feb 2003, 17:43:20

Title: End 2
Post 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
Title: Re:End 2
Post by: Blanco on 02 Feb 2003, 17:49:54
count units grpname < 8

Title: Re:End 2
Post by: Old_Man on 02 Feb 2003, 18:18:36
Ok, I put that in the condition field and now end trigger doesn't work at all.
Title: Re:End 2
Post by: Old_Man on 02 Feb 2003, 18:27:07
What I need is correct syntax for condition  count units BirdDog1 <0 but >8
Title: Re:End 2
Post by: macguba on 02 Feb 2003, 18:56:32
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.
Title: Re:End 2
Post by: Old_Man on 02 Feb 2003, 19:31:19
That doesn't work either :(
 Command reference says---- ?_condVar>10:_var=_var+2
But it doesn't except that, Tried several variations.

           
Title: Re:End 2
Post by: Old_Man on 02 Feb 2003, 20:40:20
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
Title: Re:End 2
Post by: Sui on 03 Feb 2003, 00:50:19
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]
Title: Re:End 2
Post by: Old_Man on 03 Feb 2003, 22:30:21
Thanks Sui,
                        that did it.