• 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.

Game Restart {canceling a trigger after all players have been defeated}

Status
Not open for further replies.
Level 9
Joined
Aug 1, 2008
Messages
453
Is there a way to stop (Cancel) a trigger thats in process? Like i have a spawn trigger and i want it so when everyone dies it gets like canceled. Cause im trying to add a restart function after everyone dies.
 
Level 4
Joined
Jan 25, 2009
Messages
117
If the previous didnt work.Here's what i suggest. trigger off is a variable (type is real).

when u want to turn off the trigger then do it like this:

Event:(an event u want)
Conditions:
Actions: Set "trigger off" equal to 1

Event: Every 100 seconds of the game.
Conditon: If "trigger off" not equal to 1
Action:Spawn unit and make move.
 
Level 15
Joined
Aug 14, 2007
Messages
936
I understand your problem

If your trigger does everything between wait intervals then

you need to check a condition before executing the actions

If(condition) then actions

wait 30 seconds

If (condition) then actions

check every time your run the actions, that will prevent anything from running

now if you get the idea, the condition in this case will be to check if the unit is dead or alive, thats all, solved
 
Status
Not open for further replies.
Top