OmegaGamingHunters

Monster Script (CYF) Update 1.10

Jan 22nd, 2018
4,481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.74 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {}
  3. commands = {"Check"}
  4. randomdialogue = {"[next]"}
  5.  
  6. sprite = "a_toriel" --Always PNG. Extension is added automatically.
  7. name = "Toriel"
  8. hp = 440
  9. atk = 80
  10. fakeatk = 80
  11. def = -10000
  12. fakedef = 80
  13. check = "Knows what's best for you."
  14. dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
  15. canspare = false
  16. cancheck = false
  17. unkillable = true
  18.  
  19. -- Happens after the slash animation but before
  20. attack_num = -1
  21. attacknum = 0
  22. function HandleAttack(attackstatus)
  23.     if attackstatus == -1 then
  24.         -- player pressed fight but didn't press Z afterwards
  25.     else
  26.  
  27.     end
  28. end
  29.  
  30. function BattleStart()
  31.     Audio.LoadFile("Heartburn")
  32. end
  33.  
  34. function Heal()
  35.     Audio.PlaySound("healsound")
  36. end
  37.  
  38. function HandleAttack(damage)
  39.     if attackstatus == -1 then
  40.         -- player pressed fight but didn't press Z afterwards
  41.     else
  42.         NearDeath()
  43.     end
  44. end
  45.  
  46. function NearDeath()
  47.     if hp <=1 then
  48.         hp = 1
  49.         name = "Queen Toriel"
  50.         commands = {"Check", "Mom", "Taunt", "Talk"}
  51.         comments = {"[color:ff0000]Now the real fight begins =).", "Toriel", "...", "Queen Toriel blocks the way!", "[color:ff0000]DIE!!!", "Feels like I'm in a volcano[waitall:4]...", "[color:ff0000]JUST DIE!!!"}
  52.         Battle = 2
  53.         SetGlobal("DEAD", 1)       
  54.     end
  55. end
  56.  
  57. Battle = 1
  58. Momed = 0
  59. Taunt = 0  
  60. -- This handles the commands; all-caps versions of the commands list you have above.
  61. function HandleCustomCommand(command)
  62.     if command == "CHECK" then
  63.         if Battle == 1 and Momed == 0 and Taunt == 0 then
  64.             BattleDialog({"[voice:ui]Toriel "..fakeatk.." ATK "..fakedef.." DEF\n[voice:ui]Knows what's best for you."})
  65.         elseif Battle == 2 and Momed == 0 and Taunt == 0 then
  66.             BattleDialog({"[voice:ui]Queen Toriel 10000 ATK 10000 DEF\n[voice:ui]10000 HP", "[voice:ui]The Queen of all Monsters in\n[voice:ui]her prime.[w:30][color:ff0000][novoice][waitall:2] Let's put her out of \nher misery."})
  67.         elseif Battle == 2 and Momed == 1 and Taunt == 0 then
  68.             BattleDialog({"[voice:ui]Queen Toriel 10000 ATK 6000 DEF\n[voice:ui]10000 HP", "[voice:ui]The Queen of all Monsters in\n[voice:ui]her prime.[w:30][color:ff0000][novoice][waitall:4] Let's put her out of \nher god damn misery."})
  69.         end
  70.     end
  71.     if command == "MOM" then
  72.         BattleDialog({"[voice:ui]You call toriel your mother and\n say your sorry.", "Toriel stares in shock and tears\n begin to flow in her eyes.", "Toriel's DEF Decreased"})
  73.         def = -170
  74.         Momed = 1
  75.     end
  76.     if command == "TALK" then
  77.         BattleDialog({"[voice:ui]You tell toriel that you \nkilled her before", "[voice:ui]Toriel stares in silence[waitall:4]..."})   
  78.     end
  79. end
Advertisement
Add Comment
Please, Sign In to add comment