- Joined
- Mar 16, 2008
- Messages
- 1,013
Uncle helped me with this trigger but I changed some things on it, now it seems to not be working consistently. I just played a game and l lost as red player 1, I never got the final defeat button to leave the game. I think player 1 red (me) was not added to losing group?
It did seem to mark all the players correctly as winners/losers. So I'm kinda confused why player 1 red didn't get defeat pop up??? https://wc3stats.com/games/209166/mmd
Any insight would be appreciated. Thanks.
It did seem to mark all the players correctly as winners/losers. So I'm kinda confused why player 1 red didn't get defeat pop up??? https://wc3stats.com/games/209166/mmd
Any insight would be appreciated. Thanks.
-
Log Metadata Uncle
-

Events
-


Time - MMD_Timer expires
-
-

Conditions
-

Actions
-


-------- [CODE]~~~~~~~ --------
-


-------- Add Players to Winning Group if King's (team leader) Main Building is Alive --------
-


-------- ~~~~~~~[/CODE] --------
-


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



If - Conditions
-




MMD_PN Equal to 0
-
-



Then - Actions
-




Cinematic - Send transmission to Losing_Group_Var from a Neutral Passive.Orb Forger named |cffff0000GAME OVER... at (Center of (Playable map area)): Play No sound and display Please wait while m.... Modify duration: Add 38.00 seconds and Wait
-




Cinematic - Send transmission to Winning_Group_Var from a Neutral Passive.Orb Forger named |cff00ff00VICTORY|r at (Center of (Playable map area)): Play No sound and display Please wait while m.... Modify duration: Add 38.00 seconds and Wait
-




-------- [CODE]~~~~~~~ --------
-




-------- Team Red --------
-




-------- ~~~~~~~[/CODE] --------
-




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





If - Conditions
-






