Guest User

Untitled

a guest
May 15th, 2017
81
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 = {"UF Sans is gonna have a GREAT\nTIME"}
  3. commands = {"Cry", "Flirt", "Tease", "Joke"}
  4. randomdialogue = {"Hatred, hatred\nhatred", "Just die you\npiece \nof shit.", "Creatures like you\nshould burn\nin HELL"}
  5.  
  6. sprite = "poseur" --Always PNG. Extension is added automatically.
  7. name = "UF Sans"
  8. hp = 100
  9. atk = 1
  10. def = 1
  11. check = "Easiest enemy in the game, UF Sans\nsees this and gets angry."
  12. dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
  13. canspare = false
  14. cancheck = true
  15.  
  16. -- Happens after the slash animation but before
  17. function HandleAttack(attackstatus)
  18. if attackstatus == -1 then
  19. -- player pressed fight but didn't press Z afterwards
  20. else
  21. -- player did actually attack
  22. end
  23. end
  24.  
  25. -- This handles the commands; all-caps versions of the commands list you have above.
  26. function HandleCustomCommand(command)
  27. if command == "CRY" then
  28. BattleDialog = {"You start to cry, UF Sans starts laughing at you."}
  29. elseif command == "FLIRT" then
  30. BattleDialog = {"You start to flirt, UF Sans is confused."}
  31. elseif command == "TEASE" then
  32. BattleDialog = {"You tell UF Sans he will meet his brother soon."}
  33. elseif command == "JOKE" then
  34. BattleDialog = {"You tell UF Sans a joke. He tries hard not to laugh."}
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment