Guest User

Emilarc Monster poseur.lua

a guest
Jan 29th, 2016
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. music = {"heartache_remix"}
  3. comments = {"Smells like cinnamon\rand vanilla.", "Emilarc is facing you\rnervously.", "Emilarc studies your\rmovements."}
  4. commands = {"Talk", "Threaten", "Flirt"}
  5. randomdialogue = {"Hello..", "Don't\nhurt\nme...", "Can I\nhelp\nyou...?"}
  6.  
  7. sprite = "emilarc" --Always PNG. Extension is added automatically.
  8. name = "Emilarc"
  9. hp = 150
  10. atk = 4
  11. def = 2
  12. check = "Skeleton Goat Hybrid\rwith a kind heart."
  13. dialogbubble = "right" -- See documentation for what bubbles you have available.
  14. canspare = false
  15. cancheck = true
  16.  
  17. -- Happens after the slash animation but before the shaking and hit sound.
  18. function HandleAttack(attackstatus)
  19. if attackstatus == -1 then
  20. -- player pressed fight but didn't press Z afterwards
  21. else
  22. -- player did actually attack
  23. end
  24. end
  25. function HandleAttack(attackstatus)
  26. if attackstatus == -1 then
  27. currentdialogue = {"P-Please\ndon't\nhurt me.."}
  28. else
  29. if hp > 30 then
  30. currentdialogue = {"Why..."}
  31. else
  32. currentdialogue = {"Why are\nyou doing\nthis..."}
  33. end
  34. end
  35. end
  36.  
  37. function HandleCustomCommand(command)
  38. if command == "TALK" then
  39. if talkcount == 0 then
  40. currentdialogue = {"It's\nb-been\nok.."}
  41. BattleDialog({"You ask her how her day\rhas been"})
  42. elseif talkcount == 1 then
  43. currentdialogue = {"I-I like\nbaking..."}
  44. BattleDialog({"You ask about her hobbies."})
  45. else
  46. canspare = true
  47. table.insert(comments, "Emilarc smiles confidently at\ryou.")
  48. currentdialogue = {"R-Really?\nThank you!"}
  49. BattleDialog({"You call Emilarc your friend."})
  50. end
  51. talkcount = talkcount + 1
  52. elseif command == "FLIRT" then
  53. currentdialogue = {"*blushes*\n Um..."}
  54. BattleDialog({"You wink flirtatiously."})
  55. elseif command == "THREATEN" then
  56. currentdialogue = {"No..\rPlease..\nHurt me,\nnot\nthem.."}
  57. BattleDialog({"You threaten to harm\rEmilarc's family"})
  58. end
  59. end
Advertisement
Add Comment
Please, Sign In to add comment