Untitled Trigger 002
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(String((Number of units in (Units owned by Player 1 (Red))))) Equal to 0
Then - Actions
Game - Defeat Player 1 (Red) with the message: Defeat!
Else - Actions
Do nothing
PHP:Untitled Trigger 002 Events Unit - A unit Dies Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (String((Number of units in (Units owned by Player 1 (Red))))) Equal to 0 Then - Actions Game - Defeat Player 1 (Red) with the message: Defeat! Else - Actions Do nothing
How Can i do so when a player lost all his units and building gets defeated? ( A message pop up and says for example "You're Defeated")
Made_in_WE said:Code:Untitled Trigger 002 Events Unit - A unit Dies Conditions Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (String((Number of units in (Units owned by Player 1 (Red))))) Equal to 0 Then - Actions Game - Defeat Player 1 (Red) with the message: Defeat! Else - Actions Do nothing