Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Sounds like The Pelones\rin the backround.", "Pelo smashes a table\rjust because he can.", "Poseur's limbs shouldn't be\rmoving in this way."}
  3. commands = {"Challenge", "Plead", "Scream"}
  4. randomdialogue = {"[effect:none]Random\nDialogue\n1.", "[effect:none]Random Dialouge\n2.", "[effect:none]Random\nDialogue\n3."}
  5. SetBubbleOffset(-75, -50)
  6.  
  7. sprite = "pelo" --Always PNG. Extension is added automatically.
  8. name = "Sr Pelo"
  9. hp = 100
  10. atk = 125
  11. def = 300
  12. check = "The meme animator with a\rprobably infinite vocal cord."
  13. dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
  14. canspare = false
  15. cancheck = true
  16.  
  17. function LaunchMusic()
  18. Audio.Unpause()
  19. Audio.LoadFile("pelo theme")
  20. end
  21.  
  22. -- Happens after the slash animation but before
  23. function HandleAttack(attackstatus)
  24. if attackstatus == -1 then
  25. -- player pressed fight but didn't press Z afterwards
  26. else
  27. -- player did actually attack
  28. end
  29. end
  30.  
  31. function nomore()
  32. SetGlobal('wavetimer',0)
  33. end
  34.  
  35. -- This handles the commands; all-caps versions of the commands list you have above.
  36. function HandleCustomCommand(command)
  37. if command == "CHALLENGE" then
  38. currentdialogue = {"[effect:none]Selected\nAct 1."}
  39. BattleDialog({"You told Pelo his attacks\rare weak.\nThe bullets get faster."})
  40. elseif command == "PLEAD" then
  41. currentdialogue = {"[effect:none]Selected\nAct 2."}
  42. elseif command == "SCREAM" then
  43. currentdialogue = {"[effect:none]Selected\nAct 3."}
  44. end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement