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 = {"Smells like swag.", "Obnoxious wubs fills the room.", "Smells like deodorant.", "In this world...\r\rYou only live once."}
- commands = {"Check", "Smoke"}
- randomdialogue = {"[next]"}
- sprite = "empty" --Always PNG. Extension is added automatically.
- name = "Xx_FRESHSANS_xX"
- hp = 100
- atk = 1
- def = 1
- check = "The fresh prince of nightmares.\nCan deal more than 1 damage."
- --The Fresh Prince of Bel-Air
- dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
- cancheck = false
- canspare = false
- canabsorb = false
- anger = 0
- xp = 30
- gold = 40
- cigg = 0
- Player.name = ""
- -- 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 actually attacked
- if anger == 0 then
- Audio.Stop()
- currentdialogue = {"[noskip][font:sans][effect:shake][speed:0.5]you shouldn't have done that.[sound:swipe][sound:break][sound:break2][music:ABOLITION-V3]"}
- anger = 1
- atk = atk * 3
- 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({"Xx_FRESHSANS_xX: 10^7 ATK\nThe fresh prince of nightmares."})
- currentdialogue = {"[noskip][font:sans][effect:none]lighten up, dog.\n[w:5]you need to chillax.[w:15]\n\nit's skate... [w:5][lettereffect:shake]OR DIE."}
- elseif command == "SMOKE" then
- if cigg == 0 then
- BattleDialog({"You light a cigarette."})
- currentdialogue = {"[noskip][font:sans][effect:none]hey man.\n[w:5]drugs are UNCOOL.\n\n[w:15]don't do drugs, kid."}
- cigg = cigg + 1
- elseif cigg == 1 then
- BattleDialog({"You blow smoke into the air"})
- currentdialogue = {"[font:sans][effect:none]bro,[w:5]smoking causes\ncancer and...[w:5]ack...\n[w:5]lung desease.[w:10]that's\nvery unradical."}
- cigg = cigg + 1
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement