# Set Leaderboard Groups

Grammar — Change board|Leaderboard to have count groups
FlagsNative | Action

Sets the number of groups in a leaderboard.

# Arguments

  • int<preset::Board> — Board
  • int — Count

Returns — void

native void BoardSetGroupCount(int inBoard, int inGroups);

Category: Leaderboard / Format

# Examples

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

    BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(gv_uploadBoard, 1);
    BoardRowSetGroup(gv_uploadBoard, 1, 1);
    BoardRowSetGroup(gv_uploadBoard, 2, 1);

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

    BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(gv_mineralBoard, 1);
    BoardRowSetGroup(gv_mineralBoard, 1, 1);
    BoardItemSetText(gv_mineralBoard, c_boardColGroups, 1, StringExternal("Param/Value/CE8A3BEC"));

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

    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(BoardLastCreated(), 1);
    BoardRowSetGroup(BoardLastCreated(), 1, 1);
    BoardRowSetGroup(BoardLastCreated(), 2, 1);

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

    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(BoardLastCreated(), 1);
    BoardRowSetGroup(BoardLastCreated(), 1, 1);
    BoardRowSetGroup(BoardLastCreated(), 2, 1);

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

    BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(gv_uploadBoard, PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(gv_uploadBoard, 1);
    BoardRowSetGroup(gv_uploadBoard, 1, 1);
    BoardRowSetGroup(gv_uploadBoard, 2, 1);

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

    BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(gv_mineralBoard, PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(gv_mineralBoard, 1);
    BoardRowSetGroup(gv_mineralBoard, 1, 1);
    BoardItemSetText(gv_mineralBoard, c_boardColGroups, 1, StringExternal("Param/Value/CE8A3BEC"));

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

    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(BoardLastCreated(), 1);
    BoardRowSetGroup(BoardLastCreated(), 1, 1);
    BoardRowSetGroup(BoardLastCreated(), 2, 1);

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

    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, false);
    BoardSetGroupCount(BoardLastCreated(), 1);
    BoardRowSetGroup(BoardLastCreated(), 1, 1);
    BoardRowSetGroup(BoardLastCreated(), 2, 1);