Hey guys, me again working on the same thing after stopping for a while and I was wanting to taking it a step further and making it work without changing the actual base files. How would i change the health status eg. "Healthy" "Wounded" "Hurt" etc. without screwing with the util.lua file?
Here is how it looks in the util.lua file at the moment. Please try to help me, thank you.
local function HealthToString(health)
if makeup = 0 or makeup = nil then
if health > 90 then
return "Healthy", healthcolors.healthy
elseif health > 70 then
return "Hurt", healthcolors.hurt
elseif health > 45 then
return "Wounded", healthcolors.wounded
elseif health > 20 then
return "Badly Wounded", healthcolors.badwound
else
return "Near Death", healthcolors.death
end
elseif makeup = 100 then
return "Healthy", healthcolors.healthy
elseif makeup = 80 then
return "Hurt", healthcolors.hurt
elseif makeup = 69 then
return "Wounded", healthcolors.wounded
elseif makeup = 44 then
return "Badly Wounded", healthcolors.badwound
elseif makeup = 19 then
return "Near Death", healthcolors.death
end
end