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 = {"You feel an immesurable amount of dread.", "His empty eyes stare into your soul", "The way he moves his mangled limbs disgust you.", "Maybe this one isnt winnable", "You are filled with... Hopelessness?"}
- commands = {"SCREAM", "STRUGGLE", "DEATH"}
- randomdialogue = {"...", "....", "......"}
- sprite = "poseur" --Always PNG. Extension is added automatically.
- name = "Type://Gaster"
- hp = 9312
- atk = 1
- def = 1
- check = "He keeps making unintelgible signs with his hands."
- 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
- -- player did actually attack
- end
- end
- -- This handles the commands; all-caps versions of the commands list you have above.
- function HandleCustomCommand(command)
- if command == "SCREAM" then
- BattleDialog({"You scream as loud as you possibly can"})
- currentdialogue = {"..."}
- elseif command == "STRUGGLE" then
- BattleDialog({"You try to free yourself from this creatures grasp"})
- currentdialogue = {"...︎"}
- elseif command == "DEATH"
- BattleDialog({"You fall down to your knees and gawk at the aproaching attack"})
- currentdialogue = {"hAhA"}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment