Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- A basic monster script skeleton you can copy and modify for your own creations.
- comments = {}
- commands = {"Check"}
- randomdialogue = {"[next]"}
- sprite = "a_toriel" --Always PNG. Extension is added automatically.
- name = "Toriel"
- hp = 440
- atk = 80
- fakeatk = 80
- def = -10000
- fakedef = 80
- check = "Knows what's best for you."
- dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = false
- unkillable = true
- -- Happens after the slash animation but before
- attack_num = -1
- attacknum = 0
- function HandleAttack(attackstatus)
- if attackstatus == -1 then
- -- player pressed fight but didn't press Z afterwards
- else
- end
- end
- function BattleStart()
- Audio.LoadFile("Heartburn")
- end
- function Heal()
- Audio.PlaySound("healsound")
- end
- function HandleAttack(damage)
- if attackstatus == -1 then
- -- player pressed fight but didn't press Z afterwards
- else
- NearDeath()
- end
- end
- function NearDeath()
- if hp <=1 then
- hp = 1
- name = "Queen Toriel"
- commands = {"Check", "Mom", "Taunt", "Talk"}
- 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!!!"}
- Battle = 2
- SetGlobal("DEAD", 1)
- end
- end
- Battle = 1
- Momed = 0
- Taunt = 0
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "CHECK" then
- if Battle == 1 and Momed == 0 and Taunt == 0 then
- BattleDialog({"[voice:ui]Toriel "..fakeatk.." ATK "..fakedef.." DEF\n[voice:ui]Knows what's best for you."})
- elseif Battle == 2 and Momed == 0 and Taunt == 0 then
- 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."})
- elseif Battle == 2 and Momed == 1 and Taunt == 0 then
- 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."})
- end
- end
- if command == "MOM" then
- 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"})
- def = -170
- Momed = 1
- end
- if command == "TALK" then
- BattleDialog({"[voice:ui]You tell toriel that you \nkilled her before", "[voice:ui]Toriel stares in silence[waitall:4]..."})
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment