# 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.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1355

    }

    BoardCreate(1, 4, StringToText(""), Color(0.00, 100.00, 0.00));
    gv_merc_Contract_Price_Board = BoardLastCreated();
    BoardSetState(gv_merc_Contract_Price_Board, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2651


    TriggerEnable(TriggerGetCurrent(), false);
    BoardCreate(2, 3, StringToText(""), Color(100.00, 100.00, 100.00));
    gv_uploadBoard = BoardLastCreated();
    BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1331

    }

    BoardCreate(3, 1, StringToText(""), Color(0.00, 100.00, 0.00));
    gv_mineralBoard = BoardLastCreated();
    BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:1028

    }

    BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00));
    gv_platformSpectresBOARD = BoardLastCreated();
    BoardSetState(gv_platformSpectresBOARD, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:4083


    SoundPlay(SoundLink("UI_TechConsole_Select", 0), PlayerGroupAll(), 100.0, 0.0);
    BoardCreate(1, 1, StringToText(""), Color(0.00, 0.00, 100.00));
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
    gv_leaderBoardDrops = BoardLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1186

    TriggerExecute(gt_ArtifactCharging, true, false);
    VisRevealerEnable(gv_artifactRevealer, true);
    BoardCreate(1, 2, StringExternal("Param/Value/21DB17A4"), Color(100.00, 100.00, 100.00));
    gv_artifactBoard = BoardLastCreated();
    BoardItemSetText(gv_artifactBoard, 1, c_boardRowHeader, StringExternal("Param/Value/9C83DB5C"));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:784

    }

    BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetState(gv_leaderboard, PlayerGroupAll(), c_boardStateShowHeader, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1053

    }

    BoardCreate(2, 2, StringExternal("Param/Value/5A8FB6AE"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 15.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1108

    }

    BoardCreate(2, 2, StringExternal("Param/Value/E5825392"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 20.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:1355

    }

    BoardCreate(1, 4, StringToText(""), Color(0.00, 100.00, 0.00));
    gv_merc_Contract_Price_Board = BoardLastCreated();
    BoardSetState(gv_merc_Contract_Price_Board, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2mapMapScript.galaxy:2651


    TriggerEnable(TriggerGetCurrent(), false);
    BoardCreate(2, 3, StringToText(""), Color(100.00, 100.00, 100.00));
    gv_uploadBoard = BoardLastCreated();
    BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:1331

    }

    BoardCreate(3, 1, StringToText(""), Color(0.00, 100.00, 0.00));
    gv_mineralBoard = BoardLastCreated();
    BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:1028

    }

    BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00));
    gv_platformSpectresBOARD = BoardLastCreated();
    BoardSetState(gv_platformSpectresBOARD, PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:4083


    SoundPlay(SoundLink("UI_TechConsole_Select", 0), PlayerGroupAll(), 100.0, 0.0);
    BoardCreate(1, 1, StringToText(""), Color(0.00, 0.00, 100.00));
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
    gv_leaderBoardDrops = BoardLastCreated();

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:1186

    TriggerExecute(gt_ArtifactCharging, true, false);
    VisRevealerEnable(gv_artifactRevealer, true);
    BoardCreate(1, 2, StringExternal("Param/Value/21DB17A4"), Color(100.00, 100.00, 100.00));
    gv_artifactBoard = BoardLastCreated();
    BoardItemSetText(gv_artifactBoard, 1, c_boardRowHeader, StringExternal("Param/Value/9C83DB5C"));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul04.sc2mapMapScript.galaxy:784

    }

    BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetState(gv_leaderboard, PlayerGroupAll(), c_boardStateShowHeader, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1053

    }

    BoardCreate(2, 2, StringExternal("Param/Value/5A8FB6AE"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 15.0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1108

    }

    BoardCreate(2, 2, StringExternal("Param/Value/E5825392"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 20.0);

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:255

void libChal_gf_ChallengeScoreWindow (text lp_unitsText, int lp_finalScore, int lp_rankScore) {
    // Implementation
    BoardCreate(1, 1, StringToText(""), Color(100.00, 100.00, 100.00));
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false);

mods/challenges.sc2modbase.sc2data/LibChal.galaxy:263

void libChal_gf_ChallengeScoreWindowwithRounds (text lp_round1Text, text lp_round2Text, text lp_round3Text, text lp_totalLossesText, int lp_round1Losses, int lp_round2Losses, int lp_round3Losses, int lp_totalLosses) {
    // Implementation
    BoardCreate(1, 4, StringToText(""), Color(100.00, 100.00, 100.00));
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:2589


    SoundPlayForPlayer(SoundLink("LeaderboardPop", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    BoardCreate(2, 1, StringExternal("Param/Value/BE3694D1"), Color(100.00, 100.00, 100.00));
    gv_deathFleetLeaderboard = BoardLastCreated();
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2mapMapScript.galaxy:2589


    SoundPlayForPlayer(SoundLink("LeaderboardPop", 0), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    BoardCreate(2, 1, StringExternal("Param/Value/BE3694D1"), Color(100.00, 100.00, 100.00));
    gv_deathFleetLeaderboard = BoardLastCreated();
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);