MarioMario456

Monster script

Feb 25th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.24 KB | None | 0 0
  1. --[[ Flowey Battle Monster Script
  2.      By MarioMario456 --]]
  3.  
  4. comments = {"Flowey."}
  5. commands = {"Check", "Save"}
  6. randomdialogue = {"..."}
  7.  
  8. sprite = "poseur" --Always PNG. Extension is added automatically.
  9. name = "Flowey"
  10. hp = 500
  11. atk = 2
  12. def = -5
  13. check = "Lies about being good."
  14. dialogbubble = "right" -- See documentation for what bubbles you have available.
  15. canspare = false
  16. cancheck = false
  17. SaveCounter = 0
  18. DecreasedFloweyStats = false
  19.  
  20. -- Happens after the slash animation but before
  21. function HandleAttack(attackstatus)
  22.     if attackstatus == -1 then
  23.         -- player pressed fight but didn't press Z afterwards
  24.     else
  25.         -- player did actually attack
  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({"FLOWEY - 5 ATK 2 DEF\nLies about being good."})
  33.     elseif command == "SAVE" then
  34.         if SaveCounter == 0 then
  35.             BattleDialog({"You show Flowey a family\rphotograph.\nHe seems to remember..."})
  36.         else
  37.             BattleDialog({"More save texts to be added\rlater."})
  38.         end
  39.         SaveCounter = SaveCounter + 1
  40.     end
  41. end
  42.  
  43. function DecreaseFloweyStats()
  44.     DecreasedFloweyStats = true
  45.     def = -10
  46. end
Advertisement
Add Comment
Please, Sign In to add comment