Advertisement
Guest User

Untitled

a guest
Aug 27th, 2020
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 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 = "empty" --Always PNG. Extension is added automatically.
  7. name = "ToddDragon"
  8. hp = 40000
  9. atk = 5
  10. def = 1
  11. fakeatk = 500
  12. fakedef = 500
  13. check = ""
  14. defensemisstext = "COUNTERED"
  15. dialogbubble = "right" -- See documentation for what bubbles you have available.
  16. canspare = false
  17. cancheck = false
  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. Sound.Play("hit") -- player did actually attack
  25. end
  26. end
  27.  
  28. -- This handles the commands; all-caps versions of the commands list you have above.
  29. function HandleCustomCommand(command)
  30. if command == "CHECK" then
  31. currentdialogue = {"Selected\nAct 1."}
  32. elseif command == "ACT 2" then
  33. currentdialogue = {"Selected\nAct 2."}
  34. elseif command == "ACT 3" then
  35. currentdialogue = {"Selected\nAct 3."}
  36. end
  37. BattleDialog({"TODD THE DRAGON KID "..fakeatk.." ATK\r"..fakedef.." DEF\nFusing with a dragon's DNA gave\rhim superhuman powers."})
  38. end
  39.  
  40. function OnDeath()
  41. dialogbubble = "rightlargeminus"
  42. hp = 1
  43. def = 1
  44. Audio.Pause()
  45. currentdialogue = {"Nice try, boy-o"}
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement