Guest User

Untitled

a guest
Aug 6th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 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 = {"Check"}
  4. randomdialogue = {"Random\nDialogue\n1.", "Random\nDialogue\n2.", "Random\nDialogue\n3."}
  5.  
  6. sprite = "" --Always PNG. Extension is added automatically.
  7. name = "Todd the Dragon Kid"
  8. hp = 40000
  9. atk = 5
  10. def = 2000
  11. fakeatk = 500
  12. fakedef = 500
  13. check = ""
  14. dialogbubble = "right" -- See documentation for what bubbles you have available.
  15. canspare = false
  16. cancheck = false
  17.  
  18. -- Happens after the slash animation but before
  19. function HandleAttack(attackstatus)
  20. if attackstatus == -1 then
  21. -- player pressed fight but didn't press Z afterwards
  22. else
  23. -- player did actually attack
  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 == "CHECK" then
  30. currentdialogue = {"Selected\nAct 1."}
  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. BattleDialog({"TODD THE DRAGON KID "..fakeatk.." ATK\r"..fakedef.." DEF\nFusing with a dragon's DNA gave\rhim superhuman powers."})
  37. end
  38.  
  39. function OnDeath()
  40. dialogbubble = "rightlargeminus"
  41. hp = 1
  42. def = 1
  43. Audio.Pause()
  44. currentdialogue = {"Nice try, boy-o"}
  45. end
Advertisement
Add Comment
Please, Sign In to add comment