Well, depends if your variable changes throughout teh game, then under where u have set variable xyz = i you have an if/then/else action have teh IF to be xyz=0 then do your kickign actions else do nothing.
Untitled Trigger 001
Events
Conditions
Actions
Set Lives[(Player number of (Triggering player))] = (Lives[(Player number of (Triggering player))] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Lives[(Player number of (Triggering player))] Equal to 0
Then - Actions
Game - Defeat (Triggering player) with the message: Defeat!
Else - Actions
Untitled Trigger 001
Events
Unit - A unit enters Kill Region <gen>
Conditions
Actions
Set Lives = (Lives - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TempInteger Equal to 0
Then - Actions
Game - Defeat (Triggering player) with the message: Defeat!
Else - Actions
For the love of...Beelzebubson said:that would cause alot fo lag proabably though, depending on hwo often it checks.