Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. my.health = tonumber(matches[2])
  2. my.endurance = tonumber(matches[3])
  3. my.magic = tonumber(matches[4])
  4. my.adrenaline = tonumber(matches[6])
  5. my.stats = matches[5]
  6. if string.find(matches[7], ": Critical") then
  7. enemy_health = "<red> 0-10%"
  8. elseif string.find(matches[7], ": Beaten") then
  9. enemy_health = "<red> 10-25%"
  10. elseif string.find(matches[7], ": Battered") then
  11. enemy_health = "<brown> 25-50%"
  12. elseif string.find(matches[7], ": Wounded") then
  13. enemy_health = "<orange> 50-80%"
  14. elseif string.find(matches[7], ": Hurt") then
  15. enemy_health = "<yellow> 80-95%"
  16. elseif string.find(matches[7], ": Scratched") then
  17. enemy_health = "<dark_green> 95-100%"
  18. elseif string.find(matches[7], ": Healthy") then
  19. enemy_health = "<green> 100%"
  20. elseif string.find(matches[7], ": Dead") then
  21. enemy_health = "<brown> UNDEAD"
  22. elseif string.find(matches[7], ": Cracking") then
  23. enemy_health = "<red> 0-10%"
  24. elseif string.find(matches[7], ": Fading") then
  25. enemy_health = "<red> 10-25%"
  26. elseif string.find(matches[7], ": Tiring") then
  27. enemy_health = "<brown> 25-50%"
  28. elseif string.find(matches[7], ": Strong") then
  29. enemy_health = "<orange> 50-80%"
  30. elseif string.find(matches[7], ": Glowing") then
  31. enemy_health = "<yellow> 80-95%"
  32. elseif string.find(matches[7], ": Shimmering") then
  33. enemy_health = "<dark_green> 95-100%"
  34. elseif string.find(matches[7], ": Scintillating") then
  35. enemy_health = "<green> 100%"
  36. else
  37. enemy_health = ""
  38. end
  39. prompt_function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement