# Create Leaderboard
Grammar — Create a leaderboard with columns columns and rows rows, with the name name|Text, and using color color.
Flags —Native
|Action
Creates a leaderboard with a specified amount of rows and columns. Use “Last Created Leaderboard” to get the leaderboard created by this action.
# Arguments
int
— Columnsint
— Rowstext
— Namecolor
— Color
Returns — int
[ preset::Board ]
native int BoardCreate(
int inCols,
int inRows,
text inName,
color inColor,
);
# Related
Category: Leaderboard / Leaderboards
- [F] —
int
[ preset::Board ] — Create Leaderboard — ( BoardCreate ) - [F] —
int
[ preset::Board ] — Last Created Leaderboard — ( BoardLastCreated ) - [F] —
void
— Set Leaderboard Name — ( BoardSetName ) - [F] —
void
— Anchor Leaderboard — ( BoardSetAnchor ) - [F] —
void
— Move Leaderboard — ( BoardSetPosition ) - [F] —
void
— Reset Leaderboard Position — ( BoardResetPosition ) - [F] —
void
— Show/Hide Leaderboard — ( libNtve_gf_ShowHideLeaderboard ) - [F] —
void
— Show/Hide All Leaderboards — ( BoardShowAll ) - [F] —
void
— Destroy Leaderboard — ( BoardDestroy )
# Examples
# campaigns/liberty.sc2campaign
// L1053
BoardCreate(2, 2, StringExternal("Param/Value/5A8FB6AE"), Color(100.00, 100.00, 100.00))
// L1108
BoardCreate(2, 2, StringExternal("Param/Value/E5825392"), Color(100.00, 100.00, 100.00))
// L1355
BoardCreate(1, 4, StringToText(""), Color(0.00, 100.00, 0.00))
// L2651
BoardCreate(2, 3, StringToText(""), Color(100.00, 100.00, 100.00))
// L1331
BoardCreate(3, 1, StringToText(""), Color(0.00, 100.00, 0.00))
// L1028
BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00))
// L4083
BoardCreate(1, 1, StringToText(""), Color(0.00, 0.00, 100.00))
// L1186
BoardCreate(1, 2, StringExternal("Param/Value/21DB17A4"), Color(100.00, 100.00, 100.00))
// L784
BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00))
// L1355
BoardCreate(1, 4, StringToText(""), Color(0.00, 100.00, 0.00))
// L2651
BoardCreate(2, 3, StringToText(""), Color(100.00, 100.00, 100.00))
// L1331
BoardCreate(3, 1, StringToText(""), Color(0.00, 100.00, 0.00))
// L1028
BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00))
// L4083
BoardCreate(1, 1, StringToText(""), Color(0.00, 0.00, 100.00))
// L1186
BoardCreate(1, 2, StringExternal("Param/Value/21DB17A4"), Color(100.00, 100.00, 100.00))
// L784
BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00))
// L1053
BoardCreate(2, 2, StringExternal("Param/Value/5A8FB6AE"), Color(100.00, 100.00, 100.00))
// L1108
BoardCreate(2, 2, StringExternal("Param/Value/E5825392"), Color(100.00, 100.00, 100.00))
# mods/challenges.sc2mod
// L255
BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00))
// L263
BoardCreate(1, 4, StringToText(""), Color(100.00, 100.00, 100.00))
# mods/novastoryassets.sc2mod
// L2534
BoardCreate(2, 1, StringExternal("Param/Value/BE3694D1"), Color(100.00, 100.00, 100.00))
// L2534
BoardCreate(2, 1, StringExternal("Param/Value/BE3694D1"), Color(100.00, 100.00, 100.00))