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 = {"UF Sans is gonna have a GREAT\nTIME"}
- commands = {"Cry", "Flirt", "Tease", "Joke"}
- randomdialogue = {"Hatred, hatred\nhatred", "Just die you\npiece \nof shit.", "Creatures like you\nshould burn\nin HELL"}
- sprite = "poseur" --Always PNG. Extension is added automatically.
- name = "UF Sans"
- hp = 100
- atk = 1
- def = 1
- check = "Easiest enemy in the game, UF Sans\nsees this and gets angry."
- dialogbubble = "rightlarge" -- 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 == "CRY" then
- BattleDialog = {"You start to cry, UF Sans starts laughing at you."}
- elseif command == "FLIRT" then
- BattleDialog = {"You start to flirt, UF Sans is confused."}
- elseif command == "TEASE" then
- BattleDialog = {"You tell UF Sans he will meet his brother soon."}
- elseif command == "JOKE" then
- BattleDialog = {"You tell UF Sans a joke. He tries hard not to laugh."}
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment