Annoying Problem with Victory Trigger
Hey all I have been fiddling with a custom victory trigger for awhile and it is getting real annoying. I have come a long way trying to get this to work but it still fails in a few areas.
The main problem I have is that Removing the triggering player from the player group doesn't work therefore it is impossible to have 0 as a player group #. This basically throws a wrench into the entire thing. No matter what, it doesn't decrease the #. Even if that player is defeated. I have been testing this on computers, so I am unsure of if it would reduce that for actual players on something like Battle.net.
Hey all I have been fiddling with a custom victory trigger for awhile and it is getting real annoying. I have come a long way trying to get this to work but it still fails in a few areas.
The main problem I have is that Removing the triggering player from the player group doesn't work therefore it is impossible to have 0 as a player group #. This basically throws a wrench into the entire thing. No matter what, it doesn't decrease the #. Even if that player is defeated. I have been testing this on computers, so I am unsure of if it would reduce that for actual players on something like Battle.net.
-
Victory Conditions
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Triggering player) slot status) Equal to Is playing
-


(Count structures controlled by (Owner of (Triggering unit)) (Exclude incomplete structures)) Equal to 0
-


((Triggering player) is in Player Group - Neutral Hostile) Equal to False
-
-

Actions
-


Game - Display to (All players) the text: ((Name of (Triggering player)) + has been defeated.)
-


Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!
-


Player Group - Pick every player in (All players) and do (Actions)
-



Loop - Actions
-




Player Group - Remove (Triggering player) from (All enemies of (Picked player))
-




Player Group - Remove (Triggering player) from (All allies of (Picked player))
-




Player Group - Remove (Triggering player) from (All players)
-




Game - Display to (All players) the text: (String((Number of players in (All allies of (Picked player)))))
-




Game - Display to (All players) the text: (String((Number of players in (All enemies of (Picked player)))))
-




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





If - Conditions
-






((Triggering player) controller) Equal to Computer
-






(Number of players in (All enemies of (Picked player))) Equal to 0
-
-





Then - Actions
-






Game - Victory (Picked player) (Show dialogs, Show scores)
-
-





Else - Actions
-
-




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





If - Conditions
-






((Picked player) slot status) Equal to Is playing
-






(Number of players in (All enemies of (Picked player))) Equal to 0
-
-





Then - Actions
-






Game - Victory (Picked player) (Show dialogs, Show scores)
-
-





Else - Actions
-
-
-
-
-
Last edited:



