Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- A basic encounter script skeleton you can copy and modify for your own creations.
- music = "megalovania" --Always OGG. Extension is added automatically. Remove the first two lines for custom music.
- encountertext = "Poseur strikes a pose!" --Modify as necessary. It will only be read out in the action select screen.
- nextwaves = {"finale"}
- wavetimer = 4.0
- arenasize = {155, 130}
- enemies = {
- "poseur"
- }
- enemypositions = {
- {0, 0}
- }
- SetGlobal("intro", true)
- -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
- possible_attacks = {"Sp1", "UD", "Side Bu", "bullettest_gasterblastersRL", "bullettest_gasterblastersR", "bullettest_gasterblastersL", "Co", "blaster", "finale", "finale2", "finale3", "cos", "cross", "novawave", "orangetou", "lgb"}
- function EncounterStarting()
- -- If you want to change the game state immediately, this is the place.
- State("ENEMYDIALOGUE")
- Player.lv = 20
- Player.hp = 99
- Player.name = "Cosmo"
- end
- function EnemyDialogueStarting()
- local intro = GetGlobal("intro")
- if intro == true then
- enemies[1].SetVar('currentdialogue', {"[noskip][font:sans][waitall:2]Heya kid..", "[waitall:2][noskip][font:sans]Heh, how zit\ngoin ?", "[waitall:2][noskip][font:sans]What can I say\nyou made a pretty\nmess of\nthe underground", "[waitall:2][noskip][font:sans]Whatev, this is\nUnderfell right ?", "[waitall:2][noskip][font:sans]Here is....\n[waitall:2]Kill or be killed", "[waitall:2][noskip][font:sans]But pal, do ya\nknow what you've\n got into ?", "[waitall:2][noskip][font:sans]I like killing\n too, not blaming\nya kid", "[waitall:2][noskip][font:sans]But there is a\ndifference\nbetween us", "[noskip][font:sans][waitall:4]I don't kill[w:10]\nTHE WRONG PEOPLE", "[noskip][font:sans][waitall:6]You dirty brother\nKILLER.." })
- SetGlobal("intro", false)
- end
- end
- function EnemyDialogueEnding()
- attacknum = attacknum + 1
- if attacknum == 1 then
- nextwaves = {"finale"}
- elseif attacknum == 2 then
- nextwaves = {"finale2"}
- elseif attacknum == 3 then
- nextwaves = {"finale2"}
- attacknum = 0
- 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()
- State("ENEMYDIALOGUE")
- end
- function HandleItem(ItemID)
- if ItemID == "DOGTEST1" then
- BattleDialog({"You ate the I.Noodles !\nHP restored !"})
- Player.Heal(92)
- elseif ItemID == "DOGTEST2" then
- BattleDialog({"You ate the butterscotch pie !\n HP restored !"})
- Player.Heal(67)
- elseif ItemID == "DOGTEST3" then
- BattleDialog({"[effect:shake]You ate the W.D Gaster Cake ☟☜☹🏱 💣☜"})
- Player.Hurt(91)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment