Mutliboard help

Nicholas Jordaan

New Member
Reaction score
0
Hey guys,

I need help with making a multiboard (I've tried searching), so far I have one but it creates a row for the maximum number of players. I want it to create a MB for only how many current players there are.

I have tried this, of course but it fails because it make's the amount of rows according to how many players are playing and if there's only 1 player and the player is say green for instance the player is put into row 7 and not row 1. Could someone make me a nice multiboard for me?

I uploaded the Mutliboard I have now but it doesn't have the variables it needs like U_Hero which is the hero of each player but you can just get the idea of how I did it.

Thanks in advanced!
 

Attachments

  • HelperHelp.w3x
    17.4 KB · Views: 279

Draphcone

Member
Reaction score
0
1. Create a variable (found under Edit), naming it something like "Players". Set variable type to "Integer".

2. Using Actions, Set variable (Players) = (Number of Players)

3. Create the MB strictly AFTER step 2, setting the value of the number or rows to "Players".

That should do the job.

I'm not sure of what you're talking about in the 2nd paragraph. If the first problem is solved (make no. of rows = no. of players), there would be only one row since there's only one player, so regardless of which slot he is in he'll be in row 1 (the only row).

Btw, I'm also in the process of making my own map with a MB too. Do you know the exact % for RGB for the player colours? Kinda weird they put it in % instead of 255 max anw.
 

Nicholas Jordaan

New Member
Reaction score
0
Hmmm.. looks like my attachment got deleted or something? Please check that out and you will understand (I attached it now)

For when it adds the players, I have it loop from 1 to 8 (The amount of players) and when it detects that a user is playing it adds it in the found integer of the loop plus 2.

I'm not entirely sure of how to do this correctly. But do you understand what I am asking for?
 

death_knight

Dark is the heart of a corrupted man.
Reaction score
24
Ok I'm pretty sure I know what you mean and here's how I've set it up:

I've created 2 triggers. The first counts the number of active players out of the possible 8 maximum from which it will create the multiboard with the appropriate amount of rows. It also does the little things like the titles of the columns etc.

The second trigger is just there to update the the multiboard periodically (I personally chose the arbitrary periodic time of 0.5 seconds).

Note: The variable "Count" is an integer variable.

Trigger 1:
Trigger:
  • Multiboard Create
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • -------- Player Check --------
      • Set Count = 2
      • For each (Integer A) from 1 to 8, 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
              • Set Count = (Count + 1)
            • Else - Actions
      • -------- Multiboard Create --------
      • Multiboard - Create a multiboard with 4 columns and Count rows, titled |c00FF0000ZenitH|r ...
      • Set MB_Multiboard = (Last created multiboard)
      • Multiboard - Set the text for MB_Multiboard item in column 1, row 1 to |cffffcc00Player
      • Multiboard - Set the text for MB_Multiboard item in column 2, row 1 to |c0080FF80Hero
      • Multiboard - Set the text for MB_Multiboard item in column 3, row 1 to |c0080FF80Level
      • Multiboard - Set the text for MB_Multiboard item in column 4, row 1 to |c0080FF80Health
      • Multiboard - Set the display style for MB_Multiboard item in column 0, row 0 to Show text and Hide icons
      • Multiboard - Set the display style for MB_Multiboard item in column 2, row 0 to Show text and Show icons
      • Multiboard - Set the display style for MB_Multiboard item in column 2, row 1 to Show text and Hide icons
      • Multiboard - Set the display style for MB_Multiboard item in column 2, row 2 to Show text and Hide icons
      • Multiboard - Set the width for MB_Multiboard item in column 1, row 0 to 9.00% of the total screen width
      • Multiboard - Set the width for MB_Multiboard item in column 2, row 0 to 9.00% of the total screen width
      • Multiboard - Set the width for MB_Multiboard item in column 3, row 0 to 9.00% of the total screen width
      • Multiboard - Set the width for MB_Multiboard item in column 4, row 0 to 9.00% of the total screen width
      • -------- Setting Up Player Details --------
      • For each (Integer A) from 1 to (Count - 2), do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for MB_Multiboard item in column 1, row ((Integer A) + 2) to (Name of (Player((Integer A))))
          • Multiboard - Set the text for MB_Multiboard item in column 2, row ((Integer A) + 2) to (Name of U_Hero[(Integer A)])
          • Multiboard - Set the text for MB_Multiboard item in column 3, row ((Integer A) + 2) to (String((Level of U_Hero[(Integer A)])))
          • Multiboard - Set the text for MB_Multiboard item in column 4, row ((Integer A) + 2) to (String((Life of U_Hero[(Integer A)])))
      • -------- Other --------
      • Multiboard - Show MB_Multiboard
      • Multiboard - Minimize MB_Multiboard
      • Trigger - Turn on Update Multiboard <gen>


Trigger 2:
Trigger:
  • Update Multiboard
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to (Count - 2), do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for MB_Multiboard item in column 1, row ((Integer A) + 2) to (Name of (Player((Integer A))))
          • Multiboard - Set the text for MB_Multiboard item in column 2, row ((Integer A) + 2) to (Name of U_Hero[(Integer A)])
          • Multiboard - Set the text for MB_Multiboard item in column 3, row ((Integer A) + 2) to (String((Level of U_Hero[(Integer A)])))
          • Multiboard - Set the text for MB_Multiboard item in column 4, row ((Integer A) + 2) to (String((Life of U_Hero[(Integer A)])))


I've also uploaded the map with both triggers on there.

Hope this helps :)
 

Attachments

  • HelperHelp.w3x
    17.6 KB · Views: 251
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top