Home   Help Search Login Register  

Author Topic: End 2  (Read 857 times)

0 Members and 1 Guest are viewing this topic.

Old_Man

  • Guest
End 2
« 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

Offline Blanco

  • Former Staff
  • ****
Re:End 2
« Reply #1 on: 02 Feb 2003, 17:49:54 »
count units grpname < 8

Search or search or search before you ask.

Old_Man

  • Guest
Re:End 2
« Reply #2 on: 02 Feb 2003, 18:18:36 »
Ok, I put that in the condition field and now end trigger doesn't work at all.

Old_Man

  • Guest
Re:End 2
« Reply #3 on: 02 Feb 2003, 18:27:07 »
What I need is correct syntax for condition  count units BirdDog1 <0 but >8

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:End 2
« Reply #4 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.
Plenty of reviewed ArmA missions for you to play

Old_Man

  • Guest
Re:End 2
« Reply #5 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.

           

Old_Man

  • Guest
Re:End 2
« Reply #6 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

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:End 2
« Reply #7 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]
« Last Edit: 03 Feb 2003, 00:52:51 by Sui »

Old_Man

  • Guest
Re:End 2
« Reply #8 on: 03 Feb 2003, 22:30:21 »
Thanks Sui,
                        that did it.