Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This is pastable. its not on the tutorial. its a example.
- -- music = "final_chance" --Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
- encountertext = "Poseur strikes a pose!" --Modify as necessary. It will only be read out in the action select screen.
- nextwaves = {"bullettest_chaserorb"}
- wavetimer = 4.0
- arenasize = {155, 130}
- require "fakeui"
- enemies = {
- "poseur"
- }
- enemypositions = {
- {0, 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_bouncy"}
- function EncounterStarting()
- -- This is the inventory change...
- Inventory.AddCustomItems({"Buttspie", "Snowman Piece", "C. Bun","Chocolate"}, {0, 0, 0, 0})
- Inventory.SetInventory({"Buttspie", "Snowman Piece", "Snowman Piece", "C. Bun", "C. Bun", "C. Bun", "C. Bun", "C. Bun"})
- end
- function EnemyDialogueStarting()
- -- Good location for setting monster dialogue depending on how the battle is going.
- end
- function EnemyDialogueEnding()
- -- Good location to fill the 'nextwaves' table with the attacks you want to have simultaneously.
- nextwaves = { possible_attacks[math.random(#possible_attacks)] }
- 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 == "PIE" then
- Player.Heal(999)
- Audio.PlaySound("eat")
- BattleDialog({"You ate the Butterschotch Pie.\rYour HP was max out!"})
- elseif ItemID == "SNOWMAN PIECE" then
- Audio.PlaySound("SeaTea")
- Player.Heal(45)
- if Player.hp == Player.maxhp then
- BattleDialog({"You ate the Snowman Piece.\rYour HP was max out!"})
- else
- BattleDialog({"You ate the Snowman Piece.\rYou recovered 45 HP!"})
- end
- elseif ItemID == "L. HERO" then
- Audio.PlaySound("LegHero")
- Player.Heal(40)
- if Player.hp == Player.maxhp then
- BattleDialog({"You ate the Legendary Hero! 4 ATK Increased!\rYour HP was max out!"})
- else
- BattleDialog({"You ate the Legendary Hero! 4 ATK Increased!\rYou recovered 40 HP!"})
- end
- elseif ItemID == "I. NOODLES" then
- Player.Heal (90)
- Audio.PlaySound("SeaTea")
- if Player.hp == Player.maxhp then
- BattleDialog({"You ate the Instant Noodles.\rYour HP was max out!"})
- else
- BattleDialog({"You ate the Instant Noodles. \rYou recovered 90 HP!"})
- end
- elseif ItemID == "STEAK" then
- Audio.PlaySound("eat")
- Player.Heal (80)
- if Player.hp == Player.maxhp then
- BattleDialog({"You ate the Face Steak! \rYour HP was max out!"})
- else
- BattleDialog({"You ate the Face Steak! \rYou recovered 80 HP!"})
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement