# Set Leaderboard Groups
Grammar — Change board|Leaderboard to have count groups
Flags —Native
|Action
Sets the number of groups in a leaderboard.
# Arguments
int
<preset::Board> — Boardint
— Count
Returns — void
native void BoardSetGroupCount(int inBoard, int inGroups);
# Related
Category: Leaderboard / Format
- Set Leaderboard Sort Column —
void
— BoardSort - Set Leaderboard Groups —
void
— BoardSetGroupCount - Set Leaderboard Group For Row —
void
— BoardRowSetGroup - Set Leaderboard Column Width —
void
— BoardSetColumnWidth - Set Leaderboard Rows —
void
— BoardSetRowCount - Set Leaderboard Columns —
void
— BoardSetColumnCount - Enable/Disable Leaderboard State —
void
— BoardSetState - Show/Hide Leaderboard Minimize Button —
void
— BoardMinimizeShow - Set Leaderboard Minimize Button Color —
void
— BoardMinimizeSetColor - Turn Leaderboard Minimize Button On/Off —
void
— BoardMinimizeEnable - Minimize Leaderboard —
void
— BoardMinimizeSetState
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);