# Create Leaderboard

Grammar — Create a leaderboard with columns columns and rows rows, with the name name|Text, and using color color.
FlagsNative | 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 — Columns
  • int — Rows
  • text — Name
  • color — Color

Returns — int [ preset::Board ]

native int BoardCreate(
	int inCols,
	int inRows,
	text inName,
	color inColor,
);

Category: Leaderboard / Leaderboards

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// 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))
// 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

LibChal.galaxy

// 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

MapScript.galaxy

// 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))