Hanryu

herbheal.cmd

Feb 19th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. #herbheal
  2. #(2020-05-25)
  3. # Added 5 minute timer between script use
  4. #(2021-01-25)
  5. # check for scars more often
  6. #debug 5
  7.  
  8. if ($HerbTime > $gametime) then {
  9. echo *********************************************
  10. echo ** You need to wait longer to use herbs. **
  11. echo *********************************************
  12. put #echo >talk ** You need to wait longer to use herbs! **
  13. goto done
  14. }
  15.  
  16. #### LOAD VARIABLES ####
  17. var doScar 0
  18. var location
  19.  
  20. # Initialize actions
  21. action var location nerves,%location when "(minor|severe) twitching|difficulty controlling actions|paralysis of the entire body"
  22. action var location skin,%location when "(abrasions|scuffing|scratches) (about|across|along|around|from|in|of|on|to) the skin|rash|boils|sores"
  23. action var location ext_head,%location when "(abrasions|scuffing|scratches|cuts and bruises|cuts|slashes|holes) (about|across|along|around|from|in|of|on|to) the head|(cracked|crushed) skull|pulpy stump for a head"
  24. action var location int_head,%location when "(bruised|swollen|bloated) head|bruising (about|across|along|around|from|in|of|on|to) the head|inside head"
  25. action var location ext_neck,%location when "(abrasions|scuffing|scratches|cuts and bruises|cuts|slashes|holes) (about|across|along|around|from|in|of|on|to) the neck|(shattered|useless) neck"
  26. action var location int_neck,%location when "bruising (about|across|along|around|from|in|of|on|to) the neck|(bruised|swollen|swollen and shattered) neck|inside neck"
  27. action var location ext_chest,%location when "(abrasions|scuffing|scratches|cuts and bruises|cuts|slashes|holes) (about|across|along|around|from|in|of|on|to) the chest|(shattered|destroyed) chest"
  28. action var location int_chest,%location when "bruising (about|across|along|around|from|in|of|on|to) the chest|(bruised|swollen) chest|inside chest"
  29. action var location ext_abdomen,%location when "(abrasions|scuffing|scratches|cuts and bruises|cuts|slashes|holes) (about|across|along|around|from|in|of|on|to) the abdomen|abdomen deeply gouged|destroyed abdomen"
  30. action var location int_abdomen,%location when "bruising (about|across|along|around|from|in|of|on|to) the abdomen|(bruised|swollen) abdomen|discolored abdomen|inside abdomen"
  31. action var location ext_back,%location when "(abrasions|scuffing|scratches|cuts and bruises|cuts|slashes|holes) (about|across|along|around|from|in|of|on|to) the back|(shattered|destroyed) back"
  32. action var location int_back,%location when "(about|across|along|around|from|in|of|on|to) the back|(bruised|swollen) back|inside back"
  33. action var location ext_limb,%location when "(abrasions|scuffing|scratches|cuts and bruises|cuts|slashes|holes) (about|across|along|around|from|in|of|on|to) the ((right|left) (arm|leg)|tail)|(broken|shattered) ((right|left) (arm|leg)|tail)|stump for a ((right|left) (arm|leg)|tail)"
  34. action var location int_limb,%location when "bruising (about|across|along|around|from|in|of|on|to) the ((right|left) (hand|arm|leg)|tail)|(bruised|swollen) ((right|left) (hand|arm|leg)|tail)|inside ((right|left|r\.|l\.) (hand|arm|leg)|tail)"
  35. action var location ext_eye,%location when "(black and blue|swollen|bleeding|slashed|shattered) (right|left) eye|cavity for a (right|left) eye"
  36. action var location int_eye,%location when "bruising (about|across|along|around|from|in|of|on|to) the (right|left) eye|bruised (right|left) eye|bruised and (crossed|cloudy|blind) (right|left) eye|inside ((right|left)|r\.|l\.) eye"
  37. action var location ext_scar,%location when "a stump for|flesh stump for|gashes|malformed|missing|non-existent|scarred|scarring|scars|shriveled|skin discoloration|skin loss|skin tone|socket|stump"
  38. action var location int_scar,%location when "a blind|blank stare|breath|clouded|emaciated|move|moving|numbness|pallor|paralyzed|twitch|twitching"
  39. action goto done when "You feel a bit nauseous, as if you'd eaten too much of something\."
  40.  
  41. pause 0.1
  42. put health
  43. put yes
  44. waitfor positive
  45.  
  46. if contains("%location", "head") then {
  47. put .herb head
  48. waitfor ** HERB DONE **
  49. var doScar 1
  50. }
  51. if contains("%location", "neck") then {
  52. put .herb neck
  53. waitfor ** HERB DONE **
  54. var doScar 1
  55. }
  56. if contains("%location", "chest") then {
  57. put .herb chest
  58. waitfor ** HERB DONE **
  59. var doScar 1
  60. }
  61. if contains("%location", "eye") then {
  62. put .herb eye
  63. waitfor ** HERB DONE **
  64. var doScar 1
  65. }
  66. if contains("%location", "abdomen") then {
  67. put .herb abdomen
  68. waitfor ** HERB DONE **
  69. var doScar 1
  70. }
  71. if contains("%location", "back") then {
  72. put .herb back
  73. waitfor ** HERB DONE **
  74. var doScar 1
  75. }
  76. if contains("%location", "int_limb") then {
  77. put #echo >talk #00FF00 Internal limb
  78. put .herb limb
  79. waitfor ** HERB DONE **
  80. var doScar 1
  81. }
  82. if (%doScar = 1) then {
  83. put .herb scar
  84. waitfor ** HERB DONE **
  85. goto done
  86. }
  87. if contains("%location", "scar") then {
  88. put .herb scar
  89. waitfor ** HERB DONE **
  90. goto done
  91. }
  92.  
  93. end:
  94. done:
  95. var temp $gametime
  96. math temp add 240
  97. put #var HerbTime %temp
  98. put #parse ** HERBHEAL DONE **
  99. exit
  100.  
Advertisement
Add Comment
Please, Sign In to add comment