# Set Boss Bar Maximum Value
Grammar — Set boss bar bossBarID maximum value to max (refresh|Do/Do Not refresh the boss bar)
Flags —Action
Sets the maximum value for the specified boss bar. Calling this action will overwrite the boss unit you set through “Set Boss Bar Boss”, and will instead rely on the values sent to it through “Set Boss Bar Maximum Value” and “Set Boss Bar Current Value”.
# Arguments
int
— BossBarIDint
— Maxbool
[ preset::Do_Do_Not_Option ] — Refresh
Returns — void
void libNtve_gf_SetBossBarMaximumValue(
int lp_bossBarID,
int lp_max,
bool lp_refresh,
);
# Related
Category: UI / Boss Bar
- [F] —
void
— Display Boss Bar — ( libNtve_gf_DisplayBossBar ) - [F] —
void
— Set Boss Bar Maximum Value — ( libNtve_gf_SetBossBarMaximumValue ) - [F] —
void
— Set Boss Bar Current Value — ( libNtve_gf_SetBossBarCurrentValue ) - [F] —
void
— Set Boss Bar Boss — ( libNtve_gf_SetBossBarBoss ) - [P] — Boss Bar Race
- [F] —
void
— Set Boss Bar Race — ( libNtve_gf_SetBossBarRace ) - [F] —
void
— Move Boss Bar — ( libNtve_gf_MoveBossBar ) - [F] —
void
— Show/Hide Boss Bar — ( libNtve_gf_ShowHideBossBar ) - [F] —
void
— Refresh Boss Bar — ( libNtve_gf_RefreshBossBar )
# Examples
# campaigns/liberty.sc2campaign
// L1209
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true)
// L1269
libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true)
// L1818
libNtve_gf_SetBossBarMaximumValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDRILL, c_unitPropLife, c_unitPropNormal)), true)
// L7291
libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true)
// L1209
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true)
// L1269
libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true)
// L1818
libNtve_gf_SetBossBarMaximumValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDRILL, c_unitPropLife, c_unitPropNormal)), true)
// L7291
libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true)
# mods/core.sc2mod
// L4785
libNtve_gf_SetBossBarMaximumValue(lp_bossBarID, lp_max, false)
// L4030
libNtve_gf_SetBossBarMaximumValue(lp_bossBarID, lp_max, false)