Advertisement
Guest User

Untitled

a guest
Aug 18th, 2020
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.43 KB | None | 0 0
  1. -- A basic encounter script skeleton you can copy and modify for your own creations.
  2.  
  3. music = "Mus_Wind" --Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
  4. encountertext = "You Get Lost" --Modify as necessary. It will only be read out in the action select screen.
  5. nextwaves = {"Inkcomic"}
  6. wavetimer = 10
  7. arenasize = {155, 130}
  8.  
  9. enemies = {
  10. "Ink!trio"
  11. }
  12.  
  13. enemypositions = {
  14. {0, 0}
  15. }
  16.  
  17. sparecount = 0
  18. -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
  19. possible_attacks = {"Inkcomic"} -- Inkcomic
  20.  
  21. function EncounterStarting()
  22. Player.name = "Tony"
  23. Player.lv = 20
  24. Player.hp = 99
  25. Inventory.AddCustomItems({"Choc Sw Cup","Ramen","Burger w Ex Pik","Cookie"}, {0, 0, 0, 0})
  26. Inventory.SetInventory({"Choc Sw Cup", "Ramen", "Burger w Ex Pik","Cookie", "Cookie", "Cookie", "Cookie"})
  27. -- If you want to change the game state immediately, this is the place.
  28. end
  29.  
  30. function EnemyDialogueStarting()
  31. enemies[1].Call("ResetSprite")
  32. end
  33.  
  34. function EnemyDialogueEnding()
  35. -- Good location to fill the 'nextwaves' table with the attacks you want to have simultaneously.
  36. end
  37.  
  38. function DefenseEnding() --This built-in function fires after the defense round ends.
  39. end
  40.  
  41. function HandleSpare()
  42. if sparecount == 0 then
  43. sparecount = sparecount + 1
  44. Audio.Stop()
  45. enemies[1].SetVar('currentdialogue',{"[func:setup][voice:sans]You...", "[func:SetSprite,Ink_Gabe_ok][voice:sans]Your here...", "[func:SetSprite,Ink_Gabe_ok][voice:sans]I see now...", "[func:SetSprite,Ink_Gabe_Hrm][voice:sans]Its time to end this...", "[func:SetSprite,Ink_Gabe_ohno][voice:sans]BEFORE ANYMORE AUs\nARE DESTROYED\nAT YOUR HAND!"})
  46. elseif sparecount == 1 then
  47. Audio.LoadFile("YEET")
  48. enemies[1].SetVar('currentdialogue',{"[voice:sans]you... heh heh.", "[func:SetSprite,Ink_Gabe_okk][voice:sans]Destroyed them\nall!", "[func:SetSprite,Ink_Gabe_ok][voice:sans]All my hard work\n[func:SetSprite,Ink_Gabe_okk][w:10]Gone like that!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comictale_Gabe][w:3][voice:sans]WANNA HAVE A\nCAT TIME?!"})
  49. nextwaves = {"Comictale"}
  50. sparecount = sparecount + 1
  51. elseif sparecount == 2 then
  52. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_Patience][voice:sans]You have\nno [color:42fcff]PATIENCE...", "[func:SetSprite,Ink_Gabe_Patience_ok][voice:sans]You gave them\nno chance...\n[w:15]to defeat you", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comicswap_Gabe][voice:Comicswap_Gabe]MEAW HAW HAW!", "THE GALLANT GABE WILL\nBRING YOU KINDNESS!"})
  53. nextwaves = {"Comicswap"}
  54. sparecount = sparecount + 1
  55. elseif sparecount == 3 then
  56. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_Bravery][voice:sans]You have no \n[color:fca600]BRAVERY...", "[func:SetSprite,Ink_Gabe_Bravery_DIE][voice:sans]You Stabbed them\nand ran from the\nconsequences...", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/ReaperComic_Gabe][w:3][voice:sans]D[w:5]I[w:5]E!"})
  57. sparecount = sparecount + 1
  58. nextwaves = {"Reapercomic"}
  59. wavetimer = 20
  60. elseif sparecount == 4 then
  61. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_Kindness][voice:sans]You have no \n[color:00c000]kindness...", "[func:SetSprite,Ink_Gabe_Kindness_e][voice:sans]You felt nothing when\nyou killed\nthem", "[voice:sans][func:SetSprite,Ink_Gabe_Kindness_WHY]Why did you do it", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comicfell_Gabe][voice:sans]Now you will feel\nTRUE PAIN!"})
  62. sparecount = sparecount + 1
  63. nextwaves = {"Comicfell"}
  64. elseif sparecount == 5 then
  65. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_per][voice:sans]You Havent \n[color:d535d9]PERSEVERENCE...", "[func:SetSprite,Ink_Gabe_per_mad][voice:sans]You Toyed with them\nuntil you grew\ntired of them...", "[func:SetSprite,Ink_Gabe_per_angy][voice:sans]It SICKENS ME!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Outercomic_Gabe][voice:sans]My turret will\nDESTROY YOU!", "BLACK HOLE ACTIVATE!"})
  66. sparecount = sparecount + 1
  67. nextwaves = {"Outercomic"}
  68. elseif sparecount == 6 then
  69. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_integ][voice:sans]You have abosolutly\nno [color:03cff]INTEGRITY...", "[func:SetSprite,Ink_Gabe_integ_eh][voice:sans]You lied to\nthem about who\nyou were...", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comicshift/Comicshift_Gabe_1][voice:Comicshift_Gabe]Sorry Human...", "[voice:Comicshift_Gabe]No...\n[func:SetSprite,GabeAUs/Comicshift/Comicshift_Gabe_2][w:5]whatever you\nare.", "[func:SetSprite,GabeAUs/Comicshift/Comicshift_Gabe_3][voice:Comicshift_Gabe]YOU DESERVE THIS!"})
  70. sparecount = sparecount + 1
  71. nextwaves = {"Comicshift"}
  72. elseif sparecount == 7 then
  73. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comicerror_Gabe][voice:sans]H-HeYA PaaLlYY!", "[func:SetSprite,GabeAUs/Comicerror_Gabe_So][voice:sans]Ink KiNDa MaDe\nMe sO..."})
  74. sparecount = sparecount + 1
  75. nextwaves = {"Error1"}
  76. elseif sparecount == 8 then
  77. enemies[1].SetVar('currentdialogue',{"[func:SetSprite,GabeAUs/Comicerror_Gabe_no][voice:sans]Kiid I d-DoNT\nWaNa FiGht yA!"})
  78. sparecount = sparecount + 1
  79. nextwaves = {"Error2"}
  80. elseif sparecount == 9 then
  81. enemies[1].SetVar('currentdialogue',{"[voice:sans]If ThATs HoW iT Is...", "[func:SetSprite,GabeAUs/Comicerror_Gabe_evil][voice:sans]HAHAHAHAHAH\nAHAHAHAHAHA\nHAHAHAHA\nHAHAHA"})
  82. sparecount = sparecount + 1
  83. nextwaves = {"Error3", "Error1"}
  84. elseif sparecount == 10 then
  85. enemies[1].SetVar('currentdialogue',{"[voice:sans]I'll let Ink back...", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_Justice][voice:sans]Well that was\nwierd...", "[voice:sans][func:SetSprite,Ink_Gabe_Justice_OK]ANYWAY!\nYou have no\n[color:ffff00]JUSTICE...", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comicdust/Comicdust_Gabe_Heh][voice:sans]Heh heh...", "[func:SetSprite,GabeAUs/Comicdust/Comicdust_Gabe_Ha][voice:sans]HA HA HA HA\nHA HA HA HA\nHA HA HA HA\nHA HA HA HA HA\nHA HA HA HA![func:SetSprite,GabeAUs/Comicdust/Comicdust_Gabe]"})
  86. sparecount = sparecount + 1
  87. nextwaves = {"Comicdust", "Comicdust_Platforms"}
  88. elseif sparecount == 11 then
  89. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe][voice:sans]Just Leave!\nYou can't kill\nme!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Horrorcomic_Gabe][voice:sans]ONE HEAD CAKE\nCOMIN RIGHT\nUP!"})
  90. sparecount = sparecount + 1
  91. nextwaves = {"Horrorcomic", "Horrorcomic_Sprites"}
  92. elseif sparecount == 12 then
  93. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_ohno][voice:ANGRY][color:ff0000]L[w:4]A[w:4]S[w:4]T [w:4]C[w:4]H[w:4]A[w:4]N[w:4]C[w:4]E[w:4]!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Altercomic_Gabe][voice:Altercomic_Gabe]Leave this\nplace at\nonce!"})
  94. sparecount = sparecount + 1
  95. nextwaves = {"Altercomic"}
  96. elseif sparecount == 13 then
  97. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe][voice:sans]Why are you\n [voice:ANGRY][color:ff0000]SO STUPID!", "[voice:Sans]Just [voice:ANGRY][color:ff0000]GO!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comictwist_Gabe][voice:Twist_Gabe]Welcome to\nour new show!", "[voice:Twist_Gabe]Attack of the\nkiller[w:30][color:ff0000] HUMAN!"})
  98. sparecount = sparecount + 1
  99. nextwaves = {"Comictwist"}
  100. elseif sparecount == 14 then
  101. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_ohno][voice:sans]TIME TO\n[color:ff0000][voice:ANGRY]END THIS!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Rittale_Gabe][voice:Rit]HOI!", "[voice:Rit]U WANNA HAV\nA BAD RIT?!"})
  102. Audio.LoadFile("SPEED")
  103. sparecount = sparecount + 1
  104. nextwaves = {"Rittale", "Rittale2"}
  105. elseif sparecount == 15 then
  106. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_oh][voice:sans]Oh...", "[func:SetSprite,Ink_Gabe_oh2][voice:sans]Im sorry you had to see\nthat au...", "[voice:sans]Ok,[w:15] NOW\nITS TIME TO\nDIE!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Killercomic_Gabe][voice:sans]AHAHAHAHAHA\nAHAHAHAHAHA\nAHAHAHAHAHA\nWELCOME TO HELL!"})
  107. sparecount = sparecount + 1
  108. nextwaves = {"Killercomic"}
  109. elseif sparecount == 16 then
  110. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_alive][voice:sans]Your...?\nALIVE?!", "[func:SetSprite,Ink_Gabe][voice:sans]Cool", "[func:SetSprite,Ink_Gabe_IAN][voice:sans]giVe\nup Ian =)!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Echocomic_Gabe][voice:Echocomic_Gabe]Hello anomoly.", "[voice:Echocomic_Gabe]I have come\nto end you.", "[voice:Echocomic_Gabe]Goodbye."})
  111. sparecount = sparecount + 1
  112. nextwaves = {"Echocomic"}
  113. elseif sparecount == 17 then
  114. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_ohno][voice:sans]ok!\nIM SICK OF\nYOUR S**T!", "[func:SetSprite,Ink_Gabe_ohno][voice:sans]IF YOU GET HIT\nTHIS TURN...\nheh heh", "[voice:sans]ERROR WILL\nCRASH THE\n'FIGHT!'", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Undying_Gabe][voice:Undying]Your going to have\nto try a\nlittle harder\nthan THAT!"})
  115. sparecount = sparecount + 1
  116. nextwaves = {"Undying"}
  117. elseif sparecount == 18 then
  118. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe_alive][voice:sans]Ok i need\nto think now...", "[func:SetSprite,Ink_Gabe]In a few turns\nI will use\nmy special\nattack!", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comicspin_Gabe][voice:ANGRY]WELCOME TO\nMY SPECIAL\nHELL!"})
  119. sparecount = sparecount + 1
  120. nextwaves = {"Comicspin"}
  121. elseif sparecount == 19 then
  122. enemies[1].SetVar('currentdialogue',{"[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,Ink_Gabe][voice:sans]My special attck\nis charged...", "*Deep breath*\nOk...\nnext turn...", "[noskip][func:SetSprite,swich_one][w:3][func:SetSprite,swich_two][w:3][func:SetSprite,swich_three][w:3][func:SetSprite,swich_four][w:3][func:SetSprite,swich_five][w:3][func:SetSprite,GabeAUs/Comicspinswap_Gabe][voice:sans]This is...", "R E V E N G E"})
  123. sparecount = sparecount + 1
  124. nextwaves = {"Comicspinswap"}
  125. elseif sparecount == 20 then
  126. enemies[1].SetVar('currentdialogue',{"He He"})
  127. sparecount = sparecount + 1
  128. nextwaves = {"ERRORERROEEORRROEERROOOR"}
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. end
  137. State("ENEMYDIALOGUE")
  138. end
  139.  
  140. function HandleItem(ItemID)
  141. if ItemID == "CHOC SW CUP" then
  142. Player.Heal(99)
  143. BattleDialog({"You ate the Chocolate Vanila\nCupcake."})
  144. elseif ItemID == "RAMEN" then
  145. Player.Heal(90)
  146. BattleDialog({"You Cook The Ramen...", "You put it in the\nboiling water...", ".[w:5].[w:5].[w:5].[w:5].[w:5]\nIts Done", "You Healed 90 HP!"})
  147. elseif ItemID == "BURGER W EX PIK" then
  148. Player.Heal(65)
  149. BattleDialog({"You ate the Burger With Extra Pikels"})
  150. elseif ItemID == "COOKIE" then
  151. Player.Heal(40)
  152. BattleDialog({"You ate the Cookie.\nTheres a note on the\nback...", "I Made some cookies for if you\nget hungry!\n -Your friend Anne"})
  153. end
  154. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement