Untitled

 avatar
unknown
plain_text
2 years ago
2.1 kB
4
Indexable
health = gmcp.Char.Vitals.hp
healthPercent = (gmcp.Char.Vitals.hp / gmcp.Char.Vitals.maxhp) * 100
mana = gmcp.Char.Vitals.mp
manapercent = (gmcp.Char.Vitals.mp / gmcp.Char.Vitals.maxmp) * 100
bleed = gmcp.Char.Vitals.bleeding
bloodlevel = gmcp.Char.Vital.blood
endurance = gmcp.Char.Vitals. ep
willpower = gmcp.Char.Vitals.wp
xp = gmcp.Char.Vitals.nl



if health == gmcp.Char.Vitals.maxhp then
 hpColor = "maroon"
else if health < (gmcp.Char.Vitals.maxhp) then
 hpColor = "x"
else if health < (gmcp.Char.Vitals.maxhp * 0.9) then
 hpColor = "x"
else if health < (gmcp.Char.Vitals.maxhp * 0.7) then
 hpColor = "x"
else if health < (gmcp.Char.Vitals.maxhp * 0.5) then
 hpColor = "x"
else if health < (gmcp.Char.Vitals.maxhp * 0.3) then
 hpColor = "x"
else if health < (gmcp.Char.Vitals.maxhp * 0.1) then
 hpColor = "x"
else hpColor = "x"
end

if mana == gmcp.Char.Vitals.maxmp then
 mpColor = "SlateBlue"
else if health < (gmcp.Char.Vitals.maxmp) then
 mpColor = "x"
else if health < (gmcp.Char.Vitals.maxmp * 0.9) then
 mpColor = "x"
else if health < (gmcp.Char.Vitals.maxmp * 0.7) then
 mpColor = "x"
else if health < (gmcp.Char.Vitals.maxmp * 0.5) then
 mpColor = "x"
else if health < (gmcp.Char.Vitals.maxmp * 0.3) then
 mpColor = "x"
else if health < (gmcp.Char.Vitals.maxmp * 0.1) then
 mpColor = "x"
end

if healthPercent == 100 then
 healthPercentColor = "pink"
else if health < 100 then
 healthPercentColor = "x"
else if health < 90 then
 healthPercentColor = "x"
else if health < 70 then
 healthPercentColor = "x"
else if health < 50 then
 healthPercentColor = "x"
else if health < 30 then
 healthPercentColor = "x"
else if health < 10 then
 healthPercentColor = "x"
else healthPercentColor = "x"
end

if manaPercent == 100 then
 manaPercentColor = "sky_blue"
else if mana < 100 then
 manaPercentColor = "x"
else if mana < 90 then
 manaPercentColor = "x"
else if mana < 70 then
 manaPercentColor = "x"
else if mana < 50 then
 manaPercentColor = "x"
else if mana < 30 then
 manaPercentColor = "x"
else if mana < 10 then
 manaPercentColor = "x"
else manaPercentColor = "x"
end
Editor is loading...