Home   Help Search Login Register  

Author Topic: Help with a trigger command.  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

Sphinx

  • Guest
Help with a trigger command.
« on: 01 May 2003, 18:21:20 »
I want it so when two guys are dead (!Alive Man1 and !Alive Man2) and when at least 95% of the ungrouped enemy troops in the trigger are dead or gone.. The trigger is activated to call for more enemy troops. Please help.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with a trigger command.
« Reply #1 on: 01 May 2003, 18:39:58 »
Syntax not guaranteed.   Make a trigger over the relevant area:-

Activation box:   East present   (or whatever)
Condition:   (!Alive Man1) and (!Alive Man2) and ((count thislist) <= 5)
Plenty of reviewed ArmA missions for you to play

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #2 on: 01 May 2003, 19:11:40 »
Syntax not guaranteed.   Make a trigger over the relevant area:-

Activation box:   East present   (or whatever)
Condition:   (!Alive Man1) and (!Alive Man2) and ((count thislist) <= 5)


ill try that.. but i have to put east somewhere ?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with a trigger command.
« Reply #3 on: 01 May 2003, 19:41:35 »
thislist returns an array of the units firing the trigger.   So if you want to detect that the number of east units in the area is down to (say) five, you need to put east present in the activation box.      In which case count thislist counts the number of east units in the trigger area.   The trigger will fire when there are fewer than five, as long as the two named loons are dead.

Obviously the same principle holds good for west, etc.
Plenty of reviewed ArmA missions for you to play

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #4 on: 01 May 2003, 19:48:40 »
Understood and got it working.. Now.. is there any way i can make it so the Alpha and Bravo team leaders of West never die ? If not how could I make it so all radio commands that LDR1 and LDR2 make.. are transfered to whomever is in command ? And all the triggers and such too? ??  ::)

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #5 on: 01 May 2003, 19:52:40 »
After this trigger is activated... the WPnts of the two leaders are locked until a timed wp is activated and base raidios in that heavy resistance is headed their way and to hold the base at all costs.. now... how do i make it so both teams spread out at the next waypoint and take their own positions ????

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #6 on: 01 May 2003, 20:11:06 »
LOL how do I make a trigger activate another trigger ?  ::)

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with a trigger command.
« Reply #7 on: 01 May 2003, 20:27:21 »
I thought this topic had developed rather fast ... but then it turns out its all you.   ;D   You can modify your post, so if you think of something else its better to add it to your last post rather than making a new one.   Makes the thread easier to follow.

Anyway, you can use the command leader to make the group leader do stuff.   For example

leader grp1 sidechat "blah"

As long as you use that you never need to worry about the named group leader dying.

I don't fully understand the waypoint problem.   What are you trying to achieve?   What's going wrong?

Firing a trigger with a trigger?   First of all - don't.    If you can, use a script instead.    The first trigger fires the script, then everything that follows from that event is controlled in the script.

Anyway, assuming you do want to fire a trigger with a trigger, all you need is a variable.    In the first one:-

On activation:   newVar1=true

In the second one:-

Condition:  newVar1
Plenty of reviewed ArmA missions for you to play

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #8 on: 01 May 2003, 21:35:24 »
Hmm leader grp1 sidechat "Blah" dont seem to work... I typed it in exact... Am I missing any ( ) ?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with a trigger command.
« Reply #9 on: 01 May 2003, 22:48:49 »
dunno, check the syntax ... and I hope you worked out that you have to put

grp1 = group this

in the init field of the group leader in question  ;D ::) :P
Plenty of reviewed ArmA missions for you to play

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #10 on: 01 May 2003, 23:26:51 »
syntax ?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help with a trigger command.
« Reply #11 on: 02 May 2003, 00:36:53 »
Grammer, basically.    In the broadest sense are the commands in the correct order, are they spelt correctly, does each one have its correct arguments and are these arguments themselves correct, are there brackets in the right place and so on.

When you get an answer on these forums you should always check the commands in the command ref to make sure that all the details are correct.  

For example, check that its

leader grp1

and not

grp1 leader

In other words, always assume that the answer is wrong in some detail.   Check it yourself in the command reference and elsewhere.    
Plenty of reviewed ArmA missions for you to play

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #12 on: 02 May 2003, 02:11:11 »
ya.. when i play it... black text shows up in the top left corner..

Sphinx

  • Guest
Re:Help with a trigger command.
« Reply #13 on: 02 May 2003, 02:40:19 »
Is there anyway I can stop the leader from dying ?