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 = {"The water's flowing."}
- commands = {"Check"}
- randomdialogue = {"[noskip][func:SetSprite,blank][func:BackAnim][next]"}
- sprite = "blank" --Always PNG. Extension is added automatically.
- name = "Mettaton OMEGA"
- local def = SetGlobal('def', -550)
- hp = 27000
- atk = 1
- def = def
- xp = 1500
- check = "Check message goes here."
- dialogbubble = "right" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = false
- SetGlobal('stun', 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
- -- player did actually attack
- SetGlobal('stun', 1)
- local lights = GetGlobal('lights')
- if lights <= 1169 then
- local def = GetGlobal('def')
- SetGlobal('def', 50)
- end
- if lights > 1170 then
- local def = GetGlobal('def')
- SetGlobal('def', -550)
- SetSprite("mettaton/hurt")
- end
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "CHECK" then
- BattleDialog({"METTATON OMEGA 99 ATK 99 DEF\nNapstablook's best invention and friend."})
- end
- end
- function BackAnim()
- SetGlobal('stun', 0)
- end
Add Comment
Please, Sign In to add comment