Home   Help Search Login Register  

Author Topic: how do i deactivate a trigger with a script?  (Read 1390 times)

0 Members and 1 Guest are viewing this topic.

tai mai shu

  • Guest
how do i deactivate a trigger with a script?
« on: 24 Aug 2002, 04:10:06 »
lets say i runa script that checks if a unit is damaged,heals it, and keeps looping. welll, how can i deactivate it within the in-game editor, using triggers or waypoint??!?!  thanks in advance for any help.

tai mai shu

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:how do i deactivate a trigger with a script?
« Reply #1 on: 24 Aug 2002, 04:23:31 »
you need to put a condition in the script like this

#loop
blahblahblah
?stopscript : goto "end"
goto "loop"

#end
exit

then in the trigger put

stopscript = true

tai mai shu

  • Guest
Re:how do i deactivate a trigger with a script?
« Reply #2 on: 24 Aug 2002, 06:15:41 »
ah.  thats ingenious! im a newb, and didnt realize that variables used in triggers could be communicated to scripts.  hmm, cool.  thanks a lot!