Trying to set it up in my game where if a character uses a special attack, a different battle music starts playing. The track would then continue to play until it finished and then the normal battle music would start again.
An example of something like this would be the special attacks in Bravely Default, after a character uses their special attack their own theme starts playing.
Has anyone ever done something like this before or know how something like this could be accomplished?
Any tips help, I ran out of ideas...
It's easy, but not doable without plugins (ok, it is doable, but kind of weird). You need a plugin that influences battle animations. If you use Yanfly's one, simply use script calls for Save bgm and Play bgm in setup actions and then use Replay bgm in Finish actions (or how it is called, the last phase)
I just play tested this out. What I did was create a common event that had a music listed under to play. Then I created a new skill that had an effect to call the common event. And that seemed to work. No plugins needed with what I did.
Edit: Eep. Nevermind. You wanted the music to revert to normal afterwards. I'm not sure how to do that without plugins I guess.
Thanks guys!
I was able to get it so the BGM music changed once the skill was activated and then was able to get it to revert back to the normal BGM once the turn finished.
I'm still not sure how to get the normal BGM to play after the special BGM finishes though it think it works well enough by just having it revert to the normal BGM at the end of the turn.
Edit: Never mind! I was actually able to get it to work using Galv's timer end events plugin and the timer. Thanks for the help!
You'd have to create some sort of timer somehow. However, the game lags tremendously when I try to do it through variables and through Set timer it crashes once the timer reaches zero 🙁