Tip:
Highlight text to annotate it
X
hello everyone today I'm going to show you how to make a leaderboard
using a Starcraft 2 editor so first what you want to do
is open up the Editor which I have already done
and I as Ste in a day to full
units and made the allies
you can do whatever you want here met but
firstly what to do is make a new trigger I'm going to name it
leaderboard and what you want to make the event
is the default so now you want to do
under the actions is you want to create
a leaderboard so
mine is going to head two columns and
or rose because I'm going to have four players
and do you want to make heroes head over many
players you have and I'm going to name it
simply leaderboard
okay so now you want to do as on the side here you want to make
a new variable I'm going to name it leaderboard again
and make it a leaderboard
tight and then go back to that
other figure that you just made and make a new
action set variable
and set that variable that you just made Eagle the less
read created leaderboard
okay so that's the first part
now you want to do is at the players
so I'm going to do
is I'm going to pick teach integer because
for some reason when the pic each player it has
some problems when you have them before
other actions son's going to do integer
ill or just as well systems have four players
on making it pick from one to four so then
I want to head player to leaderboard
a civil war you want
picked for are picked integer
and also under this
you want a
Taylor said
the leaderboard item text and then set it
at column 1 and then grow pic
integer
20 set that to DVD player name
say you go on your function and then you get
nickname The player and the senate
triggering player you why the
the picked integer K
and what I like to do is making another
action and it's going to be a leader board
and you want to set the leaderboard
i can text color him I said it at the same column
and then world picked integer again and you want to set it
to function color earth
player see it to convert player color to color
said it's shaking
player you want picked interview
okay sitting out the player name will be there and it will be the color the
player
so now under the
set variable action going to make a new action
anti-white to set
the headers so
I want to use it leaderboard I don't text again had column 1
said over a1 you want row
header just under President and I'm going to set that
to all their names
you can make it whatever you want but this is what I'm making it now
I'm gonna cut and paste that and this time
stuck on one it's going to be countin and then this time I'm gonna make the
name
kills okay
so now under the picked engineer
action you want to set
text again site is cutting a city so you want column to you
grow you still want expenditure
any want to set it 20
and I cupping the wrong on up
this again C-one onto you
row kicked into gear and you want to set it to 0
so that a had 0 kills at the beginning and the game
okay
so now I also like to do is
make and if statement
to see if the player is in the game
so
if the status
the player status
the player picked into you
and if that Eagles present
say you want it to me
not people which is the one with the explanation point so that the state
a picked engine chair player is not playing
and I want to use it
Tia text to
in the year
how to set the it color to you great so
online to pick a grayish color
and I want to make need name s that the name
player school value in taping
not playing so that if the players not playing at all
to say they are not there in this faucet
it is for any computer players it will say
not playing if you take that player and also to help this
you can copy and paste this condition
and you can't say controller
ft controller
love player picked
into J
does not equal user
then you can also do this and you also
under this you want in or so that its
either-or so all work a lot better
okay so now that you have a leaderboard you have to show it
so under the picked integer
you want to use show the leaderboard
sun's going to show all leader board since I only have one it doesn't really
matter
but if you have multiple it avoids you up to
specifically only show the one you want but
cent a level I only have one it doesn't really matter so now what you have to do
is make its keeps track it kills so I'm going to make
a new variable in just a minute
kill count and it will be
and anti-gay with NRA how many players you have
set for me it's for and I'm going to make a new
trigger and in a minute something like
kill counts or whatever you want so under the event
you want unit diets and after that
you want to use it variable and
set the kill count and click the real
and do killing player
70 nuit
to thank you arithmetic for the next part
and then the variable that you just made again replaces area with killing player
and plus what
said I every time a unit diane's
the player who killed that unit will
get one added on to that variable that we just made
and then after that we want to
set the leaderboard I don't text so I said let's create leaderboard like the
other ones
you want the variable that you made which is named leaderboard for me
in your work columns to you row
killing player anyone set that
to you a function and came very
integer to text because the variable is an integer
and get conferred said then you get here able
cheese that and again places 0 with
chain play Mary Gail
so now it should update be a text whenever
a ticket to kill so now you go back to early to avoid
make sure that everything is the way you want it
and you can test it so yes is that i won us the name then
allies and yeah this is pretty much it
now all tested thank you for watching