Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- music = "Muffet" --Always OGG. Extension is added automatically. Remove the first two lines for custom music.
- encountertext = "Jaiden traps you in a strange \npurple web!" --Modify as necessary. It will only be read out in the action select screen.
- nextwaves = {"bullettest_chaserorb"}
- wavetimer = 12.0
- arenasize = {155, 130}
- enemies = {
- "muffet"
- }
- enemypositions = {
- {0, 0}
- }
- sparecount = 0
- -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
- possible_attacks = {"bullettest_purpleheart"}
- function EncounterStarting()
- -- If you want to change the game state immediately, this is the place.
- Player.name = "Frisk"
- Player.lv = 20
- Player.hp =(99)
- require "Animations/muffet"
- State("ENEMYDIALOGUE")
- end
- currentframe = 0
- function Update()
- currentframe = currentframe + 1
- if(currentframe == 2) then
- UpdateMuffet()
- currentframe = 0
- end
- end
- SetGlobal("intro", true)
- SetGlobal("items", 8)
- function EnemyDialogueStarting()
- -- Good location for setting monster dialogue depending on how the battle is going.
- local intro = GetGlobal("intro")
- if intro == true then
- enemies[1].SetVar('currentdialogue', {"Hey, Stupid! \nYou do know you \nhave to pay the \nPrice right?"})
- SetGlobal("intro", false)
- State("ACTIONSELECT")
- end
- end
- function EnemyDialogueEnding()
- -- Good location to fill the 'nextwaves' table with the attacks you want to have simultaneously.
- -- This example line below takes a random attack from 'possible_attacks'.
- if GetGlobal("phase") == 0 then
- nextwaves = { "waverandom" }
- elseif GetGlobal("phase") == 1 then
- nextwaves = { "wave1" }
- elseif GetGlobal("phase") == 2 then
- nextwaves = { "wave3" }
- elseif GetGlobal("phase") == 3 then
- nextwaves = { "purple_bullets" }
- elseif GetGlobal("phase") == 4 then
- nextwaves = { "wave4", "bullets" }
- elseif GetGlobal("phase") == 5 then
- nextwaves = { "wave5", "midbot_knife" }
- elseif GetGlobal("phase") == 6 then
- nextwaves = { "purple_bullets", "midbot_knife" }
- elseif GetGlobal("phase") == 7 then
- nextwaves = { "wave8", "knife_warning" }
- elseif GetGlobal("phase") == 8 then
- nextwaves = { "wave7", "middle_knife" }
- elseif GetGlobal("phase") == 9 then
- nextwaves = { "purple_knife", "middle_knife" }
- elseif GetGlobal("phase") == 10 then
- nextwaves = { "purple_knife", "middle_knife", "bullets" }
- elseif GetGlobal("phase") == 11 then
- nextwaves = { "waverandom", "bullets" }
- elseif GetGlobal("phase") == 12 then
- nextwaves = { "waverandom", "knife_warning" }
- elseif GetGlobal("phase") == 13 then
- nextwaves = { "waverandom", "knife_warning", "bullets" }
- elseif GetGlobal("phase") == 14 then
- nextwaves = { "fastrandom" }
- elseif GetGlobal("phase") == 15 then
- nextwaves = { "wave15", "fastmid_knife" }
- elseif GetGlobal("phase") == 16 then
- nextwaves = { "wave16", "fasttop_knife", "fastbot_knife" }
- elseif GetGlobal("phase") == 17 then
- nextwaves = { "purple_bullets", "bullets", "bullets", "bullets", "bullets" }
- elseif GetGlobal("phase") == 18 then
- nextwaves = { "faster_random" }
- elseif GetGlobal("phase") == 19 then
- nextwaves = { "faster_random", "bullets", "bullets", "bullets" }
- elseif GetGlobal("phase") == 20 then
- nextwaves = { "knife_warning", "faster_random" }
- elseif GetGlobal("phase") == 21 then
- nextwaves = { "knife_warning", "faster_random", "bullets" }
- elseif GetGlobal("phase") == 22 then
- nextwaves = { "knife23", "2knife23", "bullets" }
- elseif GetGlobal("phase") == 23 then
- wavetimer = 36.0
- nextwaves = { "faketopknife", "deathbotknife", "deathbotknife2", "deathbotknife3", "deathbotknife4", "deathmidknife2", "deathmidknife3", "deathtopknife2", "deathtopknife3", "fakebotknife3", "fakebotknife4", "fakebotknife5", "fakebotknife6", "fakemidknife2", "fakemidknife3", "fakemidknife4", "fakemidknife5", "fakemidknife6", "fakemidknife7", "faketopknife2", "faketopknife3", "faketopknife4", "faketopknife5", "faketopknife6", "faketopknife7", "fakemidknife8", "deathbotknife5", "deathmidknife4", "faketopknife8", "fakebotknife7", "deathtopknife4", "fakemidknife9", "fakebotknife8", "faketopknife9", "deathmidknife5", "fakebotknife9", "deathbotknife6", "faketopknife10", "fakemidknife10", "faketopknife11", "deathmidknife6", "fakebotknife10", "deathtopknife5", "fakemidknife11", "fakebotknife11", "faketopknife12", "fakemidknife12", "deathbotknife7", "lastbullettest", "lastspider" }
- end
- end
- function DefenseEnding() --This built-in function fires after the defense round ends.
- encountertext = RandomEncounterText() --This built-in function gets a random encounter text from a random enemy.
- end
- function HandleSpare()
- if sparecount == 0 then
- sparecount = sparecount + 1
- elseif sparecount == 1 then
- enemies[1].SetVar('currentdialogue',{"So you refused \nto pay?", "That's fine deary \nI'll just take \nyour SOUL instead \nAhAhAhA~~ "})
- sparecount = sparecount + 1
- nextwaves = { "wave1" }
- elseif sparecount == 2 then
- enemies[1].SetVar('currentdialogue',{"Why your soul? \nWell i was paid to get\nit.", "Well...", "it's going to be \nharder every \ntime you try to \nspare me AhAhAhA~~~"})
- sparecount = sparecount + 1
- nextwaves = { "wave3" }
- elseif sparecount == 3 then
- enemies[1].SetVar('currentdialogue',{"EAT BULLET!"})
- sparecount = sparecount + 1
- nextwaves = { "purple_bullets" }
- elseif sparecount == 4 then
- enemies[1].SetVar('currentdialogue',{"You Want to know why\ni was imprisoned?"})
- sparecount = sparecount + 1
- elseif sparecount == 5 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]Attack or\nRun Away!"})
- sparecount = sparecount + 1
- elseif sparecount == 6 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]What are\nyou proving\nthis way?"})
- sparecount = sparecount + 1
- elseif sparecount == 7 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]Fight me\not leave!"})
- sparecount = sparecount + 1
- elseif sparecount == 8 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]Stop it."})
- sparecount = sparecount + 1
- elseif sparecount == 9 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]Stop ooking\nat me\nthat way!"})
- sparecount = sparecount + 1
- elseif sparecount == 10 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]Go away!"})
- sparecount = sparecount + 1
- elseif sparecount == 11 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]..."})
- sparecount = sparecount + 1
- elseif sparecount == 12 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]...\n..."})
- sparecount = sparecount + 1
- elseif sparecount == 13 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]...\n...\n..."})
- sparecount = sparecount + 1
- elseif sparecount == 14 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]I know\nyou want\nto go\nhome but..."})
- sparecount = sparecount + 1
- elseif sparecount == 15 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]But please go upstairs...\nnow"})
- sparecount = sparecount + 1
- elseif sparecount == 16 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]I promise...\nI will take good\ncare of you here.", "[voice:toriel]I know we do not have\nmuch but...", "[voice:toriel]We can have a good life\nhere!"})
- sparecount = sparecount + 1
- elseif sparecount == 17 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]Why are you\nmmaking this so\ndiffacult!", "[voice:toriel]plese...\ngo upstairs now!"})
- sparecount = sparecount + 1
- elseif sparecount == 18 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]........"})
- sparecount = sparecount + 1
- elseif sparecount == 19 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel].....Ha HA!", "[voice:toriel]Pathetic,\nis it not?", "[voice:toriel]I cannot save even\na single\nchild."})
- sparecount = sparecount + 1
- elseif sparecount == 20 then
- enemies[1].SetVar('currentdialogue',{"[voice:toriel]...", "[voice:toriel]No I understand,\n The RUINS are very\nsmall once you get\nused to them...", "[voice:toriel]It whould not be correct for you\nto grow up in\nsuch a place.", "[voice:toriel]My Expectations\nmy Lonelyness\nMy fear", "[voice:toriel]For you my child", "[voice:toriel]I will put\nthem aside."})
- sparecount = sparecount + 1
- enemies[1].SetVar("def" , -9999999999999999999999)
- enemies[1].SetVar("canspare" , true)
- end
- State("ENEMYDIALOGUE")
- end
- function HandleItem(ItemID)
- if GetGlobal("items") > 0 then
- SetGlobal("items", GetGlobal("items")-1)
- Player.Heal(20)
- BattleDialog({"You ate a spider donut \nfrom an alternate universe!\nYou recovered 20 HP!", "" .. GetGlobal("items") .. " spider donuts remaining."})
- else
- BattleDialog({"You're out of spider donuts!"})
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement