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?
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.
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.
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.
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.