# Set Leaderboard Item Progress Value
Grammar — Set board|Leaderboard item progress value at column column and row row to minimum
Flags —Native
|Action
Sets the current value of a progress bar within a leaderboard item. Use the “Set Leaderboard Item Progress Range” action to set the item’s range.
# Arguments
int
<preset::Board> — Boardint
— Columnint
— Rowfixed
— Value
Returns — void
native void BoardItemSetProgressValue(
int inBoard,
int inCol,
int inRow,
fixed inVal,
);
# Related
Category: Leaderboard / Progress Bars
- Show/Hide Leaderboard Item Progress Bar —
void
— BoardItemSetProgressShow - Set Leaderboard Item Progress Range —
void
— BoardItemSetProgressRange - Set Leaderboard Item Progress Value —
void
— BoardItemSetProgressValue - Set Leaderboard Item Progress Color —
void
— BoardItemSetProgressColor
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1371
BoardItemSetProgressRange(gv_merc_Contract_Price_Board, 1, 4, 0.0, IntToFixed(gv_mERC_CONTRACT_PRICE));
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1);
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1372
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1);
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 4, "Assets\\Textures\\icon-mineral-zerg.dds", false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1407
}
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 1, (StringExternal("Param/Value/BC8609EA") + IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1408
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 1, (StringExternal("Param/Value/BC8609EA") + IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))));
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 3, (StringExternal("Param/Value/92B49FB8") + IntToText(gv_oRLANS_MINERAL_COUNT)));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1199
BoardItemSetProgressRange(gv_artifactBoard, 1, 2, 0.0, 1.0);
BoardItemSetProgressColor(gv_artifactBoard, 1, 2, Color(50.20, 50.20, 100.00), 1);
BoardItemSetProgressValue(gv_artifactBoard, 1, 2, (gv_artifactChargeCurrent / gv_artifactChargeMax));
BoardItemSetText(gv_artifactBoard, 1, 1, (StringExternal("Param/Value/DE6AFFF6") + FixedToText(gf_ArtifactChargePercent(), 1) + StringExternal("Param/Value/F2914021")));
BoardItemSetFontSize(gv_artifactBoard, 1, 1, 18);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1209
while (true) {
Wait(1.0, c_timeGame);
BoardItemSetProgressValue(gv_artifactBoard, 1, 2, (gv_artifactChargeCurrent / gv_artifactChargeMax));
BoardItemSetText(gv_artifactBoard, 1, 1, (StringExternal("Param/Value/CE5FAE7A") + FixedToText(gf_ArtifactChargePercent(), 1) + StringExternal("Param/Value/CEEF6569")));
if ((gv_gameOver == true)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:876
}
BoardItemSetProgressValue(gv_energyBoard, 1, 1, (TimerGetElapsed(gv_attackTimer) / gv_hybridRespawnTime));
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1603
UnitIssueOrder(gv_preserverPrison03, OrderTargetingUnit(AbilityCommand("SoulChannel", 0), gv_hybridNeutral), c_orderQueueReplace);
TimerStart(gv_attackTimer, gv_hybridRespawnTime, false, c_timeAI);
BoardItemSetProgressValue(gv_energyBoard, 1, 1, 0.0);
BoardShowAll(true, PlayerGroupAll());
TimerWindowShow(gv_timerWindow, PlayerGroupAll(), true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1371
BoardItemSetProgressRange(gv_merc_Contract_Price_Board, 1, 4, 0.0, IntToFixed(gv_mERC_CONTRACT_PRICE));
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1);
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1372
BoardItemSetProgressColor(gv_merc_Contract_Price_Board, 1, 4, Color(100.00, 0.00, 0.00), 1);
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 2, "Assets\\Textures\\icon-mineral-terran.dds", false);
BoardItemSetIcon(gv_merc_Contract_Price_Board, 1, 4, "Assets\\Textures\\icon-mineral-zerg.dds", false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1407
}
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 1, (StringExternal("Param/Value/BC8609EA") + IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2map — MapScript.galaxy:1408
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 2, IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals)));
BoardItemSetProgressValue(gv_merc_Contract_Price_Board, 1, 4, IntToFixed(gv_oRLANS_MINERAL_COUNT));
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 1, (StringExternal("Param/Value/BC8609EA") + IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))));
BoardItemSetText(gv_merc_Contract_Price_Board, 1, 3, (StringExternal("Param/Value/92B49FB8") + IntToText(gv_oRLANS_MINERAL_COUNT)));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:1199
BoardItemSetProgressRange(gv_artifactBoard, 1, 2, 0.0, 1.0);
BoardItemSetProgressColor(gv_artifactBoard, 1, 2, Color(50.20, 50.20, 100.00), 1);
BoardItemSetProgressValue(gv_artifactBoard, 1, 2, (gv_artifactChargeCurrent / gv_artifactChargeMax));
BoardItemSetText(gv_artifactBoard, 1, 1, (StringExternal("Param/Value/DE6AFFF6") + FixedToText(gf_ArtifactChargePercent(), 1) + StringExternal("Param/Value/F2914021")));
BoardItemSetFontSize(gv_artifactBoard, 1, 1, 18);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:1209
while (true) {
Wait(1.0, c_timeGame);
BoardItemSetProgressValue(gv_artifactBoard, 1, 2, (gv_artifactChargeCurrent / gv_artifactChargeMax));
BoardItemSetText(gv_artifactBoard, 1, 1, (StringExternal("Param/Value/CE5FAE7A") + FixedToText(gf_ArtifactChargePercent(), 1) + StringExternal("Param/Value/CEEF6569")));
if ((gv_gameOver == true)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:876
}
BoardItemSetProgressValue(gv_energyBoard, 1, 1, (TimerGetElapsed(gv_attackTimer) / gv_hybridRespawnTime));
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:1603
UnitIssueOrder(gv_preserverPrison03, OrderTargetingUnit(AbilityCommand("SoulChannel", 0), gv_hybridNeutral), c_orderQueueReplace);
TimerStart(gv_attackTimer, gv_hybridRespawnTime, false, c_timeAI);
BoardItemSetProgressValue(gv_energyBoard, 1, 1, 0.0);
BoardShowAll(true, PlayerGroupAll());
TimerWindowShow(gv_timerWindow, PlayerGroupAll(), true);