-- A basic monster script skeleton you can copy and modify for your own creations.
comments = {"Smells like Vika.", "Vika.", "So beautiful!"} commands = {""} randomdialogue = {"[voice:v]..."}
sprite = "viko" --Always PNG. Extension is added automatically. name = "Vika" hp = 200 atk = 42 def = 0 check = "Her weak spot in her hair." dialogbubble = "right" -- See documentation for what bubbles you have available. canspare = false cancheck = true HitCount = 0
-- Happens after the slash animation but before
function HandleAttack(attackstatus)
if attackstatus == -1 then
-- player pressed fight but didn't press Z afterwards
else
HitCount = HitCount + 1
if HitCount == 1 then
currentdialogue = {"[effect:none][waitall:2][voice:v]Ha...\nBaby,\nI'm\ntoo\nstrong!"}
elseif HitCount == 2 then
SetGlobal('Action', 4)
currentdialogue = {"[effect:none][voice:v]But you\ndo not\nstop\n,why?!"}
elseif HitCount == 3 then
SetGlobal('Action', 4)
currentdialogue = {"[waitall:2][effect:none][voice:v]Do you\nbelieve\nin\nyourself\n[color:D10105]SO [color:000000]?!"}
elseif HitCount == 4 then
SetGlobal('Action', 4)
currentdialogue = {"[effect:none][voice:v]I saw\nhow you\nare\nfighting..."}
elseif HitCount == 5 then
SetGlobal('Action', 4)
currentdialogue = {"[effect:shake][voice:v]You\nspare\nthem!"}
elseif HitCount == 6 then
currentdialogue = {"[waitall:2][voice:v][effect:none][noskip]Maybe...\nYou really\nare not\nthat\nbad ..?"}
elseif HitCount == 7 then
currentdialogue = {"[waitall:2][voice:v][effect:none][noskip]I have\nless and\nless\npower ..."}
elseif HitCount == 8 then
currentdialogue = {"[waitall:2][effect:none][noskip]Oh...\nhaha...\nThen I'll\nspare\nyou!"}
Audio.LoadFile("u")
SetSprite("kill_her")
def = def - 66666
canspare = true
end
end
end
function OnDeath() Audio.Stop() if canspare == true then currentdialogue = {"[effect:none][waitall:3][voice:d]Oh[w:20].[w:20].[w:20].[w:20]","[voice:d]I\nunderes-\ntimated\nyou[w:20].[w:20].[w:20].","[voice:d]Looks\nlike\nit's all\n[w:20].[w:20].[w:20].","[voice:d]you...do\nevery-\nthing\nright[w:20].[w:20].[w:20].[w:20]","[voice:d]You\nwere a\ngood\naudience[w:20]!","[func:kill]"} State("ENEMYDIALOGUE") SetSprite("Dead") end end end
function kill() Kill() end end end