| 01-09-2005, 10:03 PM | #1 |
Can someone help me im trying to make a leaderboard that has the players name and their heroes exp. Ive been trying for days but cant get it |
| 01-11-2005, 01:44 PM | #2 |
has been asked 9837489743 times. Try search. |
| 01-11-2005, 02:29 PM | #3 |
Guest | I just learned how to make leaderboards so I shall try to help you the best I can(No promises ;)) Create a leaderboard Add the players you want, here you can choose if you want the player names with the correct color to be presented or just "hero experience" with the players color, and make the Value 1(All heroes start off at lvl 1 right? o_O . Then make an event, a hero gains a lvl. Action: Leaderboard - Change the value for player 1 red in(last created leaderboard) to (lvl of triggering unit) Something like that, a bit blurry I know but I don't have time to explain it better, hope it helps |
| 01-11-2005, 04:06 PM | #4 |
hmm, haven't anything better for me right now so: I've used 2 variables: Name - Type Hero Unit-array(12) Leaderboard Leaderboard Code:
Hero Leaderboard
Events
Time - Elapsed game time is 0.25 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Exp. Board Level -...
Set Leaderboard = (Last created leaderboard)
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Leaderboard - Add (Player((Integer A))) to Leaderboard with label (((String((Hero level of Hero[(Integer A)]))) + - ) + (Name of (Player((Integer A))))) and value (Hero experience of Hero[(Integer A)])
Else - Actions
Leaderboard - Show LeaderboardCode:
Update Hero Leaderboard
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) is an enemy of (Owner of (Dying unit))) Equal to True
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Player((Integer A))) slot status) Equal to Is playing
Then - Actions
Leaderboard - Change the label for (Player((Integer A))) in Leaderboard to (((String((Hero level of Hero[(Integer A)]))) + - ) + (Name of (Player((Integer A)))))
Leaderboard - Change the value for (Player((Integer A))) in Leaderboard to (Hero experience of Hero[(Integer A)])
Else - Actions
Leaderboard - Show Leaderboardcontact me if you got any questions/problems :/ ohh, dont forget to set all the hero's into the variable (i have assumed that it's only 1 hero for 12 players now) |
| 01-11-2005, 05:18 PM | #5 |
Guest | i..have...no..idea...wth your talking about! but heres a bunny with a pancake on his head <----> ( ) ) [ o o ] { } _ _ just kidding, i'm sure theres a simpler way to do it, i dont knwo how to use variables or code, but i still manage :P |
| 01-11-2005, 06:47 PM | #6 | |
Quote:
well, then it's good that it's not you who is going to make it then? Couse I think its more important that luckyownz92 understand than you. :D and this IS a very simple way of doing it. you can make it in more complex ways with multiboards... |
| 01-13-2005, 12:33 AM | #7 | |
Quote:
|
| 03-05-2005, 05:36 PM | #8 |
I understand it completly but I cant get it to work though... I tested in-game and the leaderboard didnt update my heros experience. |
