# Destroy Leaderboard
Grammar — Destroy board|Leaderboard
Flags —Native
|Action
Destroys a leaderboard, removing it from the game.
# Arguments
int
<preset::Board> — Board
Returns — void
native void BoardDestroy(int inBoard);
# Related
Category: Leaderboard / Leaderboards
- Create Leaderboard —
int
<preset::Board> — BoardCreate - Last Created Leaderboard —
int
<preset::Board> — BoardLastCreated - Set Leaderboard Name —
void
— BoardSetName - Anchor Leaderboard —
void
— BoardSetAnchor - Move Leaderboard —
void
— BoardSetPosition - Reset Leaderboard Position —
void
— BoardResetPosition - Show/Hide Leaderboard —
void
— libNtve_gf_ShowHideLeaderboard - Show/Hide All Leaderboards —
void
— BoardShowAll - Destroy Leaderboard —
void
— BoardDestroy
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1463
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
SoundPlay(SoundLink("UI_TechConsole_Purchase", -1), PlayerGroupAll(), 100.0, 0.0);
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropMinerals, c_playerPropOperSubtract, gv_mERC_CONTRACT_PRICE);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1506
TriggerEnable(TriggerGetCurrent(), false);
TriggerExecute(gt_ObjectiveBuyContractFailedQ, true, true);
BoardDestroy(gv_merc_Contract_Price_Board);
TriggerExecute(gt_DefeatMiraHanDead, true, false);
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1637
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
libNtve_gf_HideScreenButton(false, 1);
gv_miraHanContractBought = true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:5661
PlayerSetState(gv_p01_USER, c_playerStateXPGain, false);
GameTimeOfDayPause(true);
BoardDestroy(gv_merc_Contract_Price_Board);
libNtve_gf_HideScreenButton(false, 1);
UnitRemove(UnitFromId(928));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:5513
TriggerExecute(gt_ObjectiveKillSpectresCreate, true, false);
BoardDestroy(gv_platformSpectresBOARD);
ObjectiveSetState(gv_objectiveKillSpectres, c_objectiveStateCompleted);
Wait(libCamp_gv_campaignObjectiveDelay, c_timeReal);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:3564
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
SoundPlay(SoundLink("UI_TechConsole_Select", 0), PlayerGroupAll(), 100.0, 0.0);
BoardDestroy(gv_leaderBoardDrops);
TriggerExecute(gt_DialogueSirWShouldMobilizeEverythingWeGotQ, true, false);
TriggerQueueExit();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4439
}
BoardDestroy(gv_artifactBoard);
libNtve_gf_HideScreenButton(false, 1);
TriggerStop(gt_ArtifactCharging);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1718
TriggerEnable(gt_EnergyTimer, false);
PingDestroy(gv_pingHybridBoss);
BoardDestroy(gv_energyBoard);
TimerWindowDestroy(gv_timerWindow);
Wait(0.2, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1736
gv_hybridPrisonsAllAlive = false;
TriggerEnable(gt_EnergyTimer, false);
BoardDestroy(gv_energyBoard);
TimerWindowDestroy(gv_timerWindow);
UnitRemove(gv_hybridNeutral);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:816
else {
}
BoardDestroy(gv_board);
while (!((gv_ready == true))) {
Wait(0.5, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:2101
TriggerQueueEnter();
if ((gv_board == c_boardNone)) {
BoardDestroy(gv_board);
libChal_gf_ChallengeScoreWindowwithRounds(StringExternal("Param/Value/98210A08"), StringExternal("Param/Value/4950023D"), StringExternal("Param/Value/C90D1FEF"), StringExternal("Param/Value/E7F31366"), gv_lostUnitsRound1, gv_lostUnitsRound2, gv_lostUnitsRound3, gf_TotalScore());
gv_board = BoardLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:685
UnitPauseAll(true);
BoardDestroy(gv_board);
VisRevealerDestroy(gv_revealerNE);
VisRevealerDestroy(gv_revealerNW);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1358
}
BoardDestroy(gv_leaderboard);
TimerWindowDestroy(gv_prepTimerWindow);
gv_time = 0;
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:2271
gv_inCinematic = true;
BoardDestroy(gv_leaderboard);
TimerWindowDestroy(gv_prepTimerWindow);
gv_time = 0;
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:1923
TriggerQueueEnter();
if ((gv_board == c_boardNone)) {
BoardDestroy(gv_board);
libChal_gf_ChallengeScoreWindowwithRounds(StringExternal("Param/Value/B280EC7F"), StringExternal("Param/Value/BDCC67B5"), StringExternal("Param/Value/9DA22040"), StringExternal("Param/Value/69959261"), gv_lostUnitsRound1, gv_lostUnitsRound2, gv_lostUnitsRound3, gf_TotalScore());
gv_board = BoardLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:624
gv_terranBase = UnitGroupEmpty();
gv_ready = false;
BoardDestroy(gv_board);
ObjectiveDestroy(gv_objectiveKill1);
ObjectiveDestroy(gv_objectiveKill2);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2007
TriggerQueueEnter();
if ((gv_board == c_boardNone)) {
BoardDestroy(gv_board);
libChal_gf_ChallengeScoreWindowwithRounds(StringExternal("Param/Value/3E57CB9D"), StringExternal("Param/Value/16ED74D7"), StringExternal("Param/Value/67896A65"), StringExternal("Param/Value/F4EF1FEC"), gv_lostUnitsRound1, gv_lostUnitsRound2, gv_lostUnitsRound3, gf_TotalScore());
gv_board = BoardLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:785
}
TriggerExecute(gt_ObjectiveKillUpdate, true, false);
BoardDestroy(gv_board);
while (!((gv_ready == true))) {
Wait(0.5, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1463
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
SoundPlay(SoundLink("UI_TechConsole_Purchase", -1), PlayerGroupAll(), 100.0, 0.0);
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropMinerals, c_playerPropOperSubtract, gv_mERC_CONTRACT_PRICE);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1506
TriggerEnable(TriggerGetCurrent(), false);
TriggerExecute(gt_ObjectiveBuyContractFailedQ, true, true);
BoardDestroy(gv_merc_Contract_Price_Board);
TriggerExecute(gt_DefeatMiraHanDead, true, false);
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1637
UnitClearInfoText(UnitFromId(894));
UnitClearInfoText(UnitFromId(767));
BoardDestroy(gv_merc_Contract_Price_Board);
libNtve_gf_HideScreenButton(false, 1);
gv_miraHanContractBought = true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:5661
PlayerSetState(gv_p01_USER, c_playerStateXPGain, false);
GameTimeOfDayPause(true);
BoardDestroy(gv_merc_Contract_Price_Board);
libNtve_gf_HideScreenButton(false, 1);
UnitRemove(UnitFromId(928));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:5513
TriggerExecute(gt_ObjectiveKillSpectresCreate, true, false);
BoardDestroy(gv_platformSpectresBOARD);
ObjectiveSetState(gv_objectiveKillSpectres, c_objectiveStateCompleted);
Wait(libCamp_gv_campaignObjectiveDelay, c_timeReal);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2map — MapScript.galaxy:3564
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
SoundPlay(SoundLink("UI_TechConsole_Select", 0), PlayerGroupAll(), 100.0, 0.0);
BoardDestroy(gv_leaderBoardDrops);
TriggerExecute(gt_DialogueSirWShouldMobilizeEverythingWeGotQ, true, false);
TriggerQueueExit();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:4439
}
BoardDestroy(gv_artifactBoard);
libNtve_gf_HideScreenButton(false, 1);
TriggerStop(gt_ArtifactCharging);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:1718
TriggerEnable(gt_EnergyTimer, false);
PingDestroy(gv_pingHybridBoss);
BoardDestroy(gv_energyBoard);
TimerWindowDestroy(gv_timerWindow);
Wait(0.2, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:1736
gv_hybridPrisonsAllAlive = false;
TriggerEnable(gt_EnergyTimer, false);
BoardDestroy(gv_energyBoard);
TimerWindowDestroy(gv_timerWindow);
UnitRemove(gv_hybridNeutral);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2map — MapScript.galaxy:816
else {
}
BoardDestroy(gv_board);
while (!((gv_ready == true))) {
Wait(0.5, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2map — MapScript.galaxy:2101
TriggerQueueEnter();
if ((gv_board == c_boardNone)) {
BoardDestroy(gv_board);
libChal_gf_ChallengeScoreWindowwithRounds(StringExternal("Param/Value/98210A08"), StringExternal("Param/Value/4950023D"), StringExternal("Param/Value/C90D1FEF"), StringExternal("Param/Value/E7F31366"), gv_lostUnitsRound1, gv_lostUnitsRound2, gv_lostUnitsRound3, gf_TotalScore());
gv_board = BoardLastCreated();
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2map — MapScript.galaxy:685
UnitPauseAll(true);
BoardDestroy(gv_board);
VisRevealerDestroy(gv_revealerNE);
VisRevealerDestroy(gv_revealerNW);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2map — MapScript.galaxy:1358
}
BoardDestroy(gv_leaderboard);
TimerWindowDestroy(gv_prepTimerWindow);
gv_time = 0;
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2map — MapScript.galaxy:2271
gv_inCinematic = true;
BoardDestroy(gv_leaderboard);
TimerWindowDestroy(gv_prepTimerWindow);
gv_time = 0;
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:1923
TriggerQueueEnter();
if ((gv_board == c_boardNone)) {
BoardDestroy(gv_board);
libChal_gf_ChallengeScoreWindowwithRounds(StringExternal("Param/Value/B280EC7F"), StringExternal("Param/Value/BDCC67B5"), StringExternal("Param/Value/9DA22040"), StringExternal("Param/Value/69959261"), gv_lostUnitsRound1, gv_lostUnitsRound2, gv_lostUnitsRound3, gf_TotalScore());
gv_board = BoardLastCreated();
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2map — MapScript.galaxy:624
gv_terranBase = UnitGroupEmpty();
gv_ready = false;
BoardDestroy(gv_board);
ObjectiveDestroy(gv_objectiveKill1);
ObjectiveDestroy(gv_objectiveKill2);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:2007
TriggerQueueEnter();
if ((gv_board == c_boardNone)) {
BoardDestroy(gv_board);
libChal_gf_ChallengeScoreWindowwithRounds(StringExternal("Param/Value/3E57CB9D"), StringExternal("Param/Value/16ED74D7"), StringExternal("Param/Value/67896A65"), StringExternal("Param/Value/F4EF1FEC"), gv_lostUnitsRound1, gv_lostUnitsRound2, gv_lostUnitsRound3, gf_TotalScore());
gv_board = BoardLastCreated();
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2map — MapScript.galaxy:785
}
TriggerExecute(gt_ObjectiveKillUpdate, true, false);
BoardDestroy(gv_board);
while (!((gv_ready == true))) {
Wait(0.5, c_timeGame);