Advertisement
Guest User

error in cyf

a guest
Jan 19th, 2025
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"That saber looks sharp...", "Try not to get deleted.", "The hall is in ruins."}
  3. commands = {"Act 1", "Act 2", "Act 3"}
  4. randomdialogue = {"Just [effect:shake]die [effect:none]already.", "You're going to regret your actions.", "Actions have consequences."}
  5.  
  6. sprite = "empty" --Always PNG. Extension is added automatically.
  7. name = "Hunter S"
  8. hp = 32000
  9. atk = 32
  10. def = 32
  11. xp = 99999
  12. gold = 0
  13. check = "S-Rank Maverick Hunter.\n"
  14. dialogbubble = "right" -- See documentation for what bubbles you have available.
  15. canspare = false
  16. cancheck = true
  17. SetBubbleOffset(45, 120)
  18. SetSliceAnimOffset(0, 90)
  19. SetDamageUIOffset(0, 60)
  20.  
  21. -- Happens after the slash animation but before
  22. function HandleAttack(attackstatus)
  23. if attackstatus == -1 then
  24. -- player pressed fight but didn't press Z afterwards
  25. else
  26. -- player did actually attack
  27. end
  28. end
  29.  
  30. -- This handles the commands; all-caps versions of the commands list you have above.
  31. function HandleCustomCommand(command)
  32. if command == "ACT 1" then
  33. currentdialogue = {"Selected\nAct 1."}
  34. elseif command == "ACT 2" then
  35. currentdialogue = {"Selected\nAct 2."}
  36. elseif command == "ACT 3" then
  37. currentdialogue = {"Selected\nAct 3."}
  38. end
  39. BattleDialog({"You selected " .. command .. "."})
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement