- Joined
- Aug 19, 2007
- Messages
- 1,377
Hi all.
My defeat condition trigger does not always seem to work correctly. Sometimes a player is defeated after losing a building while he/she still has other buildings. This trigger is from/for my Starcraft Hybrids maps;
My defeat condition trigger does not always seem to work correctly. Sometimes a player is defeated after losing a building while he/she still has other buildings. This trigger is from/for my Starcraft Hybrids maps;
-
Defeat
-

Events
-


Unit - A unit Dies
-
-

Conditions
-

Actions
-


Set Defeat_Group = (Units owned by (Owner of (Dying unit)) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) is A structure) Equal to True)))
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Triggering unit) is A structure) Equal to True
-




(Number of units in Defeat_Group) Equal to 0
-
-



Then - Actions
-




Game - Display to (All players) the text: ((Player + (Name of (Owner of (Dying unit)))) + has been killed!)
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Number of units in Defeat_Group) Equal to 0
-




(Owner of (Dying unit)) Not equal to Neutral Hostile
-




(Owner of (Dying unit)) Not equal to Neutral Victim
-




(Owner of (Dying unit)) Not equal to Neutral Extra
-




(Owner of (Dying unit)) Not equal to Neutral Passive
-
-



Then - Actions
-




Game - Defeat (Owner of (Dying unit)) with the message: All your buildings ...
-
-



Else - Actions
-
-


Custom script: call DestroyGroup(udg_Defeat_Group)
-
-

