Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my.health = tonumber(matches[2])
- my.endurance = tonumber(matches[3])
- my.magic = tonumber(matches[4])
- my.adrenaline = tonumber(matches[6])
- my.stats = matches[5]
- if string.find(matches[7], ": Critical") then
- enemy_health = "<red> 0-10%"
- elseif string.find(matches[7], ": Beaten") then
- enemy_health = "<red> 10-25%"
- elseif string.find(matches[7], ": Battered") then
- enemy_health = "<brown> 25-50%"
- elseif string.find(matches[7], ": Wounded") then
- enemy_health = "<orange> 50-80%"
- elseif string.find(matches[7], ": Hurt") then
- enemy_health = "<yellow> 80-95%"
- elseif string.find(matches[7], ": Scratched") then
- enemy_health = "<dark_green> 95-100%"
- elseif string.find(matches[7], ": Healthy") then
- enemy_health = "<green> 100%"
- elseif string.find(matches[7], ": Dead") then
- enemy_health = "<brown> UNDEAD"
- elseif string.find(matches[7], ": Cracking") then
- enemy_health = "<red> 0-10%"
- elseif string.find(matches[7], ": Fading") then
- enemy_health = "<red> 10-25%"
- elseif string.find(matches[7], ": Tiring") then
- enemy_health = "<brown> 25-50%"
- elseif string.find(matches[7], ": Strong") then
- enemy_health = "<orange> 50-80%"
- elseif string.find(matches[7], ": Glowing") then
- enemy_health = "<yellow> 80-95%"
- elseif string.find(matches[7], ": Shimmering") then
- enemy_health = "<dark_green> 95-100%"
- elseif string.find(matches[7], ": Scintillating") then
- enemy_health = "<green> 100%"
- else
- enemy_health = ""
- end
- prompt_function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement