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 :)" 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

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:
    Happy Sunday!
    +1
  • The Helper The Helper:
    I will be out of town until Sunday evening
    +1
  • The Helper The Helper:
    I am back! Did you miss me LOL
    +1
  • jonas jonas:
    where did you go?
  • The Helper The Helper:
    Jefferson TX on a Paranormal Investigation of a haunted bed and breakfast - I got some friends that are paranormal investigators and they have an RV and do YouTubes
    +1
  • The Helper The Helper:
    It was a lot of fun. The RV was bad ass
  • jonas jonas:
    That sounds like fun!
    +1
  • The Helper The Helper:
    it was a blast!
  • The Helper The Helper:
    I am going to post the Youtube of the investigation in the forums when it is ready
    +1
  • jonas jonas:
    cool!
  • vypur85 vypur85:
    Sounds cool TH.
  • tom_mai78101 tom_mai78101:
    I was on a Legend of Zelda marathon...
  • tom_mai78101 tom_mai78101:
    Am still doing it now
    +1
  • jonas jonas:
    which one(s) are you playing?
  • jonas jonas:
    I played a little bit of the switch title two weeks ago and found it quite boring
  • The Helper The Helper:
    just got back from San Antonio this weekend had the best Buffalo Chicken Cheesesteak sandwhich in Universal City, TX - place was called Yous Guys freaking awesome! Hope everyone had a fantastic weekend!
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • The Helper The Helper:
    We have been getting crazy numbers reported by the forum of people online the bots are going crazy on us I think it is AI training bots going at it at least that is what it looks like to me.
  • The Helper The Helper:
    Most legit traffic is tracked on multiple Analytics and we have Cloud Flare setup to block a ton of stuff but still there is large amount of bots that seem to escape detection and show up in the user list of the forum. I have been watching this bullshit for a year and still cannot figure it out it is drving me crazy lol.
    +1
  • Ghan Ghan:
    Beep boop
    +1
  • The Helper The Helper:
    hears robot sounds while 250 bots are on the forum lol
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    and then it was Thursday...
    +2

    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