Advertisement
19891919

My Toriel.lua file

Aug 8th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. if hp > 500000 then
  3. comments = {"Get the free EXP"}
  4. else
  5. comments = {"Toriel is burning with anger.", "Toriel no longer wants to \rhold back.", "Toriel is giving it her all."}
  6. end
  7. commands = {"COMPLIMENT", "APOLOGISE", "INSULT"}
  8. randomdialogue = {"Random\nDialogue\n1.", "Random\nDialogue\n2.", "Random\nDialogue\n3."}
  9.  
  10. --Always PNG. Extension is added automatically.
  11. if healcounter == 8 then
  12. sprite = "i_warned_you"
  13. Player.hurt(Player.hp)
  14. else
  15. sprite = "toriel_hurt_sprite"
  16. end
  17. name = "Toriel"
  18. hp = 750000
  19. atk = 10
  20. def = -15000
  21.  
  22. check = "Will never forgive you."
  23. dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
  24. canspare = false
  25. currentdialogue = {"After all you've done you \nask for mercy?\nHeck no is all I have\n to say"}
  26. cancheck = true
  27. enemydying = false
  28.  
  29.  
  30.  
  31. -- Happens after the slash animation but before
  32. function HandleAttack(attackstatus)
  33. if attackstatus == -1 then
  34. -- player pressed fight but didn't press Z afterwards
  35. else
  36. -- player did actually attack
  37. end
  38. end
  39.  
  40. -- This handles the commands; all-caps versions of the commands list you have above.
  41. function HandleCustomCommand(command)
  42. if command == "COMPLIMENT" then
  43. BattleDialog({"[color:ff0000]Compliment her on what.\nBeing so naive."})
  44. elseif command == "APOLOGISE" then
  45. BattleDialog({"[color:ff0000]Apologise for genocide.\nWhat a joke"})
  46. elseif command == "INSULT" then
  47. BattleDialog({"[color:ff0000]Have you not caused enough pain."})
  48. end
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement