• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Leaderboard Setup

Status
Not open for further replies.
Level 5
Joined
May 1, 2006
Messages
131
Can anyone help me get a multiboard set up for my map?

Was wanting it to have:


PlayerName HeroIcon HeroKills
----------- -------- --------

And there are 10 players
1-10

players 11 and 12 are computers for towers, mobs and such.
I already have the name and kills done... I just was wondering how to get the hero icon for the hero they choose in there as well.

Im not asking for someone to do the whole thing for me but to give me an outline or some help :)
 
Last edited:
I suppose you have to use an "If/Then/Else" function for that. Not that hard, assuming you don't have insanely many heroes...
Like:
  • Leaderboard HeroIcon
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 1 (Red)
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Set Leaderboard_HeroIcon_Entering[1] = (Entering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of Leaderboard_HeroIcon_Entering[1]) Equal to Paladin
        • Then - Actions
          • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of Leaderboard_HeroIcon_Entering[1]) Equal to Archmage
            • Then - Actions
              • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of Leaderboard_HeroIcon_Entering[1]) Equal to Mountain King
                • Then - Actions
                  • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroMountainKing.blp
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Unit-type of Leaderboard_HeroIcon_Entering[1]) Equal to Blood Mage
                    • Then - Actions
                      • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroBloodElfPrince.blp
                    • Else - Actions
And simalar for the other players:
  • Leaderboard HeroIcon
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 2 (Blue)
      • ((Entering unit) is A Hero) Equal to True
    • Actions
      • Set Leaderboard_HeroIcon_Entering[2] = (Entering unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of Leaderboard_HeroIcon_Entering[2]) Equal to Paladin
        • Then - Actions
          • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroPaladin.blp
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of Leaderboard_HeroIcon_Entering[2]) Equal to Archmage
            • Then - Actions
              • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Unit-type of Leaderboard_HeroIcon_Entering[2]) Equal to Mountain King
                • Then - Actions
                  • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroMountainKing.blp
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Unit-type of Leaderboard_HeroIcon_Entering[2]) Equal to Blood Mage
                    • Then - Actions
                      • Multiboard - Set the icon for Your_Multiboard item in column 1, row 2 to ReplaceableTextures\CommandButtons\BTNHeroBloodElfPrince.blp
                    • Else - Actions
 
Level 5
Joined
May 1, 2006
Messages
131
Dude i already searched and went to the help website.. That does not help so i made a post here to get things started.. They do not have anything on there about importing icons into a multiboard. :)

BUT!
Thank you for the people that did help me out!

Oh hey, I only have 5 heroes atm but I was planning on adding more to my arena to make it more enjoyable... Might there be an easier way to do that? Like im sure DotA didnt do it that way, did they? o.o
 
Level 3
Joined
Feb 24, 2008
Messages
67
Dude i already searched and went to the help website.. That does not help so i made a post here to get things started.. They do not have anything on there about importing icons into a multiboard. :)

BUT!
Thank you for the people that did help me out!

Oh hey, I only have 5 heroes atm but I was planning on adding more to my arena to make it more enjoyable... Might there be an easier way to do that? Like im sure DotA didnt do it that way, did they? o.o

Yes, there is, by creating a string variable with array and setting the paths in the array to the icon's path. Then set the hero's point value to 1, 2, 3 and so on...

For example, you have a hero, say Paladin as hero 1. Then set <variable>[1] as the Paladin's icon's path. Then whenever a unit picks Paladin, then set the icon in the multiboard referring to the point value of the sold/picked unit.

I can code it, but I'm too lazy to :wink:
 
Level 3
Joined
Feb 24, 2008
Messages
67
ModFreak, that's exactly what I've done with my triggers... You just have to write some lines more, but it's less advanced.

I prefer to make it cleaner... yours is easier to understand but it clutters up, instead of using a lot of If/Then/Else functions, you'll have only a few lines with the variables doing the rest...

And it's easier if you want to add more heroes in the future... Just set the hero icon string path and set the point value of the hero and you're done.

You can't imagine that Icefrog would use around 90 If/Then/Else functions for all the icons in the multiboard can you? :grin:
 
Level 5
Joined
May 1, 2006
Messages
131
Does Icefrog use these forums? :eek:

I could get him to give me some really advanced help on the map ;P
 
Level 10
Joined
Feb 8, 2008
Messages
432
I will help you.
Infact i just wrote a tutorial.
It teaches you how to use hero icons and it will be alot simpler than the methods explained above.

http://www.hiveworkshop.com/forums/showthread.php?t=84942

That will teach you everything you need to know about multiboards.
Getting Icefrog to make you a multiboard will not let you learn anything.
Read my tutorial and learn how to do it, if you need help with a specific part then post
it there dont just ask make me one.

-inverted
 
Level 14
Joined
Oct 27, 2007
Messages
1,395
Look at Inverted's tutorial.. it's very good :)
and I wouldn't hold your breath for IceFrog to answer questions (from what I hear).. he's not well liked here at Hive >.>
 
Level 5
Joined
May 1, 2006
Messages
131
For real? :eek: Well if people who play DoTA are asses.. Im pretty sure the person who made it.. is a complete ass :eek:
Not to flame or anything but people get really irritating in that game >.<

And yes ive been reading over Inverted's tutorial! and its ... awwesomeee :D
 
Status
Not open for further replies.
Top