Advertisement
Guest User

Untitled

a guest
Aug 12th, 2023
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Smells like the work\rof an enemy stand.", "Poseur is posing like his\rlife depends on it.", "Poseur's limbs shouldn't be\rmoving in this way."}
  3. commands = {"Act 1", "Act 2", "Act 3"}
  4. randomdialogue = {"Random\nDialogue\n1.", "Random\nDialogue\n2.", "Random\nDialogue\n3."}
  5. changetimer = 0
  6. voice = "voice_alphys"
  7.  
  8. function Update()
  9. HandleAttack(100)
  10. end
  11.  
  12. sprite = "nothing" --Always PNG. Extension is added automatically.
  13. name = "Alphys"
  14. hp = 30000
  15. atk = 20
  16. def = 0
  17. check = "the royaly scientist after ------ disapeared."
  18. dialogbubble = "right" -- See documentation for what bubbles you have available.
  19. canspare = false
  20. cancheck = true
  21.  
  22.  
  23. -- Happens after the slash animation but before
  24. function HandleAttack(attackstatus)
  25. if attackstatus == -1 then
  26. -- player pressed fight but didn't press Z afterwards
  27. else
  28.  
  29. end
  30. end
  31.  
  32. -- This handles the commands; all-caps versions of the commands list you have above.
  33. function HandleCustomCommand(command)
  34. if command == "ACT 1" then
  35. currentdialogue = {"Selected\nAct 1."}
  36. elseif command == "ACT 2" then
  37. currentdialogue = {"Selected\nAct 2."}
  38. elseif command == "ACT 3" then
  39. currentdialogue = {"Selected\nAct 3."}
  40. end
  41. BattleDialog({"You selected " .. command .. "."})
  42. end
  43. require "Animations/alphysanim"
  44. function OnDeath()
  45. Alphys.Remove()
  46. Alphys.Dust()
  47. Kill()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement