Guest User

Untitled

a guest
Dec 1st, 2019
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. music = "Theme" --Either OGG or WAV. Extension is added automatically. Uncomment (remove the two dashes) for custom music.
  2. encountertext = "Your flesh begins to crawl." --Modify as necessary. It will only be read out in the action select screen.
  3. nextwaves = {"bullettest_chaserorb"}
  4. wavetimer = 4.0
  5. arenasize = {155, 130}
  6.  
  7. enemies = {
  8. "Him"
  9. }
  10.  
  11. enemypositions = {
  12. {0, 0}
  13. }
  14.  
  15. -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
  16. possible_attacks = {"bullettest_bouncy", "bullettest_chaserorb", "bullettest_touhou"}
  17.  
  18. function EncounterStarting()
  19. Inventory.AddCustomItems({"Ramen","Sushi",},{0,0})
  20. Inventory.SetInventory({"Ramen","Sushi"})
  21. -- If you want to change the game state immediately, this is the place.
  22. end
  23.  
  24. function EnemyDialogueStarting()
  25. -- Good location for setting monster dialogue depending on how the battle is going.
  26. end
  27.  
  28. function EnemyDialogueEnding()
  29. -- Good location to fill the 'nextwaves' table with the attacks you want to have simultaneously.
  30. nextwaves = { possible_attacks[math.random(#possible_attacks)] }
  31. end
  32.  
  33. function DefenseEnding() --This built-in function fires after the defense round ends.
  34. encountertext = RandomEncounterText() --This built-in function gets a random encounter text from a random enemy.
  35. end
  36.  
  37. function HandleSpare()
  38. BattleDialogue = ("You have nowhere\nleft to run.")
  39. end
  40.  
  41. function HandleItem(ItemID)
  42.  
  43. if (ItemID == "RAMEN") then
  44. if Player.hp <= 20 then
  45. Player.Heal(20)
  46. BattleDialog({"You ate the Ramen. Your HP\nwas maxed out!"})
  47. end
  48.  
  49. if (ItemID == "SUSHI") then
  50. if Player.hp <= 11 then
  51. Player.Heal(10)
  52. BattleDialog({"You ate the Sushi.\nYou recovered 10 HP!"})
  53. elseif Player.hp < 20 then
  54. Player.Heal(10)
  55. BattleDialog({"You ate the Sushi. Your HP\nwas maxed out!"})
  56. end
Advertisement
Add Comment
Please, Sign In to add comment