Advertisement
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 = {"Toriel blocks the way."}
- commands = {"TALK"}
- randomdialogue = {"[voice:toriel]..."}
- sprite = "Toriel_Battle_Sprite" --Always PNG. Extension is added automatically.
- name = "Toriel"
- hp = 1
- atk = 6
- def = 1
- check = "She won't let you past."
- dialogbubble = "right" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = true
- -- Happens after the slash animation but before
- function HandleAttack(attackstatus)
- if attackstatus == -1 then
- -- player pressed fight but didn't press Z afterwards
- else
- if hp < 1 then
- Audio.stop()
- if canspare == false then
- hurttoriel.alpha = 1
- currentdialogue = {"[func:SetSprite,Toriel_Empty][voice:toriel]I\nunderstand...[next]" , "[voice:toriel]Be good\n[w:30]my children.[w:60]",
- "[noskip][func:EndLife]"}
- hp = 1
- elseif canspare == true then
- killedtoriel.alpha = 1
- currentdialogue = {"[voice:toriel][effect:shake][w:60]At my most\nvulnerable\nmoment...[next]" , "[voice:toriel][effect:shake]You fit\nin out\nthere![next]" , "[voice:toriel][effect:shake]HaHaHaHaHa\nHaHaHaHaHa",
- "[noskip][func:EndLife]"}
- hp = 1
- end
- end
- end
- end
- function EndLife()
- Kill()
- end
- -- player did actually attack
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "TALK" then
- BattleDialog({"Toriel doesn't seem up for conversation."})
- currentdialogue = {"[voice:toriel]Please stop."}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement