Advertisement
Guest User

Untitled

a guest
Jul 31st, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Todd is terrified.", "Todd is scared for his life.", "Todd is shivering with fear."}
  3. commands = {"Check"}
  4. randomdialogue = {"P-please don't hurt me."}
  5.  
  6. sprite = "ToddNormal" --Always PNG. Extension is added automatically.
  7. name = "Todd"
  8. hp = 100
  9. atk = 0
  10. def = -999
  11. fakeatk = 0
  12. fakedef = -250
  13. check = ""
  14. dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
  15. canspare = false
  16. cancheck = false
  17. autolinebreak = true
  18.  
  19. -- Happens after the slash animation but before
  20. function HandleAttack(attackstatus)
  21. if attackstatus == -1 then
  22. -- player pressed fight but didn't press Z afterwards
  23. else
  24. -- player did actually attack
  25. currentdialogue = {"A-aaahhhhh!!! That h-hurts!!!"}
  26. end
  27. end
  28.  
  29. -- This handles the commands; all-caps versions of the commands list you have above.
  30. function HandleCustomCommand(command)
  31. if command == "CHECK" then
  32. BattleDialog({"TODD "..fakeatk.." ATK "..fakedef.." DEF\nThe so-called dragon king.\nWhat a joke."})
  33. end
  34.  
  35. function OnDeath()
  36. dialogbubble = "rightwide"
  37. hp = 100
  38. def = 1
  39. Audio.Pause()
  40. currentdialogue = {"Ah...so they were right.", "You really ARE a threat of all of dragonkind.", "But I'm not going to let you kill all of us.", "Past me is the entrance to the shelter, where all the survivors are."}
  41. end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement