Advertisement
offbrandbiscuit

issue with lua script unitale0.2.1a

May 24th, 2018
112
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 = {"Smells like mannequin.", "Poseur is posing."}
  3. commands = {"Act 1"}
  4. randomdialogue = {"{font:papyrus}you wanted this."}
  5.  
  6. sprite = "poseur" --Always PNG. Extension is added automatically.
  7. name = "Poseur EX"
  8. hp = 100
  9. atk = 5
  10. def = 2
  11. check = "One of ALPHYS's experiments gone wrong."
  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. currentdialogue = {"Watch where you're waving\nthat thing, would you?"}
  20. else
  21. if hp > 35 then
  22. currentdialogue = {"Guess I'd better STEP IT UP..."}
  23.  
  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. BattleDialog({"You plead with Poseur to stop.\nHe's not listening."})
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement