Guest User

Untitled

a guest
Jun 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1.  
  2.  
  3. pre = {}
  4. pre.head = 0
  5. pre.torso = 0
  6. pre.leftarm = 0
  7. pre.rightarm = 0
  8. pre.leftleg = 0
  9. pre.rightleg = 0
  10.  
  11. preparry = {}
  12. preparry.head = false
  13. preparry.torso = false
  14. preparry.leftarm = false
  15. preparry.rightarm = false
  16. preparry.leftleg = false
  17. preparry.rightleg = false
  18.  
  19. prerebounding = false
  20.  
  21.  
  22.  
  23. function salveCure()
  24. if bals.salve == true and doing.salve == false and affCheck(checkSalve) == true then
  25. if affs.indifference == true then
  26. expandAlias("epidermal head")
  27. elseif affs.anorexia == true then
  28. expandAlias("epidermal torso")
  29. elseif affs.gorged == true then
  30. expandAlias("epidermal torso")
  31. elseif affs.crippled_throat == true then
  32. expandAlias("mending head")
  33. elseif affs.destroyed_throat == true then
  34. expandAlias("mending head")
  35. elseif affs.shivering == true then
  36. expandAlias("caloric")
  37. elseif affs.frozen == true then
  38. expandAlias("caloric")
  39. elseif affs.ablaze == true then
  40. expandAlias("mending torso")
  41. elseif defs.caloric == false then
  42. expandAlias("caloric")
  43. elseif affs.cracked_ribs == true then
  44. expandAlias("mending torso")
  45. elseif affs.head_damaged == true and affs.head_mangled == false then
  46. expandAlias("restoration head")
  47. elseif affs.left_leg_broken == true and affs.left_leg_damaged == false then
  48. expandAlias("mending legs")
  49. elseif affs.right_leg_broken == true and affs.right_leg_damaged == false then
  50. expandAlias("mending legs")
  51. elseif affs.left_arm_broken == true and affs.left_arm_damaged == false then
  52. expandAlias("mending arms")
  53. elseif affs.right_arm_broken == true and affs.right_arm_damaged == false then
  54. expandAlias("mending arms")
  55. elseif affs.throatclaw == true then
  56. expandAlias("mending head")
  57. elseif affs.left_leg_damaged == true and affs.left_leg_mangled == false then
  58. expandAlias("restoration left leg")
  59. elseif affs.right_leg_damaged == true and affs.right_leg_mangled == false then
  60. expandAlias("restoration right leg")
  61. elseif affs.left_arm_damaged == true and affs.left_arm_mangled == false then
  62. expandAlias("restoration left arm")
  63. elseif affs.right_arm_damaged == true and affs.right_arm_mangled == false then
  64. expandAlias("restoration right arm")
  65. elseif affs.torso_damaged == true and affs.torso_mangled == false then
  66. expandAlias("restoration torso")
  67. elseif affs.spinal_rip == true then
  68. expandAlias("restoration torso")
  69. elseif affs.left_leg_mangled == true then
  70. expandAlias("restoration left leg")
  71. elseif affs.right_leg_mangled == true then
  72. expandAlias("restoration right leg")
  73. elseif affs.left_arm_mangled == true then
  74. expandAlias("restoration left arm")
  75. elseif affs.right_arm_mangled == true then
  76. expandAlias("restoration right arm")
  77. elseif affs.torso_mangled == true then
  78. expandAlias("restoration torso")
  79. elseif affs.crushed_ribs == true then
  80. expandAlias("restoration torso")
  81. elseif affs.crushed_kneecaps == true then
  82. expandAlias("mending legs")
  83. elseif affs.crushed_elbows == true then
  84. expandAlias("mending arms")
  85. elseif tonumber(post.head) > 15 then
  86. expandAlias("restoration head")
  87. elseif tonumber(post.leftleg) > 15 then
  88. expandAlias("restoration left leg")
  89. elseif tonumber(post.rightleg) > 15 then
  90. expandAlias("restoration right leg")
  91. elseif tonumber(post.leftarm) > 15 then
  92. expandAlias("restoration left arm")
  93. elseif tonumber(post.rightarm) > 15 then
  94. expandAlias("restoration right arm")
  95. elseif tonumber(post.torso) > 15 then
  96. expandAlias("restoration torso")
  97. elseif affs.head_bruised == true then
  98. expandAlias("mending head")
  99. elseif affs.torso_bruised == true then
  100. expandAlias("mending torso")
  101. elseif affs.right_leg_bruised == true then
  102. expandAlias("mending legs")
  103. elseif affs.left_leg_bruised == true then
  104. expandAlias("mending left leg")
  105. elseif affs.left_arm_bruised == true then
  106. expandAlias("mending arms")
  107. elseif affs.right_arm_bruised == true then
  108. expandAlias("mending right arm")
  109. elseif defHunt == true and defs.blind == true then
  110. expandAlias("epidermal head")
  111. elseif defHunt == true and defs.deaf == true then
  112. expandAlias("epidermal head")
  113. elseif defs.mass == false and defCombat == true then
  114. expandAlias("mass")
  115. end -- if
  116. end -- if
  117. end -- function salveCure
  118.  
  119.  
  120.  
  121. function limbDamage(limb, damage)
  122. limb = limb:gsub(" ", ""):lower()
  123. pre[limb] = tonumber(damage) + tonumber(pre[limb])
  124. display(pre)
  125.  
  126. last_limb = limb
  127. last_damage = damage
  128.  
  129.  
  130. end
  131.  
  132. function limbHeal(limb, heal)
  133. limb = limb:gsub(" ", ""):lower()
  134. pre[limb] = tonumber(heal) - tonumber(pre[limb])
  135.  
  136. end
  137.  
  138. function setLimb(limb, damage)
  139. limb = limb:gsub(" ", ""):lower()
  140. pre[limb] = tonumber(damage)
  141. end
  142.  
  143.  
  144.  
  145.  
  146. function parried()
  147.  
  148. if not last_limb or not last_damage then return false end
  149. pre[last_limb] = pre[last_limb] - last_damage
  150. display(pre)
  151.  
  152. end
Add Comment
Please, Sign In to add comment