Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Smells like knives.", "Chara is laughing...\rlike a maniac.", "Doesn't seem like you can\rbeat Chara...\r* But you have DETERMINATION"}
  3. commands = {"Intimidate", "Call", "Stick", "Joke"}
  4. randomdialogue = {"HA HA\nHA HA!", "Just die\nalready!", "You\ncan't survive!"}
  5.  
  6. sprite = "poseur" --Always PNG. Extension is added automatically.
  7. name = "Chara"
  8. hp = 300
  9. atk = 3
  10. def = 1
  11. check = "Chara is here to take control\rof your body..."
  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 == "INTIMIDATE" then
  28. BattleDialog = ({"You flick your hair...\rGood job... \rYou didn't intimidate Chara at all."})
  29. elseif command == "CALL" then
  30. BattleDialog = ({"You called for help...\rBut nobody came..."})
  31. elseif command == "STICK" then
  32. BattleDialog = ({"You threw a stick...\rChara slices it in half mid-air..."})
  33. elseif command == "JOKE" then
  34. BattleDialog = ({"You told a joke... Just like sans...\rChara seems disapointed..."})
  35. end
  36. BattleDialog({"You selected " .. command .. "."})
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement