Leaderboard - Create a leaderboard with 2 columns and 6 rows, with the name "Sam's HLW", and using (100%, 100%, 100%) color.
Leaderboard - Turn Leaderboard minimize button On for (All players)
Leaderboard - Set Leaderboard item text at column 1 and row 1 to "Lives Green <c "
Leaderboard - Set Leaderboard item text at column 2 and row 1 to (Text(TotalLives-Green))
Leaderboard - Set Leaderboard item text at column 1 and row 2 to (Name of player 1)
Leaderboard - Set Leaderboard item text at column 2 and row 2 to (Text(Income-Player1))
Leaderboard - Set Leaderboard item text at column 1 and row 3 to (Name of player 2)
Leaderboard - Set Leaderboard item text at column 2 and row 3 to (Text(Income-Player2))
Leaderboard - Set Leaderboard item text at column 1 and row 4 to "Lives Blue T<c "
Leaderboard - Set Leaderboard item text at column 2 and row 4 to (Text(TotalLives-Blue))
Leaderboard - Set Leaderboard item text at column 1 and row 5 to (Name of player 3)
Leaderboard - Set Leaderboard item text at column 2 and row 5 to (Text(Income-Player3))
Leaderboard - Set Leaderboard item text at column 1 and row 6 to (Name of player 4)
Leaderboard - Set Leaderboard item text at column 2 and row 6 to (Text(Income-Player4))
Leaderboard - Show all leaderboards for (All players)
I have a Global Variable names Leaderboard set to Last Created Leaderboard, so the Leaderboard name in the triggers is actually the Last Created Leaderboard. When I test my map, my leaderboard has the correct name, a working minimize button, but does not have any contents in it. It's just a big empty square. Can someone help me fix this?
The reason why you couldn't add the Text in that leaderboard is:
I noticed you don't have the action: Set Leaderboard = (Last Created Leaderboard)
You need to put that action just below Create Leaderboard action. Without this, the Set Text is referencing to nothing.
Why nothing? This is how Variables work.
Variable:
Leaderboard = Last Created Leaderboard
The Leaderboard starts looking for the Last Created Leaderboard. But it finds none because the Trigger that creates a Leaderboard hasn't started yet. So it goes back home with nothing.
In order to come back home with the Last Created Leaderboard, you have to use the Set Variable in actions, just after the Create Leaderboard action.
So Leaderboard = None if trigger with Set Variable action has not yet ran
But Leaderboard = SAM's HLW if trigger with Set Variable has already ran
Rollback Post to RevisionRollBack
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
im setting the variable and it still dosent work i think my mapeditor is corrupt or some thing.. could some one upload a map with just a leaderboard? thanks
Weird bug indeed. Hope they fix this before final release.
I encounter another bug with one of the leaderboard action (can't remember which one right now) which doesn't let me to use leaderboard variable I created. (Other leaderboard actions are fine.)
Another thing it may be:
I was just trying to make a leaderboard using the OP as a refference. When i was done adding 6 or so actions, Create Leaderboard was at the BOTTOM of the list. I wasn't aware action orders matter, but it makes sense. So you have to have Create Leaderboard, THEN set text for it to show up, or else itll say "text on what leaderboard? nah not gonna do it" and go to the next action :)
Thank you OP for helping me make a leaderboard quickly and easily
LeaderBoard
Events
Game - Map initialization
Local Variables
Conditions
Actions
Leaderboard - Create a leaderboard with 2 columns and 6 rows, with the name "Sam's HLW", and using (100%, 100%, 100%) color.
Leaderboard - Turn Leaderboard minimize button On for (All players)
Leaderboard - Set Leaderboard item text at column 1 and row 1 to "Lives Green <c "
Leaderboard - Set Leaderboard item text at column 2 and row 1 to (Text(TotalLives-Green))
Leaderboard - Set Leaderboard item text at column 1 and row 2 to (Name of player 1)
Leaderboard - Set Leaderboard item text at column 2 and row 2 to (Text(Income-Player1))
Leaderboard - Set Leaderboard item text at column 1 and row 3 to (Name of player 2)
Leaderboard - Set Leaderboard item text at column 2 and row 3 to (Text(Income-Player2))
Leaderboard - Set Leaderboard item text at column 1 and row 4 to "Lives Blue T<c "
Leaderboard - Set Leaderboard item text at column 2 and row 4 to (Text(TotalLives-Blue))
Leaderboard - Set Leaderboard item text at column 1 and row 5 to (Name of player 3)
Leaderboard - Set Leaderboard item text at column 2 and row 5 to (Text(Income-Player3))
Leaderboard - Set Leaderboard item text at column 1 and row 6 to (Name of player 4)
Leaderboard - Set Leaderboard item text at column 2 and row 6 to (Text(Income-Player4))
Leaderboard - Show all leaderboards for (All players)
I have a Global Variable names Leaderboard set to Last Created Leaderboard, so the Leaderboard name in the triggers is actually the Last Created Leaderboard. When I test my map, my leaderboard has the correct name, a working minimize button, but does not have any contents in it. It's just a big empty square. Can someone help me fix this?
Nevermind, I got it.
@bdTROG: Go
Feel free to explain how you got it.
Please tell us how you made it i can't get it to work!!!!!!!!!!!!!!
BUMP
I took at the variable and set everything to "(Last Created Leaderboard)" in place of "Leaderboard"
Ex.
Leaderboard - Set Leaderboard item text at column 2 and row 1 to (Text(TotalLives-Green))
would become
Leaderboard - Set (Last Created Leaderboard) item text at column 2 and row 1 to (Text(TotalLives-Green))
@bdTROG: Go
Didn't solve, back to forever searching for a solution.
The reason why you couldn't add the Text in that leaderboard is:
I noticed you don't have the action: Set Leaderboard = (Last Created Leaderboard)
You need to put that action just below Create Leaderboard action. Without this, the Set Text is referencing to nothing.
Why nothing? This is how Variables work.
Variable:
Leaderboard = Last Created Leaderboard
The Leaderboard starts looking for the Last Created Leaderboard. But it finds none because the Trigger that creates a Leaderboard hasn't started yet. So it goes back home with nothing.
In order to come back home with the Last Created Leaderboard, you have to use the Set Variable in actions, just after the Create Leaderboard action.
So Leaderboard = None if trigger with Set Variable action has not yet ran
But Leaderboard = SAM's HLW if trigger with Set Variable has already ran
Member since 2010. Made the -The Thing- [Revival] game. Nostalgic of the WC3 days.
im setting the variable and it still dosent work i think my mapeditor is corrupt or some thing.. could some one upload a map with just a leaderboard? thanks
I found the solution!!!!!!!!
Im so happy!
http://forums.battle.net/thread.html?topicId=25170610688&postId=251682961600&sid=5010#0
Weird bug indeed. Hope they fix this before final release.
I encounter another bug with one of the leaderboard action (can't remember which one right now) which doesn't let me to use leaderboard variable I created. (Other leaderboard actions are fine.)
Another thing it may be: I was just trying to make a leaderboard using the OP as a refference. When i was done adding 6 or so actions, Create Leaderboard was at the BOTTOM of the list. I wasn't aware action orders matter, but it makes sense. So you have to have Create Leaderboard, THEN set text for it to show up, or else itll say "text on what leaderboard? nah not gonna do it" and go to the next action :)
Thank you OP for helping me make a leaderboard quickly and easily
@Petoj87: Go
Petoj87, I can't get this link to work. Mind reposting the actual text?