MZ [Solved] Enemy not showing victory animation on Battlecore VisuStella MZ

Hello everyone, I'm using Battlecore VisuStella to animate enemies with sideview spritesheets. It's working fine already, the enemy has an idle animation (first 3 frames) attack animation (first 6 frames), etc.

However, I noticed that when the enemy wins, it returns to his idle animation instead of the victory animation.

Is there a way to force this victory animation through command plugins?

So, in short, my problem is. When the enemy wins, it plays the idle.png instead of the victory.png.
I don't understand the question.

If the enemy wins, you shouldn't see anything, it should go immediately to Game Over. So how are you continuing to see any enemies doing anything?
It doesn't go to game over instantly, it appears "Player has been defeated" first (and the enemy in idle position, when it should be on victory position). And, after that, the game just returns to the map with my player with 1 HP.
It sounds like you're not using the default encounter system, you're using events with the Battle Processing command and Can Lose selected. Either that or you've modified your battle system via plugins - that's the information we need you to tell us.

In any case, you can try this. Give your troop a troop event with the condition of all the actors hp <= 0.

Inside all the conditionals, enter the Script command
Code:
$gameTroop.aliveMembers().forEach(enemy => enemy.requestMotion("victory"));

That's presuming the Battle Core ties enemies with SV sprites into the same methods.

You'll need to install HimeWorks' End Phase Triggers to allow the troop event to trigger before your party defeat.
Thank you so much! This code solved my problem, now the enemy plays the victory animation =)

Yes, the game over screen I noticed then it appears when I remove the "Can lose" option.
This thread is closed due to being reported as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/solved-enemy-not-showing-victory-animation-on-battlecore-visustella-mz.168844/