Advertisement
Guest User

Check Death Example

a guest
Mar 13th, 2021
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1. encountertext = "Poseur strikes a pose!"
  2. nextwaves = {"bullettest_chaserorb"}
  3. wavetimer = 4.0
  4. arenasize = {155, 130}
  5.  
  6. enemies = {
  7. "floweyx"
  8. }
  9.  
  10. autolinebreak = true
  11.  
  12. enemypositions = {
  13. {0, 0}
  14. }
  15.  
  16. possible_attacks = {"bullettest_bouncy", "bullettest_chaserorb", "bullettest_touhou"}
  17.  
  18. function Update()
  19.     Player.CheckDeath() -- ???
  20. end
  21.  
  22. function EncounterStarting()
  23.     -- If you want to change the game state immediately, this is the place.
  24. end
  25.  
  26. function EnemyDialogueStarting()
  27.     -- Good location for setting monster dialogue depending on how the battle is going.
  28. end
  29.  
  30. function EnemyDialogueEnding()
  31.     nextwaves = { possible_attacks[math.random(#possible_attacks)] }
  32. end
  33.  
  34. function DefenseEnding() --This built-in function fires after the defense round ends.
  35.     Player.ForceAttack(1, 55)
  36.     State("DEFENDING")
  37.     encountertext = RandomEncounterText()
  38. end
  39.  
  40. function HandleSpare()
  41.     State("ENEMYDIALOGUE")
  42. end
  43.  
  44. function HandleItem(ItemID)
  45.     BattleDialog({"Selected item " .. ItemID .. "."})
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement