Advertisement
Guest User

My Code

a guest
May 3rd, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"You have the feeling that\n\r something is off.", "This is a new life!"}
  3. commands = {"Say hello", "Act 2"}
  4. randomdialogue = {"I am new here!", "What do we do?", "What's going on?!"}
  5.  
  6. sprite = "poseur" --Always PNG. Extension is added automatically.
  7. name = "Creater"
  8. hp = 100
  9. atk = 7
  10. def = 1
  11. check = "You check Creater.\r\nNothing happened!"
  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.  
  25. -- This handles the commands; all-caps versions of the commands list you have above.
  26. function HandleCustomCommand(command)
  27. if command == "SAY HELLO" then
  28. canspare = false
  29. currentdialogue = {"Hi?"}
  30. BattleDialog({"You said 'hi' to the foe!"})
  31. elseif command == "ACT 2" then
  32. currentdialogue = {"Selected\nAct 2."}
  33. end
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement