// Health ---
HealthProgress.setValue(%hP);
$health = %hP;
if($Pref::Hud::DynamicBars)
{
if(%hP <= (3/4) && (%hP >= (1/4)) && ($PlayerGotFlag)) {HealthProgressProfile.fillColor = "187 84 0 255";}
else if(%hP <= (1/2) && (%hP >= (1/4))) {HealthProgressProfile.fillColor = "187 84 0 255";}
else if(%hP <= (1/4)) {HealthProgressProfile.fillColor = "135 0 0 255";}
else {HealthProgressProfile.fillColor = "0 125 29 255";}
}
else HealthProgressProfile.fillColor = "0 125 29 255";
if(($Pref::Hud::NumericHP !$= "Off") && !$Pref::Hud::NumericHP)
{
HealthText.setText("<just:right>" @ (%hV @ "%"));
HealthText2.setText("<just:right>" @ (%hV @ "%"));
if(%hP <= (3/4) && (%hP >= (1/4)) && ($PlayerGotFlag)) {HealthTextProfile.fontColor = "255 96 0 255"; HealthTextProfile2.fontColor = "255 96 0 255";}
else if(%hP <= (1/2) && (%hP >= (1/4))) {HealthTextProfile.fontColor = "255 96 0 255"; HealthTextProfile2.fontColor = "255 96 0 255";}
else if(%hP <= (1/4)) {HealthTextProfile.fontColor = "255 0 0 255"; HealthTextProfile2.fontColor = "255 0 0 255";}
else {HealthTextProfile.fontColor = "0 255 0 255"; HealthTextProfile2.fontColor = "0 255 0 255";}
}
else {HealthText.setText(""); HealthText2.setText("");}
// Weapon & Item Ammo ---