How to: Create Multiboards

Lanboy

TH.net Regular
Reaction score
22
Code:
 Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Owner of (Killing unit))) + 1) to (String(player_kills[(Player number of (Owner of (Killing unit)))]))

Look at the row. What if there weren't all players in the game to begin with, for example:

Name
Red
Blue
Teal
Yellow
Orange

...where for example, player four (purple) is missing? wouldnt that make the scores malfunction for yellow and orange? yellow is player 5, yet he's in row 5 (instead of 6?)
 
S

sniperz

Guest
can the guy's here provide multiboard with like set 50 kills to win / 70 kills?

a tutorial map uploaded shud be nicer i mean with Kills to WIn
 

brized

New Member
Reaction score
0
Code:
 Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Owner of (Killing unit))) + 1) to (String(player_kills[(Player number of (Owner of (Killing unit)))]))

Look at the row. What if there weren't all players in the game to begin with, for example:

Name
Red
Blue
Teal
Yellow
Orange

...where for example, player four (purple) is missing? wouldnt that make the scores malfunction for yellow and orange? yellow is player 5, yet he's in row 5 (instead of 6?)
Yep! I'm trying to figure out how to fix that right now. I might just have to look at the unprotected DotA, since that has a multiboard that doesn't malfunction when the player slots aren't perfectly arranged.
 
I

IKilledKEnny

Guest
For a LOOOOOONG time I wondered how to make a multiboard. You rock AndrewGosu!
 
F

Fame.

Guest
Is there anyway to add a picked heroes icon to a multiboard if so can anyone help me?
 

elmstfreddie

The Finglonger
Reaction score
203
Code:
Player kills
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Killing unit)) is in players_playing) Equal to True
    Actions
        Set player_kills[(Player number of (Owner of (Killing unit)))] = (player_kills[(Player number of (Owner of (Killing unit)))] + 1)
        Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Player number of (Owner of (Killing unit))) + 1) to (String(player_kills[(Player number of (Owner of (Killing unit)))]))

Same for dying, the colum 3, row x player needs to be updated every time your hero dies.

Code:
Player dies
    Events
        Unit - A unit Dies
    Conditions
        ((Owner of (Dying unit)) is in players_playing) Equal to True
    Actions
        Set player_deaths[(Player number of (Owner of (Dying unit)))] = (player_deaths[(Player number of (Owner of (Dying unit)))] + 1)
        Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Player number of (Owner of (Dying unit))) + 1) to (String(player_deaths[(Player number of (Owner of (Dying unit)))]))
Those can be compressed into If/Then/Elses, you say If ((Owner of (Dying unit)) is in players_playing) Equal to True Then blah blah blah Else (another if/then/else) If ((Owner of (Killing unit)) is in players_playing) Equal to True then blah blah blah.

