Advertisement
Guest User

Untitled

a guest
Jun 24th, 2022
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.00 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Stage lights are blaring."}
  3. commands = {"Check"}
  4.  
  5. sprite = "empty" --Always PNG. Extension is added automatically.
  6. name = "Mettaton NEO"
  7. hp = 30000
  8. atk = 90
  9. def = -40000
  10. check = "Dr. Alphys's greatest invention."
  11. dialogbubble = "right" -- See documentation for what bubbles you have available.
  12. canspare = false
  13. cancheck = false
  14.  
  15. -- Happens after the slash animation but before
  16. function HandleAttack(attackstatus)
  17.     if attackstatus == -1 then
  18.         -- player pressed fight but didn't press Z afterwards
  19.     else
  20.         function BeforeDamageCalculation()
  21.             SetDamage(math.random(900000,999999))
  22.         end
  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.         BattleDialog({"METTATON NEO - 90 ATK 9 DEF\nDr. Alphys' greatest invention."})
  31.     end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement