# Help # Permissions: # healthbar.notify = Be notified on issues with the script options: # Global Settings Health Bar: classic # Change to a desired healthbar, see below for details # default = if nothing below is provided the healthbar defaults to this. A new take on classic # classic = just like the good old days! Simply shows hearts but with more configuration! # informational = much more text based includes far more accurate numbers instead of symbols # Damage Indicators: false # REQUIRES SKRAYFALL, HOLOGRAPHIC DISPLAYS & HEALTHBARINDICATORS # Default Health Bar # Default Icon: &4❤ # Default Icon Damaged: &c❤ # The icon for half hearts # Default Icon Depleted: &0❤ # The icon for missing health # Default Bar Size: 5 # The size of the default health bar # Default Timer: 3 seconds # The amount of time it takes for a health bar to dissapear # Classic Health Bar Classic Icon: &4❤ Classic Icon Depleted: &0❤ # The icon for missing health Classic Timer: 3 seconds # The amount of time it takes for a health bar to dissapear #-----------------------------------------------------------------------# # Code below: edit if you would like but be cautious it can cause issues #-----------------------------------------------------------------------# damage: victim is a player: attacker is not a player name of attacker is set set {_name} to "%coloured name of attacker%" delete name of attacker wait 1 tick set name of attacker to "%{_name}%" stop attacker is a player wait 2 ticks name of victim does not contain "{@Classic Icon}": set {_previousname} to "%coloured name of victim%" "{@Health Bar}" is "classic": set {_bar} to "" loop max health of victim times: set {_value} to loop-value if health of victim is less than {_value} -0.5: if loop-value is 1: health of victim is 0: set {_bar} to "%{_bar}%{@Classic Icon Depleted}" else: set {_bar} to "%{_bar}%{@Classic Icon}" else: set {_bar} to "%{_bar}%{@Classic Icon Depleted}" else: set {_bar} to "%{_bar}%{@Classic Icon}" set {_name} to "%{_bar}%" set name of victim to "%{_name}%" wait {@Classic Timer} name of victim is "%{_name}%": delete name of victim else: {_previousname} is set while victim is alive: name of victim is not set: set name of victim to {_previousname} stop wait 1 tick # else: # set {_bar} to "" # loop {@Default Bar Size} times: # loop-value is greater than (max health of victim - health of victim) + ({@Default Bar Size} - max health of victim): # set {_bar} to "%{_bar}%{@Default Icon Depleted}" # else: # set {_bar} to "%{_bar}%{@Default Icon}" # send "Health = &a%health of victim%/%max health of victim%" to attacker # set {_p} to "%health of victim / max health of victim%" # replace all "0." in {_p} with "" # length of {_p} is less than 2: # set {_p} to "%{_p}%0" # send "Percent = &a%{_p}%%%" to attacker # send "Quality = &a%(max health of victim - health of victim) + ({@Default Bar Size} - max health of victim)%" to attacker # send "Adder &a%{@Default Bar Size} - max health of victim%" to attacker # set name of victim to "%{_bar}%"