Just some suggestions

Do u want to see these in your game?


  • Total voters
    6

Fixious

Test Lead
Tried that, and several other variants. Still no luck. The %player.inventory["Flag"] == 1 doesn't seem to do anything in this case for some reason. I might tinker around with it later.
 

Fixious

Test Lead
Finally figured it out if you're still interested.


Code:
// 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 ---
 

Jello

Contributor
Finally figured it out if you're still interested.

Video

Code:
// Health ---

Would your teammates be able to help you regenerate while holding the flag then or would it still be disabled? and since I'm already am here who's in charge of the forums? it wont allow me to post the 6th video.....just the link to it
 

Fixious

Test Lead
This only changes the health bar at the top so it's orange at 75% while holding the flag and 50% when not. Merely a visual change, nothing else.
 

k e v i n

Private Tester
This only changes the health bar at the top so it's orange at 75% while holding the flag and 50% when not. Merely a visual change, nothing else.
Ohhh well that explains it. At first, i'm like "what am I watching?" But watching it the second time after reading your post, I understood it. Good job!
 
Top