Advertisement
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 = "shine_on_you_crazy_diamond" --Either OGG or WAV. Extension is added automatically. Uncomment for custom music.
- encountertext = "Papyrus is sparing you." --Modify as necessary. It will only be read out in the action select screen.
- nextwaves = {"outro"}
- wavetimer = math.huge
- arenasize = {155, 130}
- enemies = {"papyrus"}
- enemypositions = {{0, 0}}
- function EncounterStarting()
- -- If you want to change the game state immediately, this is the place.
- Audio.StopAll()
- end
- function EnemyDialogueStarting()
- -- Good location for setting monster dialogue depending on how the battle is going.
- end
- function EnemyDialogueEnding()
- State("ACTIONSELECT")
- 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)
- BattleDialog({"Selected item " .. ItemID .. "."})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement