Guest User

Untitled

a guest
Feb 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. Replace this function in affs.lua. Look for it, replace it.
  2.  
  3. function unimpaled(msg)
  4. if msg == "cross" then
  5. del_queue("crucified")
  6. elseif msg == "antlers" then
  7. del_queue("impale_antlers")
  8. elseif string.find(msg, "gut") then
  9. del_queue("impale_gut")
  10. elseif string.find(msg, "left") then
  11. del_queue("pinned_left")
  12. if string.find(msg, "second") then
  13. add_queue("pinned_left")
  14. end
  15. elseif string.find(msg, "second") then
  16. add_queue("pinned_right")
  17. else
  18. del_queue{"pinned_right", "pinned_left"}
  19. end
  20.  
  21. flags.clear{"writhing", "writhing_try"}
  22. local wi = flags.get("writhing_impale") or 0
  23. if wi > 1 then
  24. flags.set("writhing_impale", wi - 1, 6)
  25. else
  26. flags.clear("writhing_impale")
  27. end
  28. end
  29.  
  30. Look for current pinleg trigger. Can't remember which xml it's in now, but once you do, replace with this.
  31.  
  32. <trigger
  33. enabled="y"
  34. group="Track"
  35. match="^With an heroic effort you manage to writhe yourself free from the (cross|antlers|(?:second|only )?blade through your left foot|(?:second|only )?blade through your right foot|blade through your gut)\.$"
  36. name="cureimpaleheroic__"
  37. regexp="y"
  38. send_to="12"
  39. sequence="10000"
  40. >
  41. <send>flags.clear{"writhing", "writhing_try"}
  42. affs.unimpaled("%1")</send>
  43. </trigger>
Add Comment
Please, Sign In to add comment