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 = {"You have the feeling that\n\r something is off.", "This is a new life!"}
- commands = {"Say hello", "Act 2"}
- randomdialogue = {"I am new here!", "What do we do?", "What's going on?!"}
- sprite = "poseur" --Always PNG. Extension is added automatically.
- name = "Creater"
- hp = 100
- atk = 7
- def = 1
- check = "You check Creater.\r\nNothing happened!"
- 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 == "SAY HELLO" then
- canspare = false
- currentdialogue = {"Hi?"}
- BattleDialog({"You said 'hi' to the foe!"})
- elseif command == "ACT 2" then
- currentdialogue = {"Selected\nAct 2."}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement