fork download
  1. -- A basic encounter script skeleton you can copy and modify for your own creations.
  2.  
  3. music = "music" --Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
  4. deathmusic = "lol_u_ded"
  5. encountertext = "Citrus Is Ready To Train!" --Modify as necessary. It will only be read out in the action select screen.
  6. nextwaves = {"bullettest_chaserorb"}
  7. wavetimer = 10.5
  8. arenasize = {150, 100}
  9.  
  10. enemies = {
  11. "poseur"
  12. }
  13.  
  14. enemypositions = {
  15. {0, 3}
  16. }
  17.  
  18. -- A custom list with attacks to choose from. Actual selection happens in EnemyDialogueEnding(). Put here in case you want to use it.
  19. possible_attacks = {"bullettest_bouncy", "bullettest_chaserorb", "bullettest_touhou"}
  20.  
  21. function EncounterStarting()
  22. require "Animations/CitrusAnimation"
  23. Inventory.AddCustomItems ({"Cinnamon Bun"}, {0})
  24. Inventory.Setinventory({"Cinnamon Bun"})
  25. end
  26.  
  27. function EnemyDialogueStarting()
  28. -- Good location for setting monster dialogue depending on how the battle is going.
  29. end
  30.  
  31. function Update()
  32. AnimateCitrus()
  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. if ItemID == "CINNAMON BUN" then
  50. Player.Heal (20)
  51. end
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
-- A basic encounter script skeleton you can copy and modify for your own creations.
^
Main.java:36: error: unclosed character literal
    -- Good location to fill the 'nextwaves' table with the attacks you want to have simultaneously.
                                 ^
Main.java:36: error: unclosed character literal
    -- Good location to fill the 'nextwaves' table with the attacks you want to have simultaneously.
                                           ^
Main.java:37: error: illegal character: '#'
    nextwaves = { possible_attacks[math.random(#possible_attacks)] }
                                               ^
4 errors
stdout
Standard output is empty