As for spelling (didn't read everything btw) Appreciated* a lot*
I dunno why people need tutorials on this, seemed kinda obvious to me o_O
 

nate

New Member
Reaction score
3
Those can be compressed into If/Then/Elses, you say If ((Owner of (Dying unit)) is in players_playing) Equal to True Then blah blah blah Else (another if/then/else) If ((Owner of (Killing unit)) is in players_playing) Equal to True then blah blah blah.

As for spelling (didn't read everything btw) Appreciated* a lot*
I dunno why people need tutorials on this, seemed kinda obvious to me o_O

Well for some people it's not 100% clear on how to create a multiboard sensei it's quit different for leaderboard.... I didn't know how to make one.

to Fame., I would give each hero different point value (got 70 heros? for the first one give point value 1, to the second 2, and so on unilt 70.) Now get a string variable with array equal to num of heros you got. Now set each variable to the appropiate hero icon. Lastly then use that string (with the proper array (hero's point value)) as the icon.
 

Terrabull

Veteran Member (Done that)
Reaction score
38
Quick note here. After some messing around I found that if you use the value 0 in the colum or row it will effect all of either the colums or rows. This could be useful for formatting so you don't have to use the loops.
 
C

CrazyChao

Guest
All of the text on my multiboard keeps getting cut off, and I do not know why. Great tutorial.

EDIT: Sorry, just forgot to set the width. Works great now. :shades:
 
L

Leos

Guest
Code:
-------- row 2, colum 1, 2, 3. --------
    -------- red team --------
    Multiboard - Set the text for multiboard_flag item in column 1, row 2 to (cc_players[1] + (Red Team + cc_endtag))
    Multiboard - Set the text for multiboard_flag item in column 2, row 2 to (String(team_score[1]))
    Multiboard - Set the text for multiboard_flag item in column 3, row 2 to string_owns_flag[2]

Whats the variable "team_score[1]" equal to? It was never mentioned before it's inclusion, and while I can figure out its a integer array, I don't know what to set it to?
 
L

Leos

Guest
No, I mean in the function Set team_score[1]=X , what should X be?

I didnt see this anywhere, but I may have missed it as I only skimmed through the latter portions of the trigger.
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
"set team_score[1] = (team_score[1] + 1)" every time the team scores a point.
 
L

Leos

Guest
Ah, I see now. Since the initial value is 0, thats all that would be required. Thanks.
 

DeathWing

New Member
Reaction score
3
Meybe instead Loop Part use this:

Wieloschowek - Set the display style for multiboard_main item in column 0, row 0 to View text and Hide icons

Cuz when u use "0" WE uses this settings to all rows/columns. :)
 
B

butters132

Guest
i made a multiboard representing kills/deaths but it tallies in the wrong place when i kill a hero, heres what i have:

Events
Time - Elapsed game time is 1.00 seconds

Actions
Set Player_Count = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Multiboard - Create a multiboard with 4 columns and (1 + Player_Count) rows, titled Hero Arena
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Player Name
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Deaths
For each (Integer A) from 1 to (1 + Player_Count), do (Actions)
Loop - Actions
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 2.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 5.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 3.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 8.00% of the total screen width
Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 4, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
Set List = 2
Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))) and do (Actions)
Loop - Actions
Set Multiboard_Spots[(Player number of (Picked player))] = List
Player Group - Pick every player in (All players controlled by a User player) and do (Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (Name of (Picked player)))
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to Player_Color[(Player number of (Picked player))]
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
Multiboard - Set the text for (Last created multiboard) item in column 4, row List to 0
Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to UI\Feedback\Resources\ResourceGold.blp
Set List = (List + 1)
Multiboard - Show (Last created multiboard)

Then i made a new trigger:
Events
Unit - A unit Dies

Conditions
((Dying unit) is A Hero) Equal to True
((Owner of (Killing unit)) controller) Equal to User

Actions
Set Death_Count[(Player number of (Owner of (Dying unit)))] = (Death_Count[(Player number of (Owner of (Dying unit)))] + 1)
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(Kill_Count[(Player number of (Owner of (Killing unit)))]))
Multiboard - Set the text for (Last created multiboard) item in column 4, row Multiboard_Spots[(Player number of (Owner of (Dying unit)))] to (String(Death_Count[(Player number of (Owner of (Dying unit)))]))
Player - Add 1 to (Owner of (Killing unit)) Current lumber

My problem is that when you kill somebody it tallies on deaths in the first row and tallies on deaths on the player row, or multiboard_spots. It also tallies on kills so thats good. TO clear things up this is an example of my multiboard:

Player Name:--Kills---Deaths
butters132----0------0

Now when i kill a unit it becomes:

Player Name:--Kills--1
bitters132-----1----1

*Note -'s aren't really there i just put them there to even it up, for some reason when i put spaces it didn't save it

P.S sry i don't know how to make one of those narly scroll down-light blueish thingys that you guys use in turtorials nor do i know how to make charts. :(

Thanks a bunch :D
 

Magoiche

Member
Reaction score
20
Problem whit updates

Well i make a board based on yours and the one on the site.


The Create Multiboard

