• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

multiboard

Status
Not open for further replies.
Level 2
Joined
Sep 18, 2019
Messages
11
Can anybody help me create a "multiboard" 8 player display wood, gold, kill unit, please
 
Last edited:
I made a test map to show you how it's done.

  • Create Multiboard
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and 4 rows, titled Multiboard
      • Set Multiboard = (Last created multiboard)
      • Multiboard - Change the color of the title for Multiboard to (100.00%, 80.00%, 20.00%) with 0.00% transparency
      • Multiboard - Set the icon for Multiboard item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNFootman.blp
      • Multiboard - Set the icon for Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNGrunt.blp
      • Multiboard - Set the icon for Multiboard item in column 1, row 3 to ReplaceableTextures\CommandButtons\BTNSkeletonArcher.blp
      • Multiboard - Set the icon for Multiboard item in column 1, row 4 to ReplaceableTextures\CommandButtons\BTNArcher.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 1 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 2 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 3 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 4 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the width for Multiboard item in column 1, row 1 to 6.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 1, row 2 to 6.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 1, row 3 to 6.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 1, row 4 to 6.00% of the total screen width
      • Multiboard - Set the text for Multiboard item in column 1, row 1 to Humans
      • Multiboard - Set the text for Multiboard item in column 1, row 2 to Orcs
      • Multiboard - Set the text for Multiboard item in column 1, row 3 to Undead
      • Multiboard - Set the text for Multiboard item in column 1, row 4 to Night Elves
      • Multiboard - Set the color for Multiboard item in column 1, row 1 to (30.00%, 30.00%, 100.00%) with 0.00% transparency
      • Multiboard - Set the color for Multiboard item in column 1, row 2 to (100.00%, 30.00%, 30.00%) with 0.00% transparency
      • Multiboard - Set the color for Multiboard item in column 1, row 3 to (30.00%, 30.00%, 30.00%) with 0.00% transparency
      • Multiboard - Set the color for Multiboard item in column 1, row 4 to (30.00%, 100.00%, 30.00%) with 0.00% transparency
      • Multiboard - Set the text for Multiboard item in column 2, row 1 to (String((Player 1 (Red) Current Gold)))
      • Multiboard - Set the text for Multiboard item in column 2, row 2 to (String((Player 2 (Blue) Current Gold)))
      • Multiboard - Set the text for Multiboard item in column 2, row 3 to (String((Player 3 (Teal) Current Gold)))
      • Multiboard - Set the text for Multiboard item in column 2, row 4 to (String((Player 4 (Purple) Current Gold)))
      • Multiboard - Set the icon for Multiboard item in column 3, row 1 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the icon for Multiboard item in column 3, row 2 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the icon for Multiboard item in column 3, row 3 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the icon for Multiboard item in column 3, row 4 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the text for Multiboard item in column 3, row 1 to (String((Player 1 (Red) Current Lumber)))
      • Multiboard - Set the text for Multiboard item in column 3, row 2 to (String((Player 2 (Blue) Current Lumber)))
      • Multiboard - Set the text for Multiboard item in column 3, row 3 to (String((Player 3 (Teal) Current Lumber)))
      • Multiboard - Set the text for Multiboard item in column 3, row 4 to (String((Player 4 (Purple) Current Lumber)))
      • Multiboard - Set the icon for Multiboard item in column 4, row 1 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the icon for Multiboard item in column 4, row 2 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the icon for Multiboard item in column 4, row 3 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the icon for Multiboard item in column 4, row 4 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the text for Multiboard item in column 4, row 1 to (String(HumanKills))
      • Multiboard - Set the text for Multiboard item in column 4, row 2 to (String(OrcKills))
      • Multiboard - Set the text for Multiboard item in column 4, row 3 to (String(UndeadKills))
      • Multiboard - Set the text for Multiboard item in column 4, row 4 to (String(NightElfKills))
      • Multiboard - Show Multiboard
  • Update Gold
    • Events
      • Player - Player 1 (Red)'s Current Gold becomes Greater or Equal to 1.00
      • Player - Player 2 (Blue)'s Current Gold becomes Greater or Equal to 1.00
      • Player - Player 3 (Teal)'s Current Gold becomes Greater or Equal to 1.00
      • Player - Player 4 (Purple)'s Current Gold becomes Greater or Equal to 1.00
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 1 to (String((Player 1 (Red) Current Gold)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 2 (Blue)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 2 to (String((Player 2 (Blue) Current Gold)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 3 (Teal)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 3 to (String((Player 3 (Teal) Current Gold)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 4 (Purple)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 4 to (String((Player 4 (Purple) Current Gold)))
        • Else - Actions
          • Do nothing
  • Update Lumber
    • Events
      • Player - Player 1 (Red)'s Current Lumber becomes Greater or Equal to 1.00
      • Player - Player 2 (Blue)'s Current Lumber becomes Greater or Equal to 1.00
      • Player - Player 3 (Teal)'s Current Lumber becomes Greater or Equal to 1.00
      • Player - Player 4 (Purple)'s Current Lumber becomes Greater or Equal to 1.00
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 1 to (String((Player 1 (Red) Current Lumber)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 2 (Blue)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 2 to (String((Player 2 (Blue) Current Lumber)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 3 (Teal)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 3 to (String((Player 3 (Teal) Current Lumber)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 4 (Purple)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 4 to (String((Player 4 (Purple) Current Lumber)))
        • Else - Actions
          • Do nothing
  • Update Kills
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Set HumanKills = (HumanKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 1 to (String(HumanKills))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set OrcKills = (OrcKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 2 to (String(OrcKills))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 3 (Teal)
        • Then - Actions
          • Set UndeadKills = (UndeadKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 3 to (String(UndeadKills))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 4 (Purple)
        • Then - Actions
          • Set NightElfKills = (NightElfKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 4 to (String(NightElfKills))
        • Else - Actions
          • Do nothing
 

Attachments

I made a test map to show you how it's done.

  • Create Multiboard
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 4 columns and 4 rows, titled Multiboard
      • Set Multiboard = (Last created multiboard)
      • Multiboard - Change the color of the title for Multiboard to (100.00%, 80.00%, 20.00%) with 0.00% transparency
      • Multiboard - Set the icon for Multiboard item in column 1, row 1 to ReplaceableTextures\CommandButtons\BTNFootman.blp
      • Multiboard - Set the icon for Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNGrunt.blp
      • Multiboard - Set the icon for Multiboard item in column 1, row 3 to ReplaceableTextures\CommandButtons\BTNSkeletonArcher.blp
      • Multiboard - Set the icon for Multiboard item in column 1, row 4 to ReplaceableTextures\CommandButtons\BTNArcher.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 1 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 2 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 3 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the icon for Multiboard item in column 2, row 4 to UI\Feedback\Resources\ResourceGold.blp
      • Multiboard - Set the width for Multiboard item in column 1, row 1 to 6.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 1, row 2 to 6.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 1, row 3 to 6.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 1, row 4 to 6.00% of the total screen width
      • Multiboard - Set the text for Multiboard item in column 1, row 1 to Humans
      • Multiboard - Set the text for Multiboard item in column 1, row 2 to Orcs
      • Multiboard - Set the text for Multiboard item in column 1, row 3 to Undead
      • Multiboard - Set the text for Multiboard item in column 1, row 4 to Night Elves
      • Multiboard - Set the color for Multiboard item in column 1, row 1 to (30.00%, 30.00%, 100.00%) with 0.00% transparency
      • Multiboard - Set the color for Multiboard item in column 1, row 2 to (100.00%, 30.00%, 30.00%) with 0.00% transparency
      • Multiboard - Set the color for Multiboard item in column 1, row 3 to (30.00%, 30.00%, 30.00%) with 0.00% transparency
      • Multiboard - Set the color for Multiboard item in column 1, row 4 to (30.00%, 100.00%, 30.00%) with 0.00% transparency
      • Multiboard - Set the text for Multiboard item in column 2, row 1 to (String((Player 1 (Red) Current Gold)))
      • Multiboard - Set the text for Multiboard item in column 2, row 2 to (String((Player 2 (Blue) Current Gold)))
      • Multiboard - Set the text for Multiboard item in column 2, row 3 to (String((Player 3 (Teal) Current Gold)))
      • Multiboard - Set the text for Multiboard item in column 2, row 4 to (String((Player 4 (Purple) Current Gold)))
      • Multiboard - Set the icon for Multiboard item in column 3, row 1 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the icon for Multiboard item in column 3, row 2 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the icon for Multiboard item in column 3, row 3 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the icon for Multiboard item in column 3, row 4 to UI\Feedback\Resources\ResourceLumber.blp
      • Multiboard - Set the text for Multiboard item in column 3, row 1 to (String((Player 1 (Red) Current Lumber)))
      • Multiboard - Set the text for Multiboard item in column 3, row 2 to (String((Player 2 (Blue) Current Lumber)))
      • Multiboard - Set the text for Multiboard item in column 3, row 3 to (String((Player 3 (Teal) Current Lumber)))
      • Multiboard - Set the text for Multiboard item in column 3, row 4 to (String((Player 4 (Purple) Current Lumber)))
      • Multiboard - Set the icon for Multiboard item in column 4, row 1 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the icon for Multiboard item in column 4, row 2 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the icon for Multiboard item in column 4, row 3 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the icon for Multiboard item in column 4, row 4 to ReplaceableTextures\CommandButtons\BTNDoom.blp
      • Multiboard - Set the text for Multiboard item in column 4, row 1 to (String(HumanKills))
      • Multiboard - Set the text for Multiboard item in column 4, row 2 to (String(OrcKills))
      • Multiboard - Set the text for Multiboard item in column 4, row 3 to (String(UndeadKills))
      • Multiboard - Set the text for Multiboard item in column 4, row 4 to (String(NightElfKills))
      • Multiboard - Show Multiboard
  • Update Gold
    • Events
      • Player - Player 1 (Red)'s Current Gold becomes Greater or Equal to 1.00
      • Player - Player 2 (Blue)'s Current Gold becomes Greater or Equal to 1.00
      • Player - Player 3 (Teal)'s Current Gold becomes Greater or Equal to 1.00
      • Player - Player 4 (Purple)'s Current Gold becomes Greater or Equal to 1.00
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 1 to (String((Player 1 (Red) Current Gold)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 2 (Blue)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 2 to (String((Player 2 (Blue) Current Gold)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 3 (Teal)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 3 to (String((Player 3 (Teal) Current Gold)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 4 (Purple)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 2, row 4 to (String((Player 4 (Purple) Current Gold)))
        • Else - Actions
          • Do nothing
  • Update Lumber
    • Events
      • Player - Player 1 (Red)'s Current Lumber becomes Greater or Equal to 1.00
      • Player - Player 2 (Blue)'s Current Lumber becomes Greater or Equal to 1.00
      • Player - Player 3 (Teal)'s Current Lumber becomes Greater or Equal to 1.00
      • Player - Player 4 (Purple)'s Current Lumber becomes Greater or Equal to 1.00
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 1 to (String((Player 1 (Red) Current Lumber)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 2 (Blue)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 2 to (String((Player 2 (Blue) Current Lumber)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 3 (Teal)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 3 to (String((Player 3 (Teal) Current Lumber)))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 4 (Purple)
        • Then - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 4 to (String((Player 4 (Purple) Current Lumber)))
        • Else - Actions
          • Do nothing
  • Update Kills
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 1 (Red)
        • Then - Actions
          • Set HumanKills = (HumanKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 1 to (String(HumanKills))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 2 (Blue)
        • Then - Actions
          • Set OrcKills = (OrcKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 2 to (String(OrcKills))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 3 (Teal)
        • Then - Actions
          • Set UndeadKills = (UndeadKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 3 to (String(UndeadKills))
        • Else - Actions
          • Do nothing
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Owner of (Killing unit)) Equal to Player 4 (Purple)
        • Then - Actions
          • Set NightElfKills = (NightElfKills + 1)
          • Multiboard - Set the text for Multiboard item in column 4, row 4 to (String(NightElfKills))
        • Else - Actions
          • Do nothing
thank you very much! <3
 
Status
Not open for further replies.
Back
Top