Untitled
unknown
plain_text
3 years ago
2.3 kB
10
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" elseif health < (gmcp.Char.Vitals.maxhp) then hpColor = "x" elseif health < (gmcp.Char.Vitals.maxhp * 0.9) then hpColor = "x" elseif health < (gmcp.Char.Vitals.maxhp * 0.7) then hpColor = "x" elseif health < (gmcp.Char.Vitals.maxhp * 0.5) then hpColor = "x" elseif health < (gmcp.Char.Vitals.maxhp * 0.3) then hpColor = "x" elseif health < (gmcp.Char.Vitals.maxhp * 0.1) then hpColor = "x" else hpColor = "x" end if mana == gmcp.Char.Vitals.maxmp then mpColor = "SlateBlue" elseif mana < (gmcp.Char.Vitals.maxmp) then mpColor = "x" elseif mana < (gmcp.Char.Vitals.maxmp * 0.9) then mpColor = "x" elseif mana < (gmcp.Char.Vitals.maxmp * 0.7) then mpColor = "x" elseif mana < (gmcp.Char.Vitals.maxmp * 0.5) then mpColor = "x" elseif mana < (gmcp.Char.Vitals.maxmp * 0.3) then mpColor = "x" elseif mana < (gmcp.Char.Vitals.maxmp * 0.1) then mpColor = "x" end if healthPercent == 100 then healthPercentColor = "pink" elseif health < 100 then healthPercentColor = "x" elseif health < 90 then healthPercentColor = "x" elseif health < 70 then healthPercentColor = "x" elseif health < 50 then healthPercentColor = "x" elseif health < 30 then healthPercentColor = "x" elseif health < 10 then healthPercentColor = "x" else healthPercentColor = "x" end if manaPercent == 100 then manaPercentColor = "sky_blue" elseif mana < 100 then manaPercentColor = "x" elseif mana < 90 then manaPercentColor = "x" elseif mana < 70 then manaPercentColor = "x" elseif mana < 50 then manaPercentColor = "x" elseif mana < 30 then manaPercentColor = "x" elseif mana < 10 then manaPercentColor = "x" else manaPercentColor = "x" end creplaceLine("<white>H:<"..hpColor..gmcp.Char.Vitals.hp.."<white>|"..hpColor..gmcp.Char.Vitals.maxhp.."> ("..healthPercentColor..healthpercent.."<white>) M:<"..mpColor..gmcp.Char.Vitals.mp.."<white>|"..mpColor..gmcp.Char.Vitals.maxmp.."> ("..manaPercentColor..manaPercent.."<white>)")
Editor is loading...