Guest User

Monster

a guest
Dec 14th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. number_of_hits = 0
  2. comments = {"He seems to hear you over\rhis headphones.", "You can hear stereos from\rsomewhere in the distance.", "You can't read his facial\rexpressions.", "He looks. . .tired."}
  3. commands = {"Talk", "Taunt"}
  4.  
  5. sprite = "empty" --Always PNG. Extension is added automatically.
  6.  
  7. name = "Him"
  8. hp = 1
  9. atk = 1
  10. def = 1
  11. def = 999
  12. check = "He's got nothing left."
  13. dialogbubble = "rightwideminus" -- See documentation for what bubbles you have available.
  14. canspare = false
  15. cancheck = true
  16. xp = 0
  17. gold = 0
  18.  
  19. -- Happens after the slash animation but before
  20. function HandleAttack(attackstatus)
  21. if attackstatus == -1 then
  22. currentdialogue = "[font:sans]Nice try."
  23. -- player pressed fight but didn't press Z afterwards
  24. else
  25. -- player did actually attack
  26. number_of_hits = number_of_hits + 1
  27. if number_of_hits == 1 then
  28. currentdialogue = {"[font:sans]Attacking\nalready?"}
  29. end
  30. if number_of_hits == 2 then
  31. currentdialogue = {"[font:sans]So yeah.\nThis is\nit."}
  32. end
  33. if number_of_hits == 2 then
  34. currentdialogue = {"[font:sans]First\nyou\nkilled\nmy\nfriends."}
  35. end
  36. if number_of_hits == 3 then
  37. currentdialogue = {"[font:sans]Then you\ncome\nafter me."}
  38. end
  39. if number_of_hits == 4 then
  40. def = -999
  41. currentdialogue = {"[font:sans]H u h."}
  42. end
  43. end
  44.  
  45.  
  46. -- This handles the commands; all-caps versions of the commands list you have above.
  47. function HandleCustomCommand(command)
  48. if command == "TALK" then
  49. BattleDialog ({"He doesn't acknowledge\ryour conversing."})
  50. elseif command == "TAUNT" then
  51. BattleDialog ({"Your remarks don't\rfaze him."})
  52. end
  53. end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment