Advertisement
Guest User

sans.lua

a guest
Aug 21st, 2020
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.03 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Smells like swag.", "Obnoxious wubs fills the room.", "Smells like deodorant.", "In this world...\r\rYou only live once."}
  3. commands = {"Check", "Smoke"}
  4. randomdialogue = {"[next]"}
  5.  
  6. sprite = "empty" --Always PNG. Extension is added automatically.
  7. name = "Xx_FRESHSANS_xX"
  8. hp = 100
  9. atk = 1
  10. def = 1
  11. check = "The fresh prince of nightmares.\nCan deal more than 1 damage."
  12. --The Fresh Prince of Bel-Air
  13. dialogbubble = "rightlarge" -- See documentation for what bubbles you have available.
  14. cancheck = false
  15. canspare = false
  16. canabsorb = false
  17. anger = 0
  18. xp = 30
  19. gold = 40
  20. cigg = 0
  21. Player.name = ""
  22.  
  23.  
  24. -- Happens after the slash animation but before
  25. function HandleAttack(attackstatus)
  26.     if attackstatus == -1 then
  27.         -- player pressed fight but didn't press Z afterwards
  28.     else
  29.         -- player actually attacked
  30.         if anger == 0 then
  31.         Audio.Stop()
  32.         currentdialogue = {"[noskip][font:sans][effect:shake][speed:0.5]you shouldn't have done that.[sound:swipe][sound:break][sound:break2][music:ABOLITION-V3]"}
  33.         anger = 1
  34.         atk = atk * 3
  35.         end
  36.     end
  37. end
  38.  
  39. -- This handles the commands; all-caps versions of the commands list you have above.
  40. function HandleCustomCommand(command)
  41.     if command == "CHECK" then
  42.         BattleDialog({"Xx_FRESHSANS_xX: 10^7 ATK\nThe fresh prince of nightmares."})
  43.         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."}
  44.     elseif command == "SMOKE" then
  45.         if cigg == 0 then
  46.             BattleDialog({"You light a cigarette."})
  47.             currentdialogue = {"[noskip][font:sans][effect:none]hey man.\n[w:5]drugs are UNCOOL.\n\n[w:15]don't do drugs, kid."}
  48.             cigg = cigg + 1
  49.         elseif cigg == 1 then
  50.             BattleDialog({"You blow smoke into the air"})
  51.             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."}
  52.             cigg = cigg + 1
  53.         end
  54.     end
  55. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement