Variables
Blue Team = 0 <Integer>
Red Team = 0 <Integer>
Leadboard
Leaderboard - Create a leaderboard with 2 columns and 2 rows, with the name "Leaderboard", and using (100%, 100%, 100%) color.
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Red Team"
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 2 to "Blue Team"
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Red Team))
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(Blue Team))
Scoring
Events
Unit - Korhal Flag - Destructible [39.50, 15.50] Enters Blue Flag
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Korhal Flag - Destructible [38.50, 88.50] is in Blue Flag) == true
Then
UI - Display "The BLUE team have captured the RED..." for (All players) to Subtitle area
Variable - Modify Blue Team: + 1
and it doesnt update on the leadboard but it does infact update the variable itself... any ideas?
You need to add a
"Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Red Team))
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(Blue Team))".
Leaderboards don't automatically update their text AFAIK.
And better give the (Last created Leaderboard) a variable "LBoard" or something, or it might bug because of lost reference.
just tried what you suggested with the exception of the give the leaderboard a variable thing and did not work... i dont know how to do the give leaderboard a variable
@Bounty_98: Go
Directly after the command that creates the leaderboard, you need to make a "Set Variable" command that does "LBoard = (Last Created Leaderboard)". This way that leaderboard will have a permanent handle that doesn't lose reference.
Variables
Blue Team = 0 <Integer>
Red Team = 0 <Integer>
Leadboard
Leaderboard - Create a leaderboard with 2 columns and 2 rows, with the name "Leaderboard", and using (100%, 100%, 100%) color.
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 1 to "Red Team"
Leaderboard - Set (Last created leaderboard) item text at column 1 and row 2 to "Blue Team"
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Red Team))
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(Blue Team))
Scoring
Events
Unit - Korhal Flag - Destructible [39.50, 15.50] Enters Blue Flag
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Korhal Flag - Destructible [38.50, 88.50] is in Blue Flag) == true
Then
UI - Display "The BLUE team have captured the RED..." for (All players) to Subtitle area
Variable - Modify Blue Team: + 1
and it doesnt update on the leadboard but it does infact update the variable itself... any ideas?
You need to add a "Leaderboard - Set (Last created leaderboard) item text at column 2 and row 1 to (Text(Red Team)) Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(Blue Team))".
Leaderboards don't automatically update their text AFAIK.
And better give the (Last created Leaderboard) a variable "LBoard" or something, or it might bug because of lost reference.
@phoenixfire2001
just tried what you suggested with the exception of the give the leaderboard a variable thing and did not work... i dont know how to do the give leaderboard a variable
Create a variable of type Leaderboard then the line after you create the Leaderboard do Set Variable: yourLeaderboard == last created Leaderboard
@Bounty_98: Go Directly after the command that creates the leaderboard, you need to make a "Set Variable" command that does "LBoard = (Last Created Leaderboard)". This way that leaderboard will have a permanent handle that doesn't lose reference.
@phoenixfire2001
does it need to be an array or nething?
@Bounty_98: Go
Best to make it 15, for all players. So you won't get any bugs in the game.
This will not solve the problem with the thingies not updating, to have them updated, you need to use
Leaderboard - Set (Last created leaderboard) item text at column 2 and row 2 to (Text(Blue Team))
where you update the variable. The leaderboards aren't autotracking whenever something changes - you have to update them manually!