(King's Castle 0012 <gen> is alive) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Winning_Group_Var
-








Player Group - Remove (Picked player) from Losing_Group_Var.
-
-
-
-





Else - Actions
-
-




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





If - Conditions
-






(King's Castle 0012 <gen> is dead) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Losing_Group_Var
-








Player Group - Remove (Picked player) from Winning_Group_Var.
-
-
-
-





Else - Actions
-
-




-------- [CODE]~~~~~~~ --------
-




-------- Team Blue --------
-




-------- ~~~~~~~[/CODE] --------
-




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





If - Conditions
-






(King's Castle 0025 <gen> is alive) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Winning_Group_Var
-








Player Group - Remove (Picked player) from Losing_Group_Var.
-
-
-
-





Else - Actions
-
-




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





If - Conditions
-






(King's Castle 0025 <gen> is dead) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Losing_Group_Var
-








Player Group - Remove (Picked player) from Winning_Group_Var.
-
-
-
-





Else - Actions
-
-




-------- [CODE]~~~~~~~ --------
-




-------- Team Teal --------
-




-------- ~~~~~~~[/CODE] --------
-




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





If - Conditions
-






(King's Castle 0038 <gen> is alive) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Winning_Group_Var
-








Player Group - Remove (Picked player) from Losing_Group_Var.
-
-
-
-





Else - Actions
-
-




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





If - Conditions
-






(King's Castle 0038 <gen> is dead) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Losing_Group_Var
-








Player Group - Remove (Picked player) from Winning_Group_Var.
-
-
-
-





Else - Actions
-
-




-------- [CODE]~~~~~~~ --------
-




-------- Team Purple --------
-




-------- ~~~~~~~[/CODE] --------
-




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





If - Conditions
-






(King's Castle 0051 <gen> is alive) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Winning_Group_Var
-








Player Group - Remove (Picked player) from Losing_Group_Var.
-
-
-
-





Else - Actions
-
-




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





If - Conditions
-






(King's Castle 0051 <gen> is dead) Equal to True
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Losing_Group_Var
-








Player Group - Remove (Picked player) from Winning_Group_Var.
-
-
-
-





Else - Actions
-
-




-------- [CODE]~~~~~~~ --------
-




-------- Team Black and No Team --------
-




-------- ~~~~~~~[/CODE] --------
-




-------- If 4 kings are defeated then black team wins --------
-




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





If - Conditions
-






DefeatCounter Equal to 4
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Winning_Group_Var
-








Player Group - Remove (Picked player) from Losing_Group_Var.
-
-
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Winning_Group_Var
-








Player Group - Remove (Picked player) from Losing_Group_Var.
-
-
-
-





Else - Actions
-
-




-------- If 3 kings are defeated then 1 king remains and black team has been defeated --------
-




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





If - Conditions
-






DefeatCounter Equal to 3
-
-





Then - Actions
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Losing_Group_Var
-








Player Group - Remove (Picked player) from Winning_Group_Var.
-
-
-






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







Loop - Actions
-








Player Group - Add (Picked player) to Losing_Group_Var
-








Player Group - Remove (Picked player) from Winning_Group_Var.
-
-
-
-





Else - Actions
-
-




-------- Players with no team or AFK players --------
-




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





Loop - Actions
-






Player Group - Add (Picked player) to Losing_Group_Var
-






Player Group - Remove (Picked player) from Winning_Group_Var.
-
-
-
-



Else - Actions
-
-


Wait 1.00 seconds
-


-------- [CODE]~~~~~~~ --------
-


-------- Log Data --------
-


-------- ~~~~~~~[/CODE] --------
-


Set VariableSet MMD_PN = (MMD_PN + 1)
-


Set VariableSet MMD_Player = (Player(MMD_PN))
-


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



If - Conditions
-




(MMD_Player controller) Not equal to Computer
-




Or - Any (Conditions) are true
-





Conditions
-






(MMD_Player slot status) Equal to Is playing
-






(MMD_Player slot status) Equal to Has left the game
-
-
-
-



Then - Actions
-




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





If - Conditions
-






(MMD_Player is in Winning_Group_Var.) Equal to True
-
-





Then - Actions
-






-------- Winner: --------
-






Custom script: call MMD_UpdateValueString("mode", udg_MMD_Player, udg_MMD_String[udg_MMD_PN])
-






Wait 0.10 seconds
-






Custom script: call MMD_FlagPlayer (udg_MMD_Player, MMD_FLAG_WINNER)
-






Wait 0.10 seconds
-
-





Else - Actions
-






-------- Loser: --------
-






Custom script: call MMD_UpdateValueString("mode", udg_MMD_Player, udg_MMD_String[udg_MMD_PN])
-






Wait 0.10 seconds
-






Custom script: call MMD_FlagPlayer (udg_MMD_Player, MMD_FLAG_LOSER)
-






Wait 0.10 seconds
-
-
-
-



Else - Actions
-
-


Wait 0.10 seconds
-


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



If - Conditions
-




MMD_PN Equal to 12
-
-



Then - Actions
-




-------- Skip players 13, 14, 15, and 16: --------
-




Set VariableSet MMD_PN = 16
-




Trigger - Run Log Metadata Uncle <gen> (ignoring conditions)
-
-



Else - Actions
-




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





If - Conditions
-






MMD_PN Equal to 20
-
-





Then - Actions
-






-------- All players have been logged, finish: --------
-






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







Loop - Actions
-








-------- Victory --------
-








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






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







Loop - Actions
-








-------- Defeat --------
-








Game - Defeat (Picked player) with the message: |cffff0000GAME OVER...
-
-
-






Cinematic - Send transmission to Losing_Group_Var from a Neutral Passive.Orb Forger named |cffff0000GAME OVER... at (Center of (Playable map area)): Play No sound and display |cff00ff00Metadata .... Modify duration: Add 38.00 seconds and Wait
-






Cinematic - Send transmission to Winning_Group_Var from a Neutral Passive.Orb Forger named |cff00ff00VICTORY|r at (Center of (Playable map area)): Play No sound and display |cff00ff00Metadata .... Modify duration: Add 38.00 seconds and Wait
-
-





Else - Actions
-






-------- Run for the next player: --------
-






Trigger - Run Log Metadata Uncle <gen> (ignoring conditions)
-
-
-
-
-
-
Last edited:

