Multiboard Request

SpaceBar

New Member
Reaction score
16
Hi guys,

Title says it, i need a multiboard displaying the players name, how much wood they've got and the time for each player. (11 players in total).

Note: When a specific unit dies make the time stop for the playing who has the dying unit. e.g the unit gets killed at he/she survived for 21:15, make the time stop at 21:15 for that pacific person.

+rep for those who help. If you want me to explain further, do ask.

~Regards Space
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here you go:

Trigger:
  • Multiboard Creation
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Set TempInt = 0
      • Multiboard - Create a multiboard with 4 columns and 12 rows, titled Stats
      • Multiboard - Clear Multiboard
      • Set Multiboard = (Last created multiboard)
      • Multiboard - Hide Multiboard
      • Multiboard - Set the display style for Multiboard item in column 1, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for Multiboard item in column 2, row 0 to Hide text and Show icons
      • Multiboard - Set the display style for Multiboard item in column 2, row 1 to Hide text and Hide icons
      • Multiboard - Set the display style for Multiboard item in column 3, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for Multiboard item in column 4, row 0 to Show text and Hide icons
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Length of (Name of (Player((Integer A))))) Greater than TempInt
            • Then - Actions
              • Set TempInt = (Length of (Name of (Player((Integer A)))))
            • Else - Actions
      • Multiboard - Set the width for Multiboard item in column 1, row 0 to ((Real(TempInt)) / 1.50)% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 2, row 0 to 1.50% of the total screen width
      • Set TempInt = 0
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) Current lumber) Greater than TempInt
            • Then - Actions
              • Set TempInt = (Length of (String(((Player((Integer A))) Current lumber))))
            • Else - Actions
      • Multiboard - Set the width for Multiboard item in column 3, row 0 to 4.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 4, row 0 to 4.00% of the total screen width
      • Multiboard - Set the text for Multiboard item in column 1, row 1 to Names
      • Multiboard - Set the text for Multiboard item in column 3, row 1 to Lumber
      • Multiboard - Set the text for Multiboard item in column 4, row 1 to Alive Time
      • For each (Integer A) from 2 to 12, do (Actions)
        • Loop - Actions
          • Set GameTimeS[((Integer A) - 1)] = 0
          • Multiboard - Set the text for Multiboard item in column 1, row (Integer A) to (Name of (Player(((Integer A) - 1))))
          • Multiboard - Set the icon for Multiboard item in column 2, row (Integer A) to UI\Feedback\Resources\ResourceLumber.blp
          • Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to (String(((Player(((Integer A) - 1))) Current lumber)))
          • Multiboard - Set the text for Multiboard item in column 4, row (Integer A) to (String(GameTimeS[((Integer A) - 1)]))
      • Multiboard - Show Multiboard


Trigger:
  • Multiboard Update
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 2 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to (String(((Player(((Integer A) - 1))) Current lumber)))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Is_Alive[((Integer A) - 1)] Equal to True
            • Then - Actions
              • Set TempString = Empty String
              • Multiboard - Set the text for Multiboard item in column 4, row (Integer A) to 0
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • GameTimeS[((Integer A) - 1)] Greater than or equal to 59
                • Then - Actions
                  • Set GameTimeS[((Integer A) - 1)] = 0
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • GameTimeM[((Integer A) - 1)] Greater than or equal to 59
                    • Then - Actions
                      • Set GameTimeM[((Integer A) - 1)] = 0
                      • Set GameTimeH[((Integer A) - 1)] = (GameTimeH[((Integer A) - 1)] + 1)
                    • Else - Actions
                      • Set GameTimeM[((Integer A) - 1)] = (GameTimeM[((Integer A) - 1)] + 1)
                • Else - Actions
                  • Set GameTimeS[((Integer A) - 1)] = (GameTimeS[((Integer A) - 1)] + 1)
              • Set TempString = (String(GameTimeS[((Integer A) - 1)]))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • GameTimeM[((Integer A) - 1)] Greater than 0
                • Then - Actions
                  • Set TempString = ((String(GameTimeM[((Integer A) - 1)])) + <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> + TempString))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • GameTimeH[((Integer A) - 1)] Greater than 0
                • Then - Actions
                  • Set TempString = ((String(GameTimeH[((Integer A) - 1)])) + <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> + TempString))
                • Else - Actions
              • Multiboard - Set the text for Multiboard item in column 4, row (Integer A) to TempString
            • Else - Actions


