SInanazorar

Untitled

Aug 23rd, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"You feel an immesurable amount of dread.", "His empty eyes stare into your soul", "The way he moves his mangled limbs disgust you.", "Maybe this one isnt winnable", "You are filled with... Hopelessness?"}
  3. commands = {"SCREAM", "STRUGGLE", "DEATH"}
  4. randomdialogue = {"...", "....", "......"}
  5.  
  6. sprite = "poseur" --Always PNG. Extension is added automatically.
  7. name = "Type://Gaster"
  8. hp = 9312
  9. atk = 1
  10. def = 1
  11. check = "He keeps making unintelgible signs with his hands."
  12. dialogbubble = "right" -- See documentation for what bubbles you have available.
  13. canspare = false
  14. cancheck = true
  15.  
  16. -- Happens after the slash animation but before
  17. function HandleAttack(attackstatus)
  18. if attackstatus == -1 then
  19. -- player pressed fight but didn't press Z afterwards
  20. else
  21. -- player did actually attack
  22. end
  23. end
  24.  
  25. -- This handles the commands; all-caps versions of the commands list you have above.
  26. function HandleCustomCommand(command)
  27. if command == "SCREAM" then
  28. BattleDialog({"You scream as loud as you possibly can"})
  29. currentdialogue = {"..."}
  30. elseif command == "STRUGGLE" then
  31. BattleDialog({"You try to free yourself from this creatures grasp"})
  32. currentdialogue = {"...︎"}
  33. elseif command == "DEATH"
  34. BattleDialog({"You fall down to your knees and gawk at the aproaching attack"})
  35. currentdialogue = {"hAhA"}
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment