Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- A basic encounter script skeleton you can copy and modify for your own creations.
- music = "knifetrousle" --Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
- encountertext = "Chara bloquea el camino!" --Modify as necessary. It will only be read out in the action select screen.
- nextwaves = {}
- arenasize = {155, 130}
- enemies = {
- "Chara (es)"
- }
- enemypositions = {
- {0, 0}
- }
- attacknum = 0
- caja = 0
- -- 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_chaserorb"}
- function EncounterStarting()
- -- If you want to change the game state immediately, this is the place.
- require "Animations/animchara"
- Player.name = "FRISK"
- end
- function EnemyDialogueStarting()
- -- Good location for setting monster dialogue depending on how the battle is going.
- end
- function EnemyDialogueEnding()
- attacknum = attacknum + 1
- if attacknum == 1 then
- nextwaves = {"wave1"}
- elseif attacknum == 2 then
- nextwaves = {"wave2"}
- end
- end
- function DefenseEnding() --This built-in function fires after the defense round ends.
- end
- function HandleSpare()
- State("ENEMYDIALOGUE")
- end
- function HandleItem(ItemID)
- BattleDialog({"Selected item " .. ItemID .. "."})
- end
Add Comment
Please, Sign In to add comment