Trigger:
  • Game Time Stop
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Countdown Timer - Start Death_Timer[(Player number of (Owner of (Triggering unit)))] as a One-shot timer that will expire in 30.00 seconds
      • Countdown Timer - Create a timer window for (Last started timer) with title Revive in:
      • Set Death_Window[(Player number of (Owner of (Triggering unit)))] = (Last created timer window)
      • Countdown Timer - Show Death_Window[(Player number of (Owner of (Triggering unit)))] for (Owner of (Triggering unit))
      • Set Reviving_Hero[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
      • Set Is_Alive[(Player number of (Owner of (Triggering unit)))] = False


Trigger:
  • Game Time Start
    • Events
      • Time - Death_Timer[1] expires
      • Time - Death_Timer[2] expires
      • Time - Death_Timer[3] expires
      • Time - Death_Timer[4] expires
      • Time - Death_Timer[5] expires
      • Time - Death_Timer[6] expires
      • Time - Death_Timer[7] expires
      • Time - Death_Timer[8] expires
      • Time - Death_Timer[9] expires
      • Time - Death_Timer[10] expires
      • Time - Death_Timer[11] expires
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • Custom script: if GetExpiredTimer() == udg_Death_Timer[bj_forLoopAIndex] then
          • Set TempPoint = (Center of Region 1 &lt;gen&gt;)
          • Hero - Instantly revive Reviving_Hero[(Integer A)] at TempPoint, Hide revival graphics
          • Custom script: call RemoveLocation(udg_TempPoint)
          • Set Reviving_Hero[(Player number of (Owner of (Triggering unit)))] = No unit
          • Set Is_Alive[(Player number of (Owner of (Triggering unit)))] = True
          • Countdown Timer - Hide Death_Window[(Integer A)] for (Player((Integer A)))
          • Countdown Timer - Pause Death_Timer[(Integer A)]
          • Countdown Timer - Destroy Death_Window[(Integer A)]
          • Custom script: endif


Hope this is what you wanted, as it too some time to get it right XD

Here's the map too :D
The triggers are under the category "Multiboard Triggers" (Oddly enough :p):
http://rapidshare.com/files/308379450/Helping_Out_2.w3x
 

SpaceBar

New Member
Reaction score
16
Few problems..

1. Should've made myself clearer, once the unit dies it permently ends for that player who owns the dying unit.

2. Above; it's a unit not a hero.

3. Is there anyway to make the players colour coded in the multiboard?

Part from that, much appreciated :thup:. If you could assist with these, that would be excellent.

~Regards Space
 

Komaqtion

You can change this now in User CP.
Reaction score
469
1. Well, just remove all but this action in the second last trigger:
Trigger:
  • Set Is_Alive[(Player number of (Owner of (Triggering unit)))] = False


(And if it's a unit, then remove the condition or so ;))

And also remove the last trigger...

2. See above ;)

3. Sure, I'll redo some things and I'll resubmit it here ;)

EDIT: Ok, here are the new triggers:
Trigger:
  • Init Colors
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set PlayerColorString[1] = |c00ff0202
      • Set PlayerColorString[2] = |c000041ff
      • Set PlayerColorString[3] = |c001be5b8
      • Set PlayerColorString[4] = |c00530080
      • Set PlayerColorString[5] = |c00fffc00
      • Set PlayerColorString[6] = |c00fe890d
      • Set PlayerColorString[7] = |c001fbf00
      • Set PlayerColorString[8] = |c00e45aaf
      • Set PlayerColorString[9] = |c00949596
      • Set PlayerColorString[10] = |c007dbef1
      • Set PlayerColorString[11] = |c000f6145


Trigger:
  • Multiboard Creation
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Set TempInt = 0
      • Multiboard - Create a multiboard with 4 columns and 12 rows, titled Stats
      • Multiboard - Clear Multiboard
      • Set Multiboard = (Last created multiboard)
      • Multiboard - Hide Multiboard
      • Multiboard - Set the display style for Multiboard item in column 1, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for Multiboard item in column 2, row 0 to Hide text and Show icons
      • Multiboard - Set the display style for Multiboard item in column 2, row 1 to Hide text and Hide icons
      • Multiboard - Set the display style for Multiboard item in column 3, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for Multiboard item in column 4, row 0 to Show text and Hide icons
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Length of (Name of (Player((Integer A))))) Greater than TempInt
            • Then - Actions
              • Set TempInt = (Length of (Name of (Player((Integer A)))))
            • Else - Actions
      • Multiboard - Set the width for Multiboard item in column 1, row 0 to ((Real(TempInt)) / 1.50)% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 2, row 0 to 1.50% of the total screen width
      • Set TempInt = 0
      • For each (Integer A) from 1 to 11, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) Current lumber) Greater than TempInt
            • Then - Actions
              • Set TempInt = (Length of (String(((Player((Integer A))) Current lumber))))
            • Else - Actions
      • Multiboard - Set the width for Multiboard item in column 3, row 0 to 4.00% of the total screen width
      • Multiboard - Set the width for Multiboard item in column 4, row 0 to 4.00% of the total screen width
      • Multiboard - Set the text for Multiboard item in column 1, row 1 to Names
      • Multiboard - Set the text for Multiboard item in column 3, row 1 to Lumber
      • Multiboard - Set the text for Multiboard item in column 4, row 1 to Alive Time
      • For each (Integer A) from 2 to 12, do (Actions)
        • Loop - Actions
          • Set GameTimeS[((Integer A) - 1)] = 0
          • Set Is_Alive[((Integer A) - 1)] = True
          • Multiboard - Set the text for Multiboard item in column 1, row (Integer A) to (PlayerColorString[((Integer A) - 1)] + ((Name of (Player(((Integer A) - 1)))) + |r))
          • Multiboard - Set the icon for Multiboard item in column 2, row (Integer A) to UI\Feedback\Resources\ResourceLumber.blp
          • Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to (String(((Player(((Integer A) - 1))) Current lumber)))
          • Multiboard - Set the text for Multiboard item in column 4, row (Integer A) to (String(GameTimeS[((Integer A) - 1)]))
      • Multiboard - Show Multiboard


Trigger:
  • Multiboard Update
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 2 to 12, do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row (Integer A) to (String(((Player(((Integer A) - 1))) Current lumber)))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Is_Alive[((Integer A) - 1)] Equal to True
            • Then - Actions
              • Set TempString = Empty String
              • Multiboard - Set the text for Multiboard item in column 4, row (Integer A) to 0
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • GameTimeS[((Integer A) - 1)] Greater than or equal to 59
                • Then - Actions
                  • Set GameTimeS[((Integer A) - 1)] = 0
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • GameTimeM[((Integer A) - 1)] Greater than or equal to 59
                    • Then - Actions
                      • Set GameTimeM[((Integer A) - 1)] = 0
                      • Set GameTimeH[((Integer A) - 1)] = (GameTimeH[((Integer A) - 1)] + 1)
                    • Else - Actions
                      • Set GameTimeM[((Integer A) - 1)] = (GameTimeM[((Integer A) - 1)] + 1)
                • Else - Actions
                  • Set GameTimeS[((Integer A) - 1)] = (GameTimeS[((Integer A) - 1)] + 1)
              • Set TempString = (String(GameTimeS[((Integer A) - 1)]))
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • GameTimeM[((Integer A) - 1)] Greater than 0
                • Then - Actions
                  • Set TempString = ((String(GameTimeM[((Integer A) - 1)])) + <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> + TempString))
                • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • GameTimeH[((Integer A) - 1)] Greater than 0
                • Then - Actions
                  • Set TempString = ((String(GameTimeH[((Integer A) - 1)])) + <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> + TempString))
                • Else - Actions
              • Multiboard - Set the text for Multiboard item in column 4, row (Integer A) to TempString
            • Else - Actions


Trigger:
  • Game Time Stop
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Not equal to True
    • Actions
      • Set Is_Alive[(Player number of (Owner of (Triggering unit)))] = False


And here's the map ;)

http://rapidshare.com/files/308819694/Helping_Out_2.w3x

Hope it suits your need now :D :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top