MZ 'Symphony Style' Level Up Music

Okay, this is a VERY hard thing to put into words, but basically I want a plugin that plays a base level up track, and depending on who levels up, plays different sound layers for the different actors. Basically, just check what actors levelled up, and then at the end, all play their sound layers all at once, creating a symphony of music.

Something like what is shown in this video:


I've tried fiddling with existing plugins like this one by Aloe Guvna, but no dice.

If anyone could even point me in the right direction, that would be awesome!

Thanks 🙂
MZ's audio functions by default only play one ME at a time.

Rather than mess with that and have unexpected consequences in the rest of your game, I think it's easier to use an audio editor to create the different possible permutations of tracks as separate files, then use conditionals to see which one should get played.

Are you using a plugin for a victory aftermath on the battle scene, or the default message window on the map afterward?
MZ's audio functions by default only play one ME at a time.

Rather than mess with that and have unexpected consequences in the rest of your game, I think it's easier to use an audio editor to create the different possible permutations of tracks as separate files, then use conditionals to see which one should get played.

Are you using a plugin for a victory aftermath on the battle scene, or the default message window on the map afterward?

I was also thinking the combinations method could work.

I'm using a victory aftermath, so it might be more difficult, although the plugin i mentioned can already handle playing level up music in the aftermath section.
I'm using a victory aftermath
Okay...that's not an immensely helpful answer, but I suppose I could have been more exacting in the question of my wording 😛

Which aftermath plugin are you using, because doing this would require modifying the code for it.
Which aftermath plugin are you using, because doing this would require modifying the code for it.
sorry about that! I'm using a combo of YEP_VictoryAftermath, YEP_X_AftermathLevelUp, and the aforementioned AL0E_YEP_AftermathLevelUp_SE
Try this, not tested. Paste the below into a text editor, save as a *.js file, include as a plugin beneath the Aftermath Level Up.

Code:
 var origVictoryPostLevel = BattleManager.prepareVictoryPostLevel;
BattleManager.prepareVictoryPostLevel = function()
{
    origVictoryPostLevel.call(this);

    if (this._leveledActors.length)
    {
        let actorList = this._leveledActors;
        actorList.sort((a, b) => a.name() - b.name());
        let musicName = "";
        actorList.forEach(actor => musicName += actor.name());
        Yanfly.Param.VABgmName = musicName;
    }
};

Then, in the Victory Aftermath plugin, take line 342 and cut it, pasting it after line 344 (before the closing brace).

This will look for an audio track in your BGM folder that has the names of the actors in alphabetical order. Example: HaroldLuciusTherese.ogg
Try this, not tested. Paste the below into a text editor, save as a *.js file, include as a plugin beneath the Aftermath Level Up.
Thank you! 🙂
This works so well! It's awesome as is, but is there a way to make it play after the victory music? If not, that's completely fine, because this little plugin is awesome!
Erm...when? The Yanfly plugin you're using is written to play one track, defined in the Victory BGM plugin parameter.

So of course anything is possible, but you'd have to say exactly when you want it played and stick a new function in there to change the music. By default, there is no "after the victory music" - the victory music goes back to the map music.
exactly when you want it played and stick a new function in there to change the music.
Okay, so after looking in the code, there's a spot with all the level up display functions. If possible, could you call the level up music when the level up display is called? The level up code is around line 415 of the victory aftermath plugin.
No, it's not 😉 The only thing done around line 415 is changing whether the engine prints level up information in a message window or not, there's nothing there to make it start doing so.

But I still don't really get the point - drawing the experience screen happens almost instantaneously. The only time difference between the code I gave you and what you're asking for is the length of the Cheer Wait plugin parameter (by default, a second and a half).

So unless you plan to extend that way out and make the player watch their cheering actors for several seconds just to listen to the music, I don't see the difference.
The only time difference between the code I gave you and what you're asking for is the length of the Cheer Wait plugin parameter
true, and sorry about the code mix up, I'm still learning lol
It would be nice to have the victory music play, even for a second and a half, but if you can't do it, I completely understand 🙂
I try not to back-seat dev, or at least I don't do it unless I can also offer an answer to the OP. Unfortunately that's not the case here.
I just wanted to say that this sounds like a tremendous amount of effort for a very low pay-off. Is this something that would really elevate your game to becoming something special, or could you use that time making other aspects of your game far better?

That's not to discourage you from adding fun little unnecessary bits into your game, but I would take some time to consider whether the time investment amounts to a worthy addition to the game.

Anyways, regardless, good luck with the music making.
Is this something that would really elevate your game to becoming something special, or could you use that time making other aspects of your game far better?
Honestly, I'm happy with what was provided it's fantastic, and yeah, I feel like it would make the game pretty special, even if it is a very small detail.
Since you're assembling the files in an audio editor anyway, why don't you just put the same second and a half at the beginning of all of them?

Seems like that copy and pasting would be much easier than writing new code and changing what I already gave you in order to play one file and then a second one immediately afterward.
why don't you just put the same second and a half at the beginning of all of them?
This is an amazing idea! I can't believe I didn't think of that 🤣

Original thread: https://forums.rpgmakerweb.com/threads/symphony-style-level-up-music.170090/