Home   Help Search Login Register  

Author Topic: make a trigger activate when units die  (Read 822 times)

0 Members and 1 Guest are viewing this topic.

_Ross_

  • Guest
make a trigger activate when units die
« on: 09 Jul 2003, 01:55:00 »
i need to figure out how to make a trigger activate when some units die.

thanks ;D

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:make a trigger activate when units die
« Reply #1 on: 09 Jul 2003, 02:10:13 »
in the "Condition field", write:

!alive bob


just delete the "this" and replace it w/ that command!  :-*

PS. (the "!" means "not")

_Ross_

  • Guest
Re:make a trigger activate when units die
« Reply #2 on: 09 Jul 2003, 02:17:09 »
them what does ? mean?

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:make a trigger activate when units die
« Reply #3 on: 09 Jul 2003, 02:28:17 »
 

 :o ??? ;D


ok.  ::) listen up, matey!


>Create a trigger, and in the "Condition" field of the trigger window, write this:


NOT (Alive Bob)

==============

And be sure to delete the "this" (the default text in that field or box).  :o

Then just name your unit BOB in his "NAME" field, and thats it!  :-* when bob dies, the trigg will fire!


« Last Edit: 09 Jul 2003, 02:29:00 by Tomb »

borrowed soap

  • Guest
Re:make a trigger activate when units die
« Reply #4 on: 09 Jul 2003, 03:06:53 »
if there r more than one units perhaps:

      myArray = [bob,mary,jeff,alice,maxwell]

then in the condition field of the trigger:

      count myArray != count myArray

*oops, just realized u would need a second trigger that continually counts your array and resizes its after a death.  i dont know what your array is, but if its a  <side> then the    count    command would maybe work here too, with the <side> of your array.   in the Activation field of the second trigger:
myArray = West countside thislist
maybe that helps?


 :D a very good question for my increasingly bad answer  lcd lol
« Last Edit: 09 Jul 2003, 03:18:41 by borrowed soap »

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:make a trigger activate when units die
« Reply #5 on: 09 Jul 2003, 03:11:05 »
@ soup

:wow:

dats amazing but :P

how can somin not equal itself ?

but u can do

"alive _X" count arrayname == 1

so it activates only wen deres 1 alive units from all units in da array

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

gadolinite

  • Guest
Re:make a trigger activate when units die
« Reply #6 on: 09 Jul 2003, 19:18:44 »
 :-\ :-\Ross, I could have told you this :-\ :-\

gadolinite