Advertisement
SamiPiplup

Voodoo

Jun 5th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.66 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Voodoo is stitching up a hole.", "Voodoo is laughing like a madman.", "Voodoo is having a great time.", "Voodoo seems to be\nthinking about someone."}
  3. commands = {"Sew", "Laugh", "Cuddle"}
  4. randomdialogue = {"AHAHAHA!", "LET'S\nHAVE\nSOME\nFUN!", "TIME FOR\nSOME\nSNIPPING!"}
  5.  
  6. sprite = "Voodoo" --Always PNG. Extension is added automatically.
  7. name = "Voodoo"
  8. hp = 800
  9. atk = 6
  10. def = 2
  11. check = "This living ragdoll loves\nto cut and stitch."
  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.      SetSprite("Voodoo Hurt")
  22.         -- player did actually attack
  23.    
  24.     end
  25. end
  26.  
  27. function EnemyDialogueStarting(sprite)
  28. if sprite == "Voodoo Hurt" then
  29. SetSprite("Voodoo")
  30. elseif sprite == "Voodoo" then
  31. SetSprite("Voodoo")
  32. end
  33.  
  34. -- This handles the commands; all-caps versions of the commands list you have above.
  35. function HandleCustomCommand(command)
  36.     if command == "SEW" then
  37.         BattleDialog({"You stitched up\nan old blanket."})
  38.         currentdialogue = {"YES! LET'S SEW\nSOME THINGS UP!"}
  39.     elseif command == "LAUGH" then
  40.         BattleDialog({"You laughed as hard\nas you could."})
  41.         currentdialogue = {"YES! LAUGH WITH\nME! HEEHEEHEE!"}
  42.     elseif command == "CUDDLE" then
  43.         BattleDialog({"You picked up Voodoo,\n and held him tightly."})
  44.         currentdialogue = {"n-no... I\nfeel weird..."}
  45.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement