Home   Help Search Login Register  

Author Topic: Stop a script from a trigger  (Read 694 times)

0 Members and 1 Guest are viewing this topic.

Relbik

  • Guest
Stop a script from a trigger
« on: 08 Oct 2003, 03:21:10 »
Been awhile since I've been here.

Anyway, how can I stop a script from a trigger?

example:
East detected trigger
on activation: []exec "flash.sqs"
on deactivation: ??? "flash.sqs"

Thanks

deaddog

  • Guest
Re:Stop a script from a trigger
« Reply #1 on: 08 Oct 2003, 03:44:26 »
You need a global variable.  Put something like this at the beginning of your flash.sqs script:

stopflash=false

and then somewhere in the script (I assume you have a loop in there):

?stopflash:exit


In the deactivation box of the trigger put:

stopflash=true


Relbik

  • Guest
Re:Stop a script from a trigger
« Reply #2 on: 08 Oct 2003, 03:46:16 »
Excellent!!!  Thanks.