Advertisement
Guest User

Untitled

a guest
Nov 4th, 2021
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Altair flips a coin\rin anticipation.", "Altair sings along\rwith his birds.", "Altair check's his phone\rwhile waiting for his turn."}
  3. commands = {"Joke", "Challenge", "Pose"}
  4. randomdialogue = {"*whistles a \nspidery tune \nwith his\nbirds.*", "Nothing personal,\nhumie.\nJust doing \nmy job.", "Not bad, wanna \nhangout at \nGrillby's\nif you survive?."}
  5.  
  6. sprite = "poseur" --Always PNG. Extension is added automatically.
  7. name = "Altair"
  8. hp = 1800
  9. atk = 50
  10. def = 35
  11. gold = 500
  12. check = "Leader of mercenaries. Watch out."
  13. dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
  14. canspare = false
  15. cancheck = true
  16.  
  17. -- Happens after the slash animation but before
  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.  
  26. -- This handles the commands; all-caps versions of the commands list you have above.
  27. function HandleCustomCommand(command)
  28. if command == "JOKE" then
  29. currentdialogue = {"Ok,\nthat's\nactually \nkind\nof funny."}
  30. BattleDialog({"You told Altair a terrible\nbird pun.", "Altair laughs, remembering a \ncertain skeleton."})
  31. elseif command == "CHALLENGE" then
  32. currentdialogue = {"Getting cocky,\nhuh?\nYeah me too."}
  33. BattleDialog({"You told Altair if he's even \ntrying.", "He groans, remembering a \ncertain fish."})
  34. elseif command == "POSE" then
  35. if posecounter == 0 then
  36. currentdialogue = {"......\nCan you...stop?."}
  37. BattleDialog({"You posed dramatically.\nAltair cringes at you."})
  38. elseif posecounter == 1 then
  39. currentdialogue = {"Dude, seriously. \nStop.\nIf you stop,\nI'll give you 50g."}
  40. BattleDialog({"You posed even more.\nAltair is dying inside"})
  41. elseif posecounter == 2 then
  42. currentdialogue = {"Can you please stop now?"}
  43. BattleDialog({"You posed once more.\nAltair has given you 50g"})
  44. elseif posecounter == 3 then
  45. currentdialogue = {"How do you\nlike that?\nMaybe that'll \nget you to \nstop."}
  46. BattleDialog({"You pose in victory.\nAltair became annoyed and took 100g from you."})
  47. else
  48. currentdialogue = {"....\nAre you done now?."}
  49. BattleDialog({"You posed angrily at him."})
  50. end
  51. posecounter = posecounter + 3
  52. end
  53.  
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement