-- A basic encounter script skeleton you can copy and modify for your own creations.
music = "music" -- Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
deathmusic = "lol_u_ded"
encountertext = "Citrus Is Ready To Train!" -- Modify as necessary. It will only be read out in the action select screen.
nextwaves = { "bullettest_chaserorb" }
wavetimer = 10.5
arenasize = { 150 , 100 }
enemies = {
"poseur"
}
enemypositions = {
{ 0 , 3 }
}
-- 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" , "bullettest_chaserorb" , "bullettest_touhou" }
function EncounterStarting( )
require "Animations/CitrusAnimation"
Inventory.AddCustomItems ( { "Cinnamon Bun" } , { 0 } )
Inventory.Setinventory ( { "Cinnamon Bun" } )
end
function EnemyDialogueStarting( )
-- Good location for setting monster dialogue depending on how the battle is going.
end
function Update( )
AnimateCitrus( )
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 == "CINNAMON BUN" then
Player.Heal ( 20 )
end
LS0gQSBiYXNpYyBlbmNvdW50ZXIgc2NyaXB0IHNrZWxldG9uIHlvdSBjYW4gY29weSBhbmQgbW9kaWZ5IGZvciB5b3VyIG93biBjcmVhdGlvbnMuCgptdXNpYyA9ICJtdXNpYyIgLS1FaXRoZXIgT0dHIG9yIFdBVi4gRXh0ZW5zaW9uIGlzIGFkZGVkIGF1dG9tYXRpY2FsbHkuIFVuY29tbWVudCBmb3IgY3VzdG9tIG11c2ljLgpkZWF0aG11c2ljID0gImxvbF91X2RlZCIKZW5jb3VudGVydGV4dCA9ICJDaXRydXMgSXMgUmVhZHkgVG8gVHJhaW4hIiAtLU1vZGlmeSBhcyBu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dG8gZmlsbCB0aGUgJ25leHR3YXZlcycgdGFibGUgd2l0aCB0aGUgYXR0YWNrcyB5b3Ugd2FudCB0byBoYXZlIHNpbXVsdGFuZW91c2x5LgogICAgbmV4dHdhdmVzID0geyBwb3NzaWJsZV9hdHRhY2tzW21hdGgucmFuZG9tKCNwb3NzaWJsZV9hdHRhY2tzKV0gfQplbmQKCmZ1bmN0aW9uIERlZmVuc2VFbmRpbmcoKSAtLVRoaXMgYnVpbHQtaW4gZnVuY3Rpb24gZmlyZXMgYWZ0ZXIgdGhlIGRlZmVuc2Ugcm91bmQgZW5kcy4KICAgIGVuY291bnRlcnRleHQgPSBSYW5kb21FbmNvdW50ZXJUZXh0KCkgLS1UaGlzIGJ1aWx0LWluIGZ1bmN0aW9uIGdldHMgYSByYW5kb20gZW5jb3VudGVyIHRleHQgZnJvbSBhIHJhbmRvbSBlbmVteS4KZW5kCgpmdW5jdGlvbiBIYW5kbGVTcGFyZSgpCiAgICBTdGF0ZSgiRU5FTVlESUFMT0dVRSIpCmVuZAoKZnVuY3Rpb24gSGFuZGxlSXRlbShJdGVtSUQpCiAgICBpZiBJdGVtSUQgPT0gIkNJTk5BTU9OIEJVTiIgdGhlbgoJUGxheWVyLkhlYWwgKDIwKQplbmQ=
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