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 = {"Todd is terrified.", "Todd is scared for his life.", "Todd is shivering with fear."}
- commands = {"Check"}
- randomdialogue = {"P-please don't hurt me."}
- sprite = "ToddNormal" --Always PNG. Extension is added automatically.
- name = "Todd"
- hp = 100
- atk = 0
- def = -999
- fakeatk = 0
- fakedef = -250
- check = ""
- dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
- canspare = false
- cancheck = false
- autolinebreak = 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
- -- player did actually attack
- currentdialogue = {"A-aaahhhhh!!! That h-hurts!!!"}
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "CHECK" then
- BattleDialog({"TODD "..fakeatk.." ATK "..fakedef.." DEF\nThe so-called dragon king.\nWhat a joke."})
- end
- function OnDeath()
- dialogbubble = "rightwide"
- hp = 100
- def = 1
- Audio.Pause()
- currentdialogue = {"Ah...so they were right.", "You really ARE a threat of all of dragonkind.", "But I'm not going to let you kill all of us.", "Past me is the entrance to the shelter, where all the survivors are."}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement