Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.69 KB | None | 0 0
  1. -- A basic monster script skeleton you can copy and modify for your own creations.
  2. comments = {"Papyton.", "Smells like PPT-Brand\rLeg-ghetti.", "Bone-Legs dance to the beat\rof the song.", "Papyton whispers\r''Well Well Well!''", "You hear Mettasans makes a joke\rfar-away.\nPapyTon screams furiously."}
  3. commands = {"Check", "Flirt", "Taunt", "Insult", "Cry"}
  4. randomdialogue = {"[waitall:1][effect:none][font:papyrus]", "[waitall:1][effect:none][font:papyrus]IT'S PUZZLE TIME!", "[waitall:1][effect:none][font:papyrus]Random\nDialogue\n3.","[waitall:1][effect:none][font:papyrus]NICE MOVES\nDARLING!"}
  5.  
  6. progress = 0
  7.  
  8. backstab = 0
  9.  
  10. flirtcount = 0
  11.  
  12. insultcount = 0
  13.  
  14. tauntfails = 0
  15.  
  16. flirtcount = 0
  17.  
  18. insultcount = 0
  19.  
  20. tauntfails = 0
  21.  
  22. tauntdialogue = {{"[noskip][waitall:1][effect:none][font:papyrus]HEY! \n[w:5]STOP MOVING \nSO I CAN \nCAPTURE YOU!!"},
  23. {"[noskip][waitall:1][effect:none][font:papyrus]OH YEAH?[w:5]\nHOW ABOUT THIS!!"},
  24. {"[noskip][waitall:1][effect:none][font:papyrus]WOWIE, THOSE\nMOVES...[w:7]\nN-NO! I MUST\nRESIST!"},
  25. {"[noskip][waitall:1][effect:none][font:papyrus]E-ENOUGH WARMING\nUP! [w:5]THIS BATTLE\nIS ABOUT TO\nBECOME...", "[noskip][waitall:1][effect:none][font:papyrus]...LESS\nWARMED UP."},
  26. {"[noskip][waitall:1][effect:none][font:papyrus]...PHEW![w:5] YOU ARE...[w:5]\nA PERSISTENT \nFOE..![w:5] BUT...[w:2] I \nAM PERSISTENTER!!"},
  27. {"[noskip][waitall:1][effect:none][font:papyrus]JUST...[w:2] \nJUST GIVE UP \nALREADY, HUMAN!!![w:5] \nTHIS IS \nGETTING TIRING!!!!"},
  28. {"[noskip][waitall:1][effect:none][font:papyrus]ST... STILL??? \nWOWIE, HUMANS \nREALLY DO NOT \nLIKE BEING \nCAPTURED..."},
  29. {"[noskip][waitall:1][effect:none][font:papyrus]'HUFF'...[w:5] \nYOU'RE...[w:5] \nSTILL...[w:5] \nDODGING???"}}
  30.  
  31. tauntcomments = {"You boast that none of\rPapyton's attacks hit you.",
  32. "You deftly weave your way \rthrough another legbone attack.",
  33. "You effortlessly dodge Papyton's \rattack. \nYou are radiating coolness.",
  34. "Your dodging skills are \rbeginning to attract \rattention from passers-by.",
  35. "You dodge Papyton's attacks. \nHe is trying to hide his \ramazement.",
  36. "You give Papyton a sly smirk \ras he once again fails to \rhit you.",
  37. "Your dodging skills have become \rlegendary.",
  38. "You dodge Papyton's attack.\nHe looks tired.",
  39. "You dodge Papyton's attack.\nHe looks exhausted..."}
  40.  
  41.  
  42.  
  43. sprite = "black" --Always PNG. Extension is added automatically.
  44. name = "Papyton"
  45. hp = 685
  46. atk = 7
  47. def = -7
  48. exp = 250
  49. check = "Likes to say: ''Well Well Well!''"
  50. dialogbubble = "rightwide" -- See documentation for what bubbles you have available.
  51. canspare = false
  52. cancheck = false
  53.  
  54.  
  55. function RandomVoice()
  56. Audio.PlaySound("robotic" .. math.random(1, 8))
  57. end
  58.  
  59.  
  60. -- Happens after the slash animation but before
  61. function HandleAttack(attackstatus)
  62. if attackstatus == -1 then
  63. -- player pressed fight but didn't press Z afterwards
  64. currentdialogue = {"[waitall:1][effect:none][font:papyrus]EH?\nWHY AREN'T\nYOU FIGHTING...?"}
  65. else
  66. -- player did actually attack
  67. currentdialogue = {"[waitall:1][effect:none][font:papyrus]...!"}
  68. end
  69. end
  70.  
  71. -- This handles the commands; all-caps versions of the commands list you have above.
  72. function HandleCustomCommand(command)
  73. if command == "CHECK" then
  74. if not canspare then
  75. currentdialogue = {"[waitall:1][effect:none][font:papyrus]WELL WELL WELL!"}
  76. BattleDialog({"PAPYTON - 7 ATK 3 DEF\nLikes to say: ''Well Well Well!''"})
  77. else
  78. currentdialogue = {"[waitall:1][effect:none][font:papyrus]WAITING TO BE\nSPARED HUMAN!"}
  79. BattleDialog({"PAPYTON - 7 ATK -100 DEF\nThinks your his biggest fan."})
  80. end
  81. elseif command == "FLIRT" then
  82. if GetGlobal("battlephase") == 0 then
  83. if flirtcount == 0 then
  84. currentdialogue = {"[waitall:1][effect:none][font:papyrus]FLIRTING? [w:10]SORRY, YOU'RE\nNOT ''FAN'' ENOUGH\nFOR ME!"}
  85. State("ENEMYDIALOGUE")
  86. elseif flirtcount == 1 then
  87. BattleDialog({"You FLIRT again.[w:10]\nHe's just too irresistible.[w:10]\nBut, he doesn't acknowledge you."})
  88. currentdialogue = {"[waitall:1][effect:none][font:papyrus]SORRY, YOU'RE\nNOT ''FAN'' ENOUGH\nFOR ME!"}
  89. else
  90. BattleDialog({"You FLIRT, but to no avail.[w:10]\nSeems FLIRTing wont escalate\rthis battle..."})
  91. currentdialogue = {"[waitall:1][effect:none][font:papyrus]SORRY, YOU'RE\nNOT ''FAN'' ENOUGH\nFOR ME!"}
  92. end
  93. flirtcount = flirtcount + 1
  94. else
  95. BattleDialog({"Papyton is too busy FIGHTing to\rFLIRT back."})
  96. end
  97. elseif command == "INSULT" then
  98. currentdialogue = {"[waitall:1][effect:none][font:papyrus]INSULTS WON'T\nWORK WELL ON ME\nDARLING!\nHOW MANY HATERS\nDO YOU THINK\nI HAVE?"}
  99. BattleDialog({"You insulted Papyton about his\rLeg-ghetti."})
  100. elseif command == "CRY" then
  101. BattleDialog({"Screaming is against the\rrules."})
  102. elseif command == "TAUNT" then
  103. local phase = GetGlobal("battlephase")
  104. if phase == 0 then
  105. BattleDialog({"You tell Papyton to try harder."})
  106. SwitchPhase()
  107. else
  108. if GetGlobal("nohit") then
  109. SetGlobal("tauntlevel", GetGlobal("tauntlevel") + 1)
  110. if GetGlobal("tauntlevel") <= 8 then
  111. BattleDialog({tauntcomments[GetGlobal("tauntlevel")]})
  112. currentdialogue = tauntdialogue[GetGlobal("tauntlevel")]
  113. elseif GetGlobal("tauntlevel") == 9 then
  114. BattleDialog({tauntcomments[9]})
  115. currentdialogue = {"[noskip][effect:none][font:papyrus]WELL..! [w:2]'HUFF'[w:5] IT'S \nCLEAR YOU CAN'T \n[w:2]'HUFF' DEFEAT ME!!", "[noskip][effect:none][font:papyrus]YEAH!!![w:5] I CAN \nSEE YOU SHAKING \nIN YOUR BOOTS!!!", "[noskip][effect:none][font:papyrus]THEREFORE I,[w:2] \nTHE GREAT \nPAPYTON,[w:2] ELECT \nTO GRANT YOU \nPITY!!", "[noskip][effect:none][font:papyrus]I WILL [color:ff0000]SPARE[color:000000] YOU,[w:2] \nHUMAN!!![w:5] NOW'S \nYOUR CHANCE TO \nACCEPT MY [color:ff0000]MERCY."}
  116. else
  117. BattleDialog({"You tell Papyrus to try harder.[w:10]\n...[w:10]\nBut nothing happened."})
  118. currentdialogue = {"..."}
  119. end
  120. else
  121. if tauntfails == 0 then
  122. currentdialogue = {"[noskip][effect:none][font:papyrus]WHAT WAS THAT?\nI CAN'T HEAR\nYOU...", "[noskip][effect:none][font:papyrus]OVER THE SOUND\nOF [color:ff0000]MY ATTACKS\nHITTING YOU!!"}
  123. elseif tauntfails == 1 then
  124. currentdialogue = {"[noskip][effect:none][font:papyrus]YOU'LL EITHER \nHAVE TO SPEAK UP\nOR [color:ff0000]STOP GETTING \nHIT...[color:000000]", "[noskip][effect:none][font:papyrus]BUT THAT'S NOT\nGOING TO HAPPEN!\nWELL WELL WELL!"}
  125. elseif tauntfails >= 2 then
  126. currentdialogue = {"[noskip][effect:none][font:papyrus]TAUNTING ME WON'T\nHELP AS LONG AS\n[color:ff0000]YOU'RE BEING HIT!!"}
  127. end
  128. BattleDialog({"You tell Papyton to try harder.[w:10]\n...[w:10]\nHe doesn't care."})
  129. tauntfails = tauntfails + 1
  130. end
  131. end
  132. end
  133.  
  134. function SwitchPhase()
  135. currentdialogue = {"[noskip][effect:none][font:papyrus]SO, YOU WANT\nTO DO THIS\nTHE HARD WAY...", "[noskip][effect:none][font:papyrus]THEN, LET'S SEE\nIF YOU CAN\nHANDLE MY \nFABLED\n'BLUE ATTACK!'"}
  136. randomdialogue = {"[effect:none][font:papyrus]..."}
  137. SetGlobal("battlephase", 1)
  138. end
  139.  
  140. function MakeBlue()
  141. SetGlobal("isBlue", true)
  142. blue = GetGlobal("blue")
  143. blue.MoveTo(Player.x, Player.y)
  144. end
  145.  
  146. function OnDeath()
  147. if backstab == 0 then
  148. SetSprite("bodyded")
  149. Audio.Stop()
  150. currentdialogue = {"[waitall:6][effect:none][font:papyrus]I THOUGHT WE...",
  151. "[waitall:6][effect:none][font:papyrus]COULD BE FRIENDS", "[func:Kill]"}
  152. State("ENEMYDIALOGUE")
  153. end
  154. end
  155.  
  156. if backstab == 1 then
  157. SetSprite("bodyded")
  158. Audio.Stop()
  159. currentdialogue = {"[waitall:6][effect:none][font:papyrus]I THOUGHT YOU...",
  160. "[waitall:6][effect:none][font:papyrus]WERE MY FAN...", "[func:Kill]"}
  161. State("ENEMYDIALOGUE")
  162. end
  163. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement