• 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.

Multiboard System

Status
Not open for further replies.
Level 3
Joined
Mar 7, 2008
Messages
10
This probabaly seems very simple to a lot of members here but I've been toyying around with this for a few days now and have gotten no results.
I need a simple multiboard that displays the unit kills and hero kills, plus has a timer of the elapsed time of the game in the bottom. However I need the rows to collapse on each other when a player is not present. I've tried using the DotA template, but couldn't get it to work for my preferences. I need it to be listed as:
Player Name Unit Kills Hero Kills

(Light Blue) unit kills hero kills (sum total of the 5 below)
(Reds Name) unit kills hero kills
(Blues Name) unit kills hero kills
(yellows Name) unit kills hero kills
(pinks Name) unit kills hero kills
(grays Name) unit kills hero kills

(browns Name) unit kills hero kills (sum total of the 5 below)
(teals Name) unit kills hero kills
(purples Name) unit kills hero kills
(oranges Name) unit kills hero kills
(greenss Name) unit kills hero kills
(darkgreens Name) unit kills hero kills

Time Elapsed: (whatever)

but the key is for these to collapse - which I can't seem to get working :( - not sure if this is in the proper place, but if someone could design this for me, or even help me with this it would be appreciated.

thank you.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Here's a script for the game time:

  • Update Multiboard
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set GAME_TIME = (GAME_TIME + 1)
      • Set Temp_Integer_1 = GAME_TIME
      • Set Temp_Integer_2 = 0
      • Set Temp_Integer_3 = 0
      • For each (Integer A) from 1 to 100, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Temp_Integer_1 Greater than or equal to 3600
            • Then - Actions
              • Set Temp_Integer_1 = (Temp_Integer_1 - 3600)
              • Set Temp_Integer_2 = (Temp_Integer_2 + 1)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Temp_Integer_1 Greater than or equal to 60
                • Then - Actions
                  • Set Temp_Integer_1 = (Temp_Integer_1 - 60)
                  • Set Temp_Integer_3 = (Temp_Integer_3 + 1)
                • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Temp_Integer_2 Greater than or equal to 1
        • Then - Actions
          • Set Temp_String_1 = ((String(Temp_Integer_2)) + ( h + ((String(Temp_Integer_3)) + ( m + ((String(Temp_Integer_1)) + s)))))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Temp_Integer_3 Greater than or equal to 1
            • Then - Actions
              • Set Temp_String_1 = ((String(Temp_Integer_3)) + ( m + ((String(Temp_Integer_1)) + s)))
            • Else - Actions
              • Set Temp_String_1 = ((String(Temp_Integer_1)) + s)
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Temp_String_1
Removing a row of the player that left can be done with arrays. In the beginning

P1 = array[2] // so you update row 2 when P1 kills/dies. Row 1 is reserved for kills/deaths/name strings.
P2 = array[3]
P3 = array[4]
and so on.

When a player leaves, you detect the player number, and change all indexes from the leaving player's index to index-1. Then change the rows of the multiboard to rows-1.

If that sounds confusing, there's a good chance it is. I'm a bit tired, should get some sleep.
 
Status
Not open for further replies.
Top