JASS:
Creating
    Events
        Time - Elapsed game time is 0.00 seconds
    Conditions
    Actions
        Multiboard - Create a multiboard with 3 columns and (0 + (Number of players in Player_Count)) rows, titled Dark Arena
        Set Multiboard_Arena = (Last created multiboard)
        Multiboard - Set the text for Multiboard_Arena item in column 1, row 1 to (Players_Colors[0] + ([Team] + Colors_Ends))
        Multiboard - Set the text for Multiboard_Arena item in column 2, row 1 to (Players_Colors[0] + ([Kills] + Colors_Ends))
        Multiboard - Set the text for Multiboard_Arena item in column 3, row 1 to (Players_Colors[0] + ([Deaths] + Colors_Ends))
        Multiboard - Set the text for Multiboard_Arena item in column 1, row 2 to (Players_Colors[9] + (Alpha Team + Colors_Ends))
        Multiboard - Set the text for Multiboard_Arena item in column 2, row 2 to Kills_Alpha
        Multiboard - Set the text for Multiboard_Arena item in column 3, row 2 to Deaths_Alpha
        Multiboard - Set the text for Multiboard_Arena item in column 1, row 3 to (Players_Colors[10] + (Beta Team + Colors_Ends))
        Multiboard - Set the text for Multiboard_Arena item in column 2, row 3 to Kills_Beta
        Multiboard - Set the text for Multiboard_Arena item in column 3, row 3 to Deaths_Beta
        Multiboard - Set the text for Multiboard_Arena item in column 1, row 4 to (Players_Colors[0] + ([Player Name] + Colors_Ends))
        Multiboard - Set the text for Multiboard_Arena item in column 2, row 4 to (Players_Colors[0] + ([Kills] + Colors_Ends))
        Multiboard - Set the text for Multiboard_Arena item in column 3, row 4 to (Players_Colors[0] + ([Deaths] + Colors_Ends))
        For each (Integer A) from 1 to (0 + (Number of players in Player_Count)), do (Actions)
            Loop - Actions
                Multiboard - Set the display style for Multiboard_Arena item in column 1, row (Integer A) to Show text and Hide icons
                Multiboard - Set the display style for Multiboard_Arena item in column 2, row (Integer A) to Show text and Hide icons
                Multiboard - Set the display style for Multiboard_Arena item in column 3, row (Integer A) to Show text and Hide icons
                Multiboard - Set the width for Multiboard_Arena item in column 1, row (Integer A) to 9.00% of the total screen width
                Multiboard - Set the width for Multiboard_Arena item in column 2, row (Integer A) to 4.00% of the total screen width
                Multiboard - Set the width for Multiboard_Arena item in column 3, row (Integer A) to 5.00% of the total screen width
                Set Player_Row = (Player_Row + 1)
                Set Player_Colors = (Player_Colors + 1)
                Multiboard - Set the text for Multiboard_Arena item in column 1, row Player_Row to (Players_Colors[Player_Colors] + ((Name of (Player(Player_Colors))) + Colors_Ends))
                Multiboard - Set the text for Multiboard_Arena item in column 2, row Player_Row to (String(Kill_Count[Player_Colors]))
                Multiboard - Set the text for Multiboard_Arena item in column 3, row Player_Row to (String(Death_Count[Player_Colors]))
        Multiboard - Show Multiboard_Arena



The Kills Update
JASS:
Player Kills Update
    Events
        Unit - A unit Dies
    Conditions
        ((Killing unit) is A Hero) Equal to True
        ((Dying unit) is A Hero) Equal to True
        ((Owner of (Killing unit)) controller) Equal to User
    Actions
        Set Kill_Count[Player_Colors] = (Kill_Count[Player_Colors] + 1)
        Multiboard - Set the text for Multiboard_Arena item in column 2, row Player_Row to (String(Kill_Count[Player_Colors]))



The Deaths Update
JASS:
Player Deaths Update
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is A Hero) Equal to True
        ((Owner of (Dying unit)) controller) Equal to User
    Actions
        Set Death_Count[Player_Colors] = (Death_Count[Player_Colors] + 1)
        Multiboard - Set the text for Multiboard_Arena item in column 3, row Player_Row to (String(Death_Count[Player_Colors]))



Well.. i think the problem its in the player_row for the updates.

Well can anyone say how to fix? =O
 
B

butters132

Guest
its a great code but could u define your variables? Like i don't know what Color_end, kills, death and other variables are, thanks :D.
 

Magoiche

Member
Reaction score
20
Here

Here:

imagempx3.jpg
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top