Advertisement
Guest User

killgit code

a guest
Nov 24th, 2021
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 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 = {"Compliment", "Threaten"}
  4. randomdialogue = {"Random\nDialogue\n1.", "Random\nDialogue\n2.", "Random\nDialogue\n3."}
  5.  
  6. sprite = "poseur" --Always PNG. Extension is added automatically.
  7. name = "Killgit"
  8. hp = 60
  9. atk = 8
  10. def = 10
  11. check = "Life is difficult for those\nwho cross this enemy."
  12. dialogbubble = "right" -- 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. function HandleCustomCommand(command)
  25. if command == "COMPLIMENT" then
  26. if threatencount == 0 then
  27. currentdialogue = {"Ribbit,\nrobbit."}
  28. BattleDialog({"Killgit didn't understand what\ryou said, so it was unfazed."})
  29. elseif threatencount == 1 then
  30. currentdialogue = {"(Apologetic\nCroak)"}
  31. BattleDialog({"Killgit recognizes your words\ras an apology."})
  32. canspare = true
  33. end
  34. elseif command == "THREATEN" then
  35. threatencount = threatencount + 1
  36. currentdialogue = {"Moo."}
  37. BattleDialog({"Killgit recognized the words\ryou said an was reminded of\r itself."})
  38. end
  39. end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement