• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Multiboard updater problem

Status
Not open for further replies.
Level 1
Joined
Jan 13, 2013
Messages
2
[Solved] Multiboard updater problem

Hello

I got a problem with a trigger which is supposed to update a multiboard.
The first screen is without updater and the secound is with updater.
Lhr2hn.png
gKwAjK.png


The Mulitboard trigger is long.
  • Events
    • Time - Elapsed game time is 0.05 seconds
  • Conditions
  • Actions
    • Multiboard - Create a multiboard with 4 columns and 7 rows, titled Hell Arena
    • Set Multiboard = (Last created multiboard)
    • -------- 1x1 --------
    • Multiboard - Set the width for Multiboard item in column 1, row 1 to 7.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 1, row 1 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 1, row 1 to Time
    • -------- 2x1 --------
    • Multiboard - Set the width for Multiboard item in column 2, row 1 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 2, row 1 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 2, row 1 to <Empty String>
    • -------- 3x1 --------
    • Multiboard - Set the width for Multiboard item in column 3, row 1 to 11.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 3, row 1 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 3, row 1 to (((String(Minutes)) + :) + (String(Seconds)))
    • -------- 4x1 --------
    • Multiboard - Set the width for Multiboard item in column 4, row 1 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 4, row 1 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 4, row 1 to <Empty String>
    • -------- 1x2 --------
    • Multiboard - Set the width for Multiboard item in column 1, row 2 to 7.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 1, row 2 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 1, row 2 to Total Kills
    • -------- 2x2 --------
    • Multiboard - Set the width for Multiboard item in column 2, row 2 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 2, row 2 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 2, row 2 to <Empty String>
    • -------- 3x2 --------
    • Multiboard - Set the width for Multiboard item in column 3, row 2 to 11.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 3, row 2 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 3, row 2 to (String(TotalKills))
    • -------- 4x2 --------
    • Multiboard - Set the width for Multiboard item in column 4, row 2 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 4, row 2 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 4, row 2 to <Empty String>
    • -------- 1x3 --------
    • Multiboard - Set the width for Multiboard item in column 1, row 3 to 7.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 1, row 3 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 1, row 3 to Player Deaths
    • -------- 2x3 --------
    • Multiboard - Set the width for Multiboard item in column 2, row 3 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 2, row 3 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 2, row 3 to <Empty String>
    • -------- 3x3 --------
    • Multiboard - Set the width for Multiboard item in column 3, row 3 to 11.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 3, row 3 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 3, row 3 to (String(Tote))
    • -------- 4x3 --------
    • Multiboard - Set the width for Multiboard item in column 4, row 3 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 4, row 3 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 4, row 3 to <Empty String>
    • -------- 1x4 --------
    • Multiboard - Set the width for Multiboard item in column 1, row 4 to 7.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 1, row 4 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 1, row 4 to Wave
    • -------- 2x4 --------
    • Multiboard - Set the width for Multiboard item in column 2, row 4 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 2, row 4 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 2, row 4 to <Empty String>
    • -------- 3x4 --------
    • Multiboard - Set the width for Multiboard item in column 3, row 4 to 11.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 3, row 4 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 3, row 4 to (String(Welle))
    • -------- 4x4 --------
    • Multiboard - Set the width for Multiboard item in column 4, row 4 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 4, row 4 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 4, row 4 to <Empty String>
    • -------- 1x5 --------
    • Multiboard - Set the width for Multiboard item in column 1, row 5 to 7.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 1, row 5 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 1, row 5 to Sub-Wave
    • -------- 2x5 --------
    • Multiboard - Set the width for Multiboard item in column 2, row 5 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 2, row 5 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 2, row 5 to <Empty String>
    • -------- 3x5 --------
    • Multiboard - Set the width for Multiboard item in column 3, row 5 to 11.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 3, row 5 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 3, row 5 to (String(Subwave))
    • -------- 4x5 --------
    • Multiboard - Set the width for Multiboard item in column 4, row 5 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 4, row 5 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 4, row 5 to <Empty String>
    • -------- 1x6 --------
    • Multiboard - Set the width for Multiboard item in column 1, row 6 to 7.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 1, row 6 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 1, row 6 to Next Wave
    • -------- 2x6 --------
    • Multiboard - Set the width for Multiboard item in column 2, row 6 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 2, row 6 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 2, row 6 to <Empty String>
    • -------- 3x6 --------
    • Multiboard - Set the width for Multiboard item in column 3, row 6 to 11.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 3, row 6 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 3, row 6 to (String(Wavetime))
    • -------- 4x6 --------
    • Multiboard - Set the width for Multiboard item in column 4, row 6 to 1.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 4, row 6 to Hide text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 4, row 6 to <Empty String>
    • -------- 1x7 --------
    • Multiboard - Set the width for Multiboard item in column 1, row 7 to 8.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 1, row 7 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 1, row 7 to Name
    • -------- 2x7 --------
    • Multiboard - Set the width for Multiboard item in column 2, row 7 to 4.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 2, row 7 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 2, row 7 to K
    • -------- 3x7 --------
    • Multiboard - Set the width for Multiboard item in column 3, row 7 to 3.00% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 3, row 7 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 3, row 7 to D
    • -------- 4x7 --------
    • Multiboard - Set the width for Multiboard item in column 4, row 7 to 3.50% of the total screen width
    • Multiboard - Set the display style for Multiboard item in column 4, row 7 to Show text and Hide icons
    • Multiboard - Set the text for Multiboard item in column 4, row 7 to Status
    • -------- 1x8 - 4x18 --------
    • 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))) slot status) Equal to Is playing
          • Then - Actions
            • Multiboard - Change the number of rows for Multiboard to ((Number of rows in Multiboard) + 1)
            • Set Multiboard = (Last created multiboard)
            • Hashtable - Save (Number of rows in Multiboard) as 5 of (Integer A) in Hashtable
            • -------- 1x? --------
            • Multiboard - Set the width for Multiboard item in column 1, row (Number of rows in Multiboard) to 8.50% of the total screen width
            • Multiboard - Set the display style for Multiboard item in column 1, row (Number of rows in Multiboard) to Show text and Show icons
            • Multiboard - Set the text for Multiboard item in column 1, row (Number of rows in Multiboard) to (Name of (Player((Integer A))))
            • Multiboard - Set the icon for Multiboard item in column 1, row (Number of rows in Multiboard) to ReplaceableTextures\CommandButtons\BTNWisp.blp
            • -------- 2x? --------
            • Multiboard - Set the width for Multiboard item in column 2, row (Number of rows in Multiboard) to 4.00% of the total screen width
            • Multiboard - Set the display style for Multiboard item in column 2, row (Number of rows in Multiboard) to Show text and Hide icons
            • Multiboard - Set the text for Multiboard item in column 2, row (Number of rows in Multiboard) to (String(Kills[(Integer A)]))
            • -------- 3x? --------
            • Multiboard - Set the width for Multiboard item in column 3, row (Number of rows in Multiboard) to 3.00% of the total screen width
            • Multiboard - Set the display style for Multiboard item in column 3, row (Number of rows in Multiboard) to Show text and Hide icons
            • Multiboard - Set the text for Multiboard item in column 3, row (Number of rows in Multiboard) to (String(PlayerDeaths[(Integer A)]))
            • -------- 4x? --------
            • Multiboard - Set the width for Multiboard item in column 4, row (Number of rows in Multiboard) to 3.50% of the total screen width
            • Multiboard - Set the display style for Multiboard item in column 4, row (Number of rows in Multiboard) to Show text and Hide icons
            • Multiboard - Set the text for Multiboard item in column 4, row (Number of rows in Multiboard) to Alive
            • Multiboard - Set the color for Multiboard item in column 4, row (Number of rows in Multiboard) to (0.00%, 100.00%, 0.00%) with 0.00% transparency
          • Else - Actions
            • Do nothing
    • Multiboard - Maximize Multiboard
  • Events
    • Time - Every 1.00 seconds of game time
  • Conditions
  • Actions
    • Multiboard - Set the text for Multiboard item in column 3, row 2 to (String(TotalKills))
    • Multiboard - Set the text for Multiboard item in column 3, row 3 to (String(Tote))
    • Multiboard - Set the text for Multiboard item in column 3, row 4 to (String(Welle))
    • Multiboard - Set the text for Multiboard item in column 3, row 5 to (String(Subwave))
    • For each (Integer A) from 1 to 11, do (Actions)
      • Loop - Actions
        • Multiboard - Set the text for Multiboard item in column 2, row (Load 5 of (Player number of (Player((Integer A)))) from Hashtable) to (String(Kills[(Integer A)]))
        • Multiboard - Set the text for Multiboard item in column 3, row (Load 5 of (Player number of (Player((Integer A)))) from Hashtable) to (String(PlayerDeaths[(Integer A)]))
Just noticed that i posted it in the wrong section, sorry for that and i would be grateful if it could be moved in the right section. (I'm a bit tired.)
 
Last edited:
Level 1
Joined
Jan 13, 2013
Messages
2
@jonhysone i saved in the 5 of ... the row count which it had when i added the player to the multiboard so that i had the row numer which this player had (can be seen in the trigger for the multiboard at the end.)

(Load 5 of (Player number of (Player((Integer A)))) from Hashtable) returns 0, so every row is affected, making all the rows display 0

why should they return 0?

Edit:if it would make things easier i could upload it but it is mostly a map for me and my friends so i didn't made credits.
Edit2:mad:Edo494 ty got the problem.
 
Last edited:
Status
Not open for further replies.
Top