Guest User

Monster Script

a guest
Feb 27th, 2020
1,639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Sans se interpone en\rtu camino!"}
  3. commands = {"Checar", "Coqueteo", "Insultar"}
  4. randomdialogue = {""}
  5.  
  6. sprite = "blueberry" --Always PNG. Extension is added automatically.
  7. name = "Sans"
  8. hp = 600
  9. atk = 30
  10. def = 5
  11. check = "Check message goes here."
  12. dialogbubble = "right" -- See documentation for what bubbles you have available.
  13. canspare = false
  14. cancheck = false
  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. Audio.Stop("bonequarrel")
  22. State("ENEMYDIALOGUE")
  23. currentdialogue = {"Asi que iremos\rde ese modo?"}
  24. end
  25. end
  26.  
  27. -- This handles the commands; all-caps versions of the commands list you have above.
  28. function HandleCustomCommand(command)
  29. if command == "CHECAR" then
  30. BattleDialog({"SANS 30 ATK 5 DEF\nEn el fondo quiere invitarte a\rcomer unos tacos."})
  31. elseif command == "ACT 2" then
  32. currentdialogue = {"Selected\nAct 2."}
  33. elseif command == "ACT 3" then
  34. currentdialogue = {"Selected\nAct 3."}
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment