Leaderboard - Create a leaderboard with 2 columns and 2 rows, with the name "Info", and using (100%, 100%, 100%) color.
Leaderboard - Add player 1 to (Last created leaderboard)
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Kills"
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Kills))
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 2 to "Wave"
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(Wave))
Here i Create the leader board on map Start now if i set the variables to a custom value before the board is created they will displayed correct
( if i set the Integer kills to 10 it displays 10)
but now the problem here is my kill counter
Kills
Events
Unit - Any Unit dies
Conditions
(Owner of (Killing unit)) == 1
Actions
Variable - Modify Kills: + 1
i am sure this is correct but the leader board still show me after 50 kills that i have 0 and i got no clue what i did wrong
Sorry for the bad english hope some one can help me :/
Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Killing unit)) == 1
Actions
Variable - Modify Kills: + 1
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Kills"
UI - Display (Text(Kills)) for (All players) to Subtitle area
I added a Text for test and it displays the correct value but leader board dont update :(
....
Actions
Variable - Modify Kills: + 1
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Kills))
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Test"
UI - Display (Text(Kills)) for (All players) to Subtitle area
But still dont work i really dont get what goes wrong there
i also did try to chance now the first column to "test" but dont work to ...
Maybe the (Last created leaderboard) isn't set when you are in another trigger. What about setting creating a Leaderboard global variable set to (Last created leaderboard) in the creation trigger.
And use this variable for the leaderboard instead of (Last created leaderboard).
I've been trying to do this but I can't figure out how to set the (Text(Kills)) part.
It won't let me select a variable, and whatever i type in the value box it puts quotes around.
I've been trying to do this but I can't figure out how to set the (Text(Kills)) part. It won't let me select a variable, and whatever i type in the value box it puts quotes around.
You have use "Convert Integer To Text" function before it allows you to select the variable with Integer type.
So click on the (Text) > Functions > Conversion > Convert Integer To Text .... it will appear as (Text(0))
Now u can select your variable...
Anyone thinking of doing a tutorial on an advanced leaderboard? With not only player names and kill count, but the level of a hero and the current life of the player?
You have use "Convert Integer To Text" function before it allows you to select the variable with Integer type. So click on the (Text) > Functions > Conversion > Convert Integer To Text .... it will appear as (Text(0)) Now u can select your variable...
Leaderboard - Create a leaderboard with 2 columns and 2 rows, with the name "Info", and using (100%, 100%, 100%) color.
Leaderboard - Add player 1 to (Last created leaderboard)
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Kills"
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Kills))
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 2 to "Wave"
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(Wave))
Here i Create the leader board on map Start now if i set the variables to a custom value before the board is created they will displayed correct
( if i set the Integer kills to 10 it displays 10)
but now the problem here is my kill counter
Kills
Events
Unit - Any Unit dies
Conditions
(Owner of (Killing unit)) == 1
Actions
Variable - Modify Kills: + 1
i am sure this is correct but the leader board still show me after 50 kills that i have 0 and i got no clue what i did wrong
Sorry for the bad english hope some one can help me :/
You have to do Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Kills))
everytime you want to update the leaderboard.
dont work :/
Kills
Events
Unit - Any Unit dies
Local Variables
Conditions
(Owner of (Killing unit)) == 1
Actions
Variable - Modify Kills: + 1
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Kills"
UI - Display (Text(Kills)) for (All players) to Subtitle area
I added a Text for test and it displays the correct value but leader board dont update :(
You are updating the label "Kills". You want to upgrade the value (column 2, row 1) with Text(Kills) :)
Ouch that hurts my bad :D
....
Actions
Variable - Modify Kills: + 1
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Kills))
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Test"
UI - Display (Text(Kills)) for (All players) to Subtitle area
But still dont work i really dont get what goes wrong there
i also did try to chance now the first column to "test" but dont work to ...
Maybe the (Last created leaderboard) isn't set when you are in another trigger. What about setting creating a Leaderboard global variable set to (Last created leaderboard) in the creation trigger.
And use this variable for the leaderboard instead of (Last created leaderboard).
OMG THANKS !!!
thats it !!!!
First
Creater Variable (info = name)
Info = No Leaderboard <Leaderboard>
After you create your leader board
Leaderboard - Create a leaderboard with 2 columns and 2 rows, with the name "Info", and using (100%, 100%, 100%) color.
Add the Action (info is the name of my leader board variable)
Variable - Set Info = (Last created leaderboard)
now you can update it with (here is info agen the variable)
Leaderboard - Set Info item text at column 2 and row 1 to (Text(Kills))
Big thanks i was about to get crazy with this :D
I've been trying to do this but I can't figure out how to set the (Text(Kills)) part. It won't let me select a variable, and whatever i type in the value box it puts quotes around.
You have use "Convert Integer To Text" function before it allows you to select the variable with Integer type. So click on the (Text) > Functions > Conversion > Convert Integer To Text .... it will appear as (Text(0)) Now u can select your variable...
Anyone thinking of doing a tutorial on an advanced leaderboard? With not only player names and kill count, but the level of a hero and the current life of the player?
Excellent. Thank you.
I just can't get this to work. I'm completely hopless when it comes to any kind of scripting language.
It would be awsome if someone could write a tutorial for this.
anyone have problem using "Set Item Font Size" and "Set Item Background Color"? cant get this two to work
ok i think i found out the cause of the problem. Preset for All Rows and All Columns dont seems to work.