MV Making a flashy boss finish (Common Event, Yanfly, other plugins and script calls?)

So ive been trying to do a special flashy screen whenever you defeat bosses in my game, so far its just "kind of" working

here's how it looks in its current state rn


as you can see the problem is that the timing is off among other small details
here's how its set up currently:

1755962150073.png

the way i want it to work is the moment the attack hits and the enemy hp is 0 all of this happens, first got the the Improved Battlebacks plugin that layers a battleback onto the battle, then it plays this common event that just slides in the letter and plays the KO voice, all the animations are supposed to be frozen while this happens however there's an issue with that wich ill clarify later

1755962371201.png

afterwards the boss's voice plays, a switch is activated that works in conjunction of a slowmo script i found which activates and slows down the game to a percent, after a few frames it returns to normal and just the end of the battle resumes

here's some of the few issues (and maybe way to find solutions)
- im using Animated SV enemies, which has enemies set up different animation on a sheet depending on actions and stuff, the boss has one set when for when it dies, problem seems that it seems to suddenly loop itself at the start for some reason, the solution i thought could be making the enemy invisible and make it instead play an animation of them falling but i think that may just make the animation appear AFTER the other one is done
- the slowmo effect applies after the animations happen, i tried to set it to earlier but that causes the KO common event to also slow down to a crawl, the solution i can think of is having a script that changes the animation rate of the Yanfly Core plugin, however im dumb and don't know scripting, there's also the issue that the slowdown just happens after the animation is done so the same issue could be presented
- last issue is that im also using Visual State FX which applies a looping animation whenever an enemy has a state, since most enemy collapse the KO state animation just vanishes after the collapse effect is done, this doesn't happen with the boss since it doesn't have collapse active, because if i do the dead animation just quickly fades out, maybe theres a way to temporarly disable the plugin? or at least the visuals states in this boss when it dies.

quite frankly im prolly flying too close into the sun, but im a visual guy and i really want to give a shot to all the cool visual stuff i wanna do before compromising or giving up on it, so far ive managed most ive wanted with the help of here so im really grateful for that.

either way, anyone got any insight on what could be done?
UPDATE: managed to do some progress though it's still not exactly as i want

i made it so the enemy becomes immortal, changes to another enemy that has no sprite and make it play an animation instead of being part of the animated enemy, however the issue still comes that it doesnt do the common event on frame, another issue is that i replaced the death animation of the enemy sheet to be just the 1st frame of the full KO animation but it doesnt play when its immortal

making the enemy immortal causes it to just idle instead and not making it immortal causes to collapse and mess up the sequence, also the normal KO state animation plays after removing the immortal status effect but there some progress at least.

bandicam_2025-08-23_12-39-04-462_online-video-cutter.com.gif


UPDATE: figured out a way to make the KO state animation not play wich is via
Code:
BattleManager.processVictory();
but the problem is now that the party doenst get the rewards and also the rest of party's animations still play after this so you hear them going on while the result screen shows, i'll play with this more and see what i can do.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-flashy-boss-finish-common-event-yanfly-other-plugins-and-script-calls.179726/