• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Solved] Change color(structures)

Status
Not open for further replies.
Level 11
Joined
Jun 20, 2017
Messages
380
How can I change the color of the structure to black (when a unit dies or a player leave the game) only in minimap?!
Look at this picture that they changing to purple
b.jpg
 
One way can be to change the owner to the player with player colour "black" and "not change colour".
That means, the colour of the units do not change, they look alike, but the colour on minimap does in fact change.

However this solution does not work if you need that player or different players for different leavers.
 
You can detect when a player leaves the game and then set all his units to neutral victim.

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) leaves the game
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
        • Loop - Actions
          • Unit - Change ownership of (Picked unit) to Neutral Victim and Retain color
Just put a condtion to check if the unit is a building


  • Untitled Trigger 001 Copy Copy
    • Events
      • Player - Player 1 (Red) types a chat message containing l as An exact match
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A structure) Equal to True
            • Then - Actions
              • Unit - Change ownership of (Picked unit) to Neutral Victim and Retain color
            • Else - Actions
I dont know how you can do it if a unit dies and the player is still in the game tho, i think it's not possible
 
Last edited:
It works only in game, not minimap!!!
  • Humans Dead
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is in UnitGroup_Humans) Equal to (==) True
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer_InGameHumans Greater than (>) 0
        • Then - Actions
          • Set Integer_InGameHumans = (Integer_InGameHumans - 1)
        • Else - Actions
      • Sound - Play VarimathrasPissed6 <gen>
      • Game - Display to (All players) the text: (Strings_PlayerColors[(Player number of (Owner of (Dying unit)))] + has fallen.)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Owner of (Killing unit)) is in PlayerGroup_Vampires) Equal to (==) True
          • Then - Actions
            • Player Group - Make PlayerGroup_Humans treat (Player group((Owner of (Dying unit)))) as an Enemy
            • Player Group - Make (Player group((Owner of (Dying unit)))) treat PlayerGroup_Humans as an Enemy
            • Player Group - Make PlayerGroup_Vampires treat (Player group((Owner of (Dying unit)))) as an Ally with shared vision
            • Player Group - Make (Player group((Owner of (Dying unit)))) treat PlayerGroup_Vampires as an Ally with shared vision
            • Player Group - Remove (Owner of (Dying unit)) from PlayerGroup_Humans
              • Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
                • Loop - Actions
                  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Owner of (Killing unit)) Equal to (==) (Player((Integer A)))
                    • Then - Actions
                      • Player Group - Add (Owner of (Dying unit)) to PlayerGroup_Vampires
                      • Unit - Create 1 Balnazzar (Evil) for (Owner of (Dying unit)) at (Center of 002 Spawn Vampires <gen>) facing Default building facing (270.0) degrees
                      • Camera - Pan camera for (Owner of (Last created unit)) to (Position of (Last created unit)) over 0.00 seconds
                      • Selection - Select (Last created unit) for (Owner of (Dying unit))
                      • Hero - Create Vampiric Research Center and give it to (Last created unit)
                      • Hero - Create Scroll of Recall and give it to (Last created unit)
                      • Player - Set (Owner of (Last created unit)) Current gold to 50
                      • Player - Set (Owner of (Last created unit)) Current lumber to 0
                      • Set Integers_Leak[(Player number of (Owner of (Last created unit)))] = 0
                      • Set Point_Visibility = (Position of Shop 1 0010 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                      • Set Point_Visibility = (Position of Shop 2 0021 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                      • Set Point_Visibility = (Position of Shop 3 0027 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                      • Set Point_Visibility = (Position of Shop 4 0011 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                      • Set Point_Visibility = (Position of Shop 5 0015 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                      • Set Point_Visibility = (Position of Shop 6 0012 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                      • Set Point_Visibility = (Position of Shop Staff 0013 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                      • Set Point_Visibility = (Position of Shop Vampiric 0019 <gen>)
                      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from Point_Visibility to a radius of 512.00
                      • Custom script: call RemoveLocation(udg_Point_Visibility)
                    • Else - Actions
                      • Player Group - Add (Owner of (Dying unit)) to PlayerGroup_HumansDead
                        • Do Multiple ActionsFor each (Integer B) from 1 to 3, do (Actions)
                          • Loop - Actions
                            • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Triggering player))] + 2) to (Strings_PlayerColors[(Player number of (Triggering player))] + (Dead)|r)
            • Set UnitGroup = (Units owned by (Owner of (Dying unit)) matching (((Unit-type of (Matching unit)) Not equal to (!=) Balnazzar (Evil)) and (((Matching unit) is A structure) Not equal to (!=) True)))
            • Unit Group - Pick every unit in UnitGroup and do (Actions)
              • Loop - Actions
                • Unit - Remove (Picked unit) from the game
                • If (((Picked unit) is A ground unit) Equal to (==) True) then do (Unit - Remove (Picked unit) from the game) else do (Do nothing)
                • If (((Picked unit) is A Hero) Equal to (==) True) then do (Unit - Remove (Picked unit) from the game) else do (Do nothing)
            • Custom script: call DestroyGroup(udg_UnitGroup)
            • Set UnitGroup = (Units in (Playable map area) owned by (Owner of (Dying unit)))
            • Unit Group - Pick every unit in UnitGroup and do (Actions)
              • Loop - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • Multiple ConditionsOr - Any (Conditions) are true
                      • Conditions
                        • (Unit-type of (Picked unit)) Equal to (==) Builder (Male)
                        • (Unit-type of (Picked unit)) Equal to (==) Builder (Female)
                  • Then - Actions
                    • Unit - Remove (Picked unit) from the game
                  • Else - Actions
                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • (Unit-type of (Picked unit)) Not equal to (!=) Balnazzar (Evil)
                  • Then - Actions
                    • Unit - Change ownership of (Picked unit) to Neutral Hostile and Retain color
                    • Animation - Change (Picked unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 50.00% transparency
                    • Unit - Pause (Picked unit)
                  • Else - Actions
            • Custom script: call DestroyGroup(udg_UnitGroup)
            • Set UnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is A structure) Equal to (==) True))
            • Unit Group - Pick every unit in UnitGroup and do (Actions)
              • Loop - Actions
                • Unit - Add a 30.00 second Generic expiration timer to (Picked unit)
            • Custom script: call DestroyGroup(udg_UnitGroup)
            • Game - Display to (All players) the text: (There are |cffffff00 + (((String(Integer_InGameHumans)) + |rHumans and |cffffff00) + ((String(Integer_InGameVampires)) + |rVampires are still alive.)))
            • Wait 1.00 seconds
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Number of players in PlayerGroup_Humans) + ((Number of players in PlayerGroup_HumansLeft) + (Number of players in PlayerGroup_HumansDead))) Equal to (==) 0
                • Then - Actions
                  • Do Multiple ActionsFor each (Integer B) from 1 to 3, do (Actions)
                    • Loop - Actions
                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 0, row 0 to Show text and Hide icons
                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row 0 to Hide text and Show icons
                      • Multiboard - Set the width for Multiboards[(Integer B)] item in column 0, row 0 to 5.00% of the total screen width
                      • Multiboard - Set the width for Multiboards[(Integer B)] item in column 1, row 0 to 10.00% of the total screen width
                      • Multiboard - Set the width for Multiboards[(Integer B)] item in column 5, row 0 to 2.00% of the total screen width
                      • -------- First Row --------
                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row 1 to Player Names
                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row 1 to Show text and Hide icons
                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 2, row 1 to (Strings_PlayerColors[13] + (Gold + |r))
                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 3, row 1 to (Strings_PlayerColors[14] + (Lumber + |r))
                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 4, row 1 to (Strings_PlayerColors[15] + (Fed/Leaked + |r))
                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 5, row 1 to (Strings_PlayerColors[16] + (Level + |r))
                      • -------- Vampires Row --------
                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row 2 to (Vampires ( + ((String((Number of players in PlayerGroup_Vampires))) + )))
                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row 2 to Show text and Hide icons
                      • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 2, row 2 to UI\Feedback\Resources\ResourceGold.blp
                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 2, row 2 to Hide text and Show icons
                      • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 3, row 2 to UI\Feedback\Resources\ResourceLumber.blp
                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 3, row 2 to Hide text and Show icons
                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 4, row 2 to ((Strings_PlayerColors[15] + Leaked) + |r)
                      • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 5, row 2 to ReplaceableTextures\PassiveButtons\PASBTNStatUp.blp
                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 5, row 2 to Hide text and Show icons
                      • -------- Vampires --------
                      • Set Integer_Multiboard = 0
                      • Player Group - Pick every player in (All players) and do (Actions)
                        • Loop - Actions
                          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • If - Conditions
                              • Multiple ConditionsOr - Any (Conditions) are true
                                • Conditions
                                  • ((Picked player) is in PlayerGroup_Vampires) Equal to (==) True
                                  • ((Picked player) is in PlayerGroup_VampiresLeft) Equal to (==) True
                                  • ((Picked player) is in PlayerGroup_VampiresDead) Equal to (==) True
                            • Then - Actions
                              • Set Integer_Multiboard = (Integer_Multiboard + 1)
                              • Set Integers_RowPlayers[(Player number of (Picked player))] = Integer_Multiboard
                                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                  • If - Conditions
                                    • ((Picked player) is in PlayerGroup_Vampires) Equal to (==) True
                                  • Then - Actions
                                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + |r)
                                    • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to Show text and Show icons
                                  • Else - Actions
                                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                  • If - Conditions
                                    • ((Picked player) is in PlayerGroup_VampiresLeft) Equal to (==) True
                                    • ((Picked player) is in PlayerGroup_VampiresDead) Equal to (==) False
                                  • Then - Actions
                                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + (Left)|r)
                                  • Else - Actions
                                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + |r)
                                    • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to Show text and Show icons
                                • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                  • If - Conditions
                                    • ((Picked player) is in PlayerGroup_VampiresLeft) Equal to (==) True
                                    • ((Picked player) is in PlayerGroup_VampiresDead) Equal to (==) True
                                  • Then - Actions
                                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + (Dead) + (Left)|r)
                                  • Else - Actions
                            • Else - Actions
                • Else - Actions
                  • Set Integers_Leak[((Player number of (Triggering player)) - 1)] = 0
                    • Do Multiple ActionsFor each (Integer B) from 1 to 3, do (Actions)
                      • Loop - Actions
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 0, row 0 to Show text and Hide icons
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row 0 to Hide text and Show icons
                        • Multiboard - Set the width for Multiboards[(Integer B)] item in column 0, row 0 to 5.00% of the total screen width
                        • Multiboard - Set the width for Multiboards[(Integer B)] item in column 1, row 0 to 10.00% of the total screen width
                        • Multiboard - Set the width for Multiboards[(Integer B)] item in column 5, row 0 to 2.00% of the total screen width
                        • -------- First Row --------
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row 1 to Player Names
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row 1 to Show text and Hide icons
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 2, row 1 to (Strings_PlayerColors[13] + (Gold + |r))
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 3, row 1 to (Strings_PlayerColors[14] + (Lumber + |r))
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 4, row 1 to (Strings_PlayerColors[15] + (Fed/Leaked + |r))
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 5, row 1 to (Strings_PlayerColors[16] + (Level + |r))
                        • -------- Humans Row --------
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row 2 to (Humans ( + ((String((Number of players in PlayerGroup_Humans))) + )))
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row 2 to Show text and Hide icons
                        • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 2, row 2 to UI\Feedback\Resources\ResourceGold.blp
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 2, row 2 to Hide text and Show icons
                        • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 3, row 2 to UI\Feedback\Resources\ResourceLumber.blp
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 3, row 2 to Hide text and Show icons
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 4, row 2 to ((Strings_PlayerColors[15] + Fed) + |r)
                        • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 5, row 2 to ReplaceableTextures\PassiveButtons\PASBTNStatUp.blp
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 5, row 2 to Hide text and Show icons
                        • -------- Humans --------
                        • Set Integer_Multiboard = 0
                        • Player Group - Pick every player in (All players) and do (Actions)
                          • Loop - Actions
                            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • If - Conditions
                                • Multiple ConditionsOr - Any (Conditions) are true
                                  • Conditions
                                    • ((Picked player) is in PlayerGroup_Humans) Equal to (==) True
                                    • ((Picked player) is in PlayerGroup_HumansLeft) Equal to (==) True
                              • Then - Actions
                                • Set Integer_Multiboard = (Integer_Multiboard + 1)
                                • Set Integers_RowPlayers[(Player number of (Picked player))] = Integer_Multiboard
                                  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • ((Picked player) is in PlayerGroup_HumansLeft) Equal to (==) True
                                    • Then - Actions
                                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + (Left)|r)
                                    • Else - Actions
                                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + |r)
                                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to Show text and Show icons
                              • Else - Actions
                        • -------- Vampires Row --------
                        • Set Integer_Multiboard = (Integer_Multiboard + 1)
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integer_Multiboard + 2) to (Vampires ( + ((String((Number of players in PlayerGroup_Vampires))) + )))
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row (Integer_Multiboard + 2) to Show text and Hide icons
                        • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 2, row (Integer_Multiboard + 2) to UI\Feedback\Resources\ResourceGold.blp
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 2, row (Integer_Multiboard + 2) to Hide text and Show icons
                        • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 3, row (Integer_Multiboard + 2) to UI\Feedback\Resources\ResourceLumber.blp
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 3, row (Integer_Multiboard + 2) to Hide text and Show icons
                        • Multiboard - Set the text for Multiboards[(Integer B)] item in column 4, row (Integer_Multiboard + 2) to ((Strings_PlayerColors[15] + Leaked) + |r)
                        • Multiboard - Set the icon for Multiboards[(Integer B)] item in column 5, row (Integer_Multiboard + 2) to ReplaceableTextures\PassiveButtons\PASBTNStatUp.blp
                        • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 5, row (Integer_Multiboard + 2) to Hide text and Show icons
                        • -------- Vampires --------
                        • Player Group - Pick every player in (All players) and do (Actions)
                          • Loop - Actions
                            • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                              • If - Conditions
                                • Multiple ConditionsOr - Any (Conditions) are true
                                  • Conditions
                                    • ((Picked player) is in PlayerGroup_Vampires) Equal to (==) True
                                    • ((Picked player) is in PlayerGroup_VampiresLeft) Equal to (==) True
                                    • ((Picked player) is in PlayerGroup_VampiresDead) Equal to (==) True
                              • Then - Actions
                                • Set Integer_Multiboard = (Integer_Multiboard + 1)
                                • Set Integers_RowPlayers[(Player number of (Picked player))] = Integer_Multiboard
                                  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • ((Picked player) is in PlayerGroup_Vampires) Equal to (==) True
                                    • Then - Actions
                                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + |r)
                                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to Show text and Show icons
                                    • Else - Actions
                                  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • ((Picked player) is in PlayerGroup_VampiresLeft) Equal to (==) True
                                      • ((Picked player) is in PlayerGroup_VampiresDead) Equal to (==) False
                                    • Then - Actions
                                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + (Left)|r)
                                    • Else - Actions
                                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + |r)
                                      • Multiboard - Set the display style for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to Show text and Show icons
                                  • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • If - Conditions
                                      • ((Picked player) is in PlayerGroup_VampiresLeft) Equal to (==) True
                                      • ((Picked player) is in PlayerGroup_VampiresDead) Equal to (==) True
                                    • Then - Actions
                                      • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Picked player))] + 2) to (Strings_PlayerColors[(Player number of (Picked player))] + (Dead) + (Left)|r)
                                    • Else - Actions
                              • Else - Actions
            • Custom script: if (GetLocalPlayer() == GetTriggerPlayer()) then
            • Multiboard - Hide Multiboards[1]
            • Multiboard - Show Multiboards[2]
            • Multiboard - Minimize Multiboards[2]
            • Custom script: endif
          • Else - Actions
  • Player Leaves
    • Events
      • Player - Player 1 (Red) leaves the game
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
      • Player - Player 7 (Green) leaves the game
      • Player - Player 8 (Pink) leaves the game
      • Player - Player 9 (Gray) leaves the game
      • Player - Player 10 (Light Blue) leaves the game
      • Player - Player 11 (Dark Green) leaves the game
      • Player - Player 12 (Brown) leaves the game
    • Conditions
    • Actions
      • Player Group - Pick every player in PlayerGroup_Humans and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to (==) (Picked player)
            • Then - Actions
              • Set Integer_InGameHumans = (Integer_InGameHumans - 1)
              • Set Integer_HumansLeft = (Integer_HumansLeft + 1)
              • Player Group - Remove (Triggering player) from PlayerGroup_Humans
              • Player Group - Add (Triggering player) to PlayerGroup_HumansLeft
                • Do Multiple ActionsFor each (Integer B) from 1 to 3, do (Actions)
                  • Loop - Actions
                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Triggering player))] + 2) to (Strings_PlayerColors[(Player number of (Triggering player))] + (Left)|r)
                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row 2 to (Humans ( + ((String(Integer_InGameHumans)) + )))
            • Else - Actions
      • Player Group - Pick every player in PlayerGroup_Vampires and do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to (==) (Picked player)
            • Then - Actions
              • Set Integer_InGameVampires = (Integer_InGameVampires - 1)
              • Set Integer_VampiresLeft = (Integer_VampiresLeft + 1)
              • Player Group - Remove (Triggering player) from PlayerGroup_Vampires
              • Player Group - Add (Triggering player) to PlayerGroup_VampiresLeft
                • Do Multiple ActionsFor each (Integer B) from 1 to 3, do (Actions)
                  • Loop - Actions
                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integers_RowPlayers[(Player number of (Triggering player))] + 2) to (Strings_PlayerColors[(Player number of (Triggering player))] + (Left)|r)
                    • Multiboard - Set the text for Multiboards[(Integer B)] item in column 1, row (Integer_RowVampires + 2) to (Vampires ( + ((String(Integer_InGameVampires)) + )))
            • Else - Actions
      • Game - Display to (All players) the text: (Strings_PlayerColors[(Player number of (Triggering player))] + has left the game. All his units will be removed in 30 seconds.)
      • Set UnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is in UnitGroup_Humans) Equal to (==) True))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Change ownership of (Picked unit) to Neutral Hostile and Retain color
          • Animation - Change (Picked unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 50.00% transparency
          • Unit - Pause (Picked unit)
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_UnitGroup)
      • Set UnitGroup = (Units owned by (Triggering player) matching (((Matching unit) is in UnitGroup_Vampires) Equal to (==) True))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_UnitGroup)
      • Set UnitGroup = (Units owned by (Triggering player) matching ((Unit-type of (Matching unit)) Equal to (==) Balnazzar (Evil)))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_UnitGroup)
      • Game - Display to (Player group((Triggering player))) the text: (There are |CFFFFFF00 + (((String(Integer_InGameHumans)) + |rHumans and |CFFFFFF00) + ((String(Integer_InGameVampires)) + |rVampires are left.)))
      • Wait 1.00 seconds
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Integer_InGameVampires Less than or equal to (<=) 0
          • Then - Actions
            • Sound - Play DarkVictory <gen>
            • Game - Display to (All players) the text: The Humans were vic...
            • Wait 60.00 seconds
            • Player Group - Pick every player in PlayerGroup_Humans and do (Actions)
              • Loop - Actions
                • Game - Victory (Picked player) (Show dialogs, Show scores)
            • Player Group - Pick every player in PlayerGroup_Vampires and do (Actions)
              • Loop - Actions
                • Game - Defeat (Picked player) with the message: Defeat!
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Integer_InGameHumans Less than or equal to (<=) 0
          • Then - Actions
            • Sound - Play PH1 <gen>
            • Game - Display to (All players) the text: The Vampires were v...
            • Wait 60.00 seconds
            • Player Group - Pick every player in PlayerGroup_Vampires and do (Actions)
              • Loop - Actions
                • Game - Victory (Picked player) (Show dialogs, Show scores)
            • Player Group - Pick every player in PlayerGroup_Humans and do (Actions)
              • Loop - Actions
                • Game - Defeat (Picked player) with the message: Defeat!
          • Else - Actions
      • Wait 30.00 seconds
      • Set UnitGroup = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_UnitGroup)
 
Status
Not open for further replies.
Back
Top