Guest User

Help with changing sprite

a guest
Aug 3rd, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Smells like vanilla...", "Sage is thinking about Noelle\rDeltarune.", "I don't think they know what\ris going on here."}
  3. commands = {"Strum guitar", "Proceed", "Beg for mercy"}
  4. randomdialogue = {"Sorry I'm all outta brain.", "Do we really have to do this.", "Have you heard of Alex G?"}
  5.  
  6. sprite = "empty" --Always PNG. Extension is added automatically.
  7. name = "Sage"
  8. hp = 250
  9. atk = 10
  10. def = 1
  11. gold = 32
  12. xp = 154
  13. check = "They seem to have been forced\rinto this fight."
  14. dialogbubble = "right" -- See documentation for what bubbles you have available.
  15. canspare = false
  16. cancheck = true
  17.  
  18.  
  19. weirdcounter = 0
  20.  
  21. -- Happens after the slash animation but before
  22. function HandleAttack(attackstatus)
  23. if attackstatus == -1 then
  24. -- player pressed fight but didn't press Z afterwards
  25.  
  26. else
  27. -- player did actually attack
  28. SetSprite("sagehurt")
  29. monstersprite.yscale = 1
  30. if hp < 100 then
  31. currentdialogue = {"Not...", "Not doing so hot..."}
  32. end
  33. end
  34. end
  35. -- This handles the commands; all-caps versions of the commands list you have above.
  36. function HandleCustomCommand(command)
  37. if command == "STRUM GUITAR" then
  38. currentdialogue = {"Don't even try it."}
  39. BattleDialog({"You reached for their guitar."})
  40. elseif command == "PROCEED" then
  41. if weirdcounter == 0 then
  42. currentdialogue = {"Girl what."}
  43. BattleDialog({"You said 'proceed' with a horrific vocal fry."})
  44. elseif weirdcounter == 1 then
  45. currentdialogue = {"???"}
  46. BattleDialog({"You said 'proceed' this time with more affliction."})
  47. elseif weirdcounter == 2 then
  48. currentdialogue = {"Okay.", "you're weird."}
  49. BattleDialog({"You said 'proceed' with unbreaking eyecontact."})
  50. elseif weirdcounter == 3 then
  51. currentdialogue = {"No\nseriously.", "That's creepy. Knock it off."}
  52. BattleDialog({"You stare directly into their eyes almost as if you could see into their soul.", "You say 'proceed'"})
  53. else
  54. Audio.Stop()
  55. currentdialogue = {"Okay this isn't funny anymore", "you're being INSANELY creepy", "I'm not going to keep doing this if...", "if you keep...", "UGHH.", "STOP MAKING THAT CREEPY FACE."}
  56. BattleDialog({"You say 'proceed'."})
  57. end
  58.  
  59. weirdcounter = weirdcounter + 1
  60.  
  61.  
  62. elseif command == "BEG FOR MERCY" then
  63. canspare = true
  64. currentdialogue = {"DAMN.", "you didn't have to make it weird."}
  65. BattleDialog({"You got on your hands and knees and screamed how sorry you were."})
  66. end
  67. end
Advertisement
Add Comment
Please, Sign In to add comment