Battler: Expand battle music type and event system #137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on #136 , supersedes #135
What does this PR do?
This PR does multiple things: It changes the way music files for battles are loaded, adds a new system that can change music and play sound effects based on battle events, introduces two new settings and some other more general improvements. Lets go over each one in detail.
New Music Load System
The main change all other changes are building on is a rework of how the game loads audio files for battles. Before pretty much all music files were in the same folder and the game just checked this folder for a file, using fallbacks if necessary.
Now there is a new folder for music in "Audio/BGM" called "Types" which then includes more folders, one for each battle type and event supported.
Battle Types
Battle Events
If you use these changes and don't change the settings, you won't notice any difference as the game will only check these folders for valid files if told to do so. To tell the game to load from these folders let's talk about the first new setting, Battle Music Style.
New Game Setting: Battle Music Style
The first new setting is called "Battle Music Styles" and allows the user to swap between different music styles, changing the music used in battles based on types and events. The different styles are defined in an array in the "Settings" script and consist of:
Default Battle Music Styles
For now the following battle music styles are included in the game:
More styles can easily be added in the future. If you want to know how to loop your music files correctly, you can checkout the following tutorial:
https://forums.rpgmakerweb.com/index.php?threads/make-looping-bgm-part-1-ogg-vorbis.10987/
(Little outdated, some stuff in audacity moved around but the rest is the same)
New Game Setting: Play Low Health
One of the newly supported events is low health. If a style includes a music track for low health, it will be played when one of your active Pokemon is in red health. It there is no music variant for low health, it will fall back to the generic beeping sound. The setting "Play Low Health" is for everyone who get annoyed or doesn't like the beeping in styles without a music variant.
When turned on, low health beeping will play. If turned off, it won't. The music variants of low health can not be turned off.
Other changes
Open Todos