• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] stop trigger execution

Status
Not open for further replies.
Level 4
Joined
Feb 1, 2008
Messages
25
I seem to be stumped on this one. I can't find a way to stop a trigger that is already being executed. Skip remaining actions would work but it doesn't allow you to pick the trigger who's actions you want skipped. I've tried finding the JASS coding for skip remaining actions to see if i could alter it to apply to a different trigger, but it not displaying the code for it!! grr... could anyone help out with this? I've tried destroy trigger, remove from queue, remove all actions etc, but none of those seem to work on a trigger that is already being executed.

Basically, I need something along these lines:

Trigger - take Stopthistrigger <gen> and skip remaining actions

(i would include this in the actual trigger i want stopped, but i am trying to make it occur with text input...)
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
If "StopThisTrigger" doesn't contain waits, and thus is executed in one part, you can just turn it off, as there'll no longer be any remaining actions.
If that trigger DOEs contain waits and you want to skip actions after the waits when another trigger runs, you could adapt the "StopThisTrigger" from

  • ...
  • Wait 2.0 seconds
  • ...
Into
  • ...
  • wait 2 seconds
  • If GlobalBooleanVar = true then
    • ...
  • else
    • skip remaining actions
Globalbooleanvar is a boolean, on default false, and is set to true when your second trigger runs.
 
Status
Not open for further replies.
Top