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: 174

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 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