FluffySheep291

encounter code

Sep 3rd, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.34 KB | None | 0 0
  1. music = "topone"
  2. encountertext = "You feel like you're going to have a very unsightreadable time." --Modify as necessary. It will only be read out in the action select screen.
  3. nextwaves = {"bullettest_touhou"}
  4. wavetimer = 5.0
  5. arenasize = {155, 130}
  6.  
  7. autolinebreak = true
  8.  
  9. enemies = {
  10. "poseur"
  11. }
  12.  
  13. enemypositions = {
  14. {0, 0}
  15. }
  16.  
  17. -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
  18. possible_attacks = {"attack1"}
  19.  
  20. function EncounterStarting()
  21.     Player.lv = 19
  22.     Player.hp = 92
  23.     Player.atk = 150
  24.     require "Animations/BobAnim"
  25. end
  26.  
  27. function Update()
  28.     AnimateRob()
  29. end
  30.  
  31. function EnemyDialogueStarting()
  32.     -- Good location for setting monster dialogue depending on how the battle is going.
  33. end
  34.  
  35. function EnemyDialogueEnding()
  36.     -- Good location to fill the 'nextwaves' table with the attacks you want to have simultaneously.
  37.     nextwaves = { possible_attacks[math.random(#possible_attacks)] }
  38. end
  39.  
  40. function DefenseEnding() --This built-in function fires after the defense round ends.
  41.     encountertext = RandomEncounterText() --This built-in function gets a random encounter text from a random enemy.
  42. end
  43.  
  44. function HandleSpare()
  45.     State("ENEMYDIALOGUE")
  46. end
  47.  
  48. function HandleItem(ItemID)
  49.     BattleDialog({"Selected item " .. ItemID .. "."})
  50. end
Advertisement
Add Comment
Please, Sign In to add comment