How to make leaderbord with kill counts and LVL count and else!? need help!

zivaptr

New Member
Reaction score
2
I want to make leaderbord with 12columns and 4 rows and i dont know how to do it! can someone do it and paste it here ? plz thank you! :D
 

feelingparty

New Member
Reaction score
3
I think what you mean is a Multiboard because Leaderboards only have 2 colums - player name and some value. Here is the trigger that creates the Multiboard:
Untitled Trigger 002
Trigger:
  • Events
    • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Multiboard - Create a multiboard with 12 columns and 4 rows, titled Title


I cannot do the rest for you because it depends heavily on what the table is going to content. However I can give you tips:
- refresh your table each 1 seconds ( that means replacing the values (in your case - most likely with variables))
-do NOT create the hashtable at map initialozation - it simply won't show
 

zivaptr

New Member
Reaction score
2
hey 10q i need multiboard like this

---------------Hero Kills Creep Kills Deaths
Red Archer
Blue Archer
Teal Archer
Purple Archer
...
...
...
...
...
...
...
Brown Archer

... --> are other collors of archers u know witch they are i just didnt want to write them all... so can u made it?
 

feelingparty

New Member
Reaction score
3
well nobody is responding to my thread so I'll quit WE-ing a little and make your Multiboard. I'll probably post it in like 10-15mins

EDIT: some work showed up so I won't be doing it right now. I'll recheck the thread later and if you still need help - I'll help =)
 

feelingparty

New Member
Reaction score
3
I'm done. I'll attach the testmap. This is what you have to do:
•Open your map​
•Go to File>Preferences​
•On the Dialog Box check "Automatically create unknown variables when pasting trigger data"​
•Open my map. Go to trigger editor and copy all the triggers from "Copy these triggers"​
•Open your map and paste the triggers​

If I have done everything correctly you won't need to do anything else. If, however, something goes wrong PM me or post it here and I'll be glad to help.

EDIT: Forgot to tell you - if you try to test the map only Player(Red) will appear in the table. That is because he is the only one that is in the game. To fully test it run the map via Warcraft III and add computer players.
EDIT 2: I forgot to do something but I can still make it if you want - If a player leaves his name will become gray and have a (Left Sign) so it will be like WorldEdit(Left)

Here are the triggers if anyone wants to access them:

Trigger:
  • ColourStrings
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set StringPlayerColourCodes[1] = |cffff0000
      • Set StringPlayerColourCodes[2] = |cff0000ff
      • Set StringPlayerColourCodes[3] = |cff00ffff
      • Set StringPlayerColourCodes[4] = |cff550088
      • Set StringPlayerColourCodes[5] = |cffffff00
      • Set StringPlayerColourCodes[6] = |cffff8800
      • Set StringPlayerColourCodes[7] = |cff00ff00
      • Set StringPlayerColourCodes[8] = |cffee55bb
      • Set StringPlayerColourCodes[9] = |cff999999
      • Set StringPlayerColourCodes[10] = |cff77bbff

Trigger:
  • SetKills
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Set HeroKills[(Player number of (Owner of (Killing unit)))] = (HeroKills[(Player number of (Owner of (Killing unit)))] + 1)
        • Else - Actions
          • Set CreepKills[(Player number of (Owner of (Killing unit)))] = (CreepKills[(Player number of (Owner of (Killing unit)))] + 1)

Trigger:
  • SetDeaths
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is A Hero) Equal to True
        • Then - Actions
          • Set HeroDeaths[(Player number of (Owner of (Dying unit)))] = (HeroDeaths[(Player number of (Owner of (Dying unit)))] + 1)
        • Else - Actions

Trigger:
  • MultiboardCreation
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • -------- Creates the Multiboard. the TempInteger contains the number of the players playing. The Table will have ((number of player) +1) rows --------
      • Set TempInteger = (Number of players in (All players))
      • Multiboard - Create a multiboard with 4 columns and (TempInteger + 1) rows, titled Statistics
      • -------- This removes the icons that ussally apear on each cell and sets the default size to 8% --------
      • For each (Integer A) from 1 to 5, do (Actions)
        • Loop - Actions
          • For each (Integer B) from 1 to (TempInteger + 1), do (Actions)
            • Loop - Actions
              • Multiboard - Set the display style for (Last created multiboard) item in column (Integer A), row (Integer B) to Show text and Hide icons
              • Multiboard - Set the width for (Last created multiboard) item in column (Integer A), row (Integer B) to 8.00% of the total screen width
      • -------- This thing sets the first collum to this: 1."Player:" 2. -Name of Player 1- , 3 -Name ofPlayer 2- ..... The colour code colours the name in its owner's colour --------
      • For each (Integer A) from 1 to (TempInteger + 1), do (Actions)
        • Loop - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 8.00% of the total screen width
          • If ((Integer A) Equal to 1) then do (Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> else do (Multiboard - Set the text for (Last created multiboard) item in column 1, row (Integer A) to (StringPlayerColourCodes[((Integer A) - 1)] + (Name of (Player(((Integer A) - 1))))))
      • Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player :
      • Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Hero Kills :
      • Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Creep Kills :
      • Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Deaths :
      • Multiboard - Minimize (Last created multiboard)
      • Multiboard - Maximize (Last created multiboard)

Trigger:
  • MultiboardRefresh
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set TempInteger = (Number of players in (All players))
      • For each (Integer B) from 2 to (TempInteger + 1), do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 2, row (Integer B) to (String(HeroKills[((Integer B) - 1)]))
      • For each (Integer B) from 2 to (TempInteger + 1), do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 3, row (Integer B) to (String(CreepKills[((Integer B) - 1)]))
      • For each (Integer B) from 2 to (TempInteger + 1), do (Actions)
        • Loop - Actions
          • Multiboard - Set the text for (Last created multiboard) item in column 4, row (Integer B) to (String(HeroDeaths[HeroDeaths[((Integer B) - 1)]]))
 

Attachments

  • Multiboard.w3x
    23.1 KB · Views: 182

zivaptr

New Member
Reaction score
2
10q i give u credits in my map, u can work with me in it if u want? i see u are very good!
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/
  • The Helper The Helper:
    Here is another comfort food favorite - Million Dollar Casserole - https://www.thehelper.net/threads/recipe-million-dollar-casserole.193614/

      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