Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Trigger - Perl Regex: ^You glance over (\w+) and see that (his|her) health is at (\d+)\/(\d+)\.$
  2.  
  3. local targethp = tonumber(matches[5])
  4. local limbhp = (250+targethp) * 0.24
  5. local wepbase = (10+targethp) * 0.005
  6. local wep1dam = 0 <-| Change these two
  7. local wep2dam = 0 <-| To your own weapon damages
  8. local weptotal = ((wep1+wep2)/2)+wepbase
  9. hitstobreak = math.floor(limbhp/weptotal)+1
  10. report("I estimate "..hitstobreak.." hits to break.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement