Home   Help Search Login Register  

Author Topic: kill a trigger  (Read 731 times)

0 Members and 1 Guest are viewing this topic.

david-p

  • Guest
kill a trigger
« on: 07 Nov 2002, 14:54:50 »
simple enough.. a script can be called from one of 6 near-identical triggers. all i want is that script to be called once only, ie once one trigger has fired, all the rest need to become inactive.
please help i got a mental block!
thanks. dave

Bremmer

  • Guest
Re:kill a trigger
« Reply #1 on: 07 Nov 2002, 15:01:17 »
Hello

First set up your trigger conditions how you want them. Now tag this code on the end of your condition:

and not activated

In your init file or an init line somewhere define activated = false.
In the On Activation box of each trigger add the statement

; activated = true

to whatever else you had in there.
Now only the first trigger will work (unless you reset the parameter activated = false).

Cheers

david-p

  • Guest
Re:kill a trigger
« Reply #2 on: 07 Nov 2002, 23:08:14 »
arg!!!! i cant possibly state how infuriated i am!
i read your post, and thinks to myself, ive done almostexactly that already. but, what the hey, you spent the time writing i should try it. so chuff me its only gone and worked. thanks again
dave