(Visustella)How to run common event before battle victory?(in battle)

I use Visustella Battle core.
Can I run common event before a battle victory with a specific enemy or troop?
I want to play action sequence and animation before a BOSS enemy's defeat.
The common event should be played in the battle,not on the map.
I’m not very familiar with writing JS scripts. I tried adding these notetags in the Troop page, but it seems that neither <JS Battle Victory> nor <JS Battle Defeat> is working. Could anyone let me know if I’m doing something wrong?😢
85F4F5C50AB1DEBAE1ADA53C5BBCC346.png
it can even be done without any plugin.

You'll need two troop events in that troop.

one triggered on turn 0 to give the boss an immortal state.

one triggered by boss HP=0 that does whatever you want pre-death before removing the immortal state (which will make the boss die at HP=0)
it can even be done without any plugin.

You'll need two troop events in that troop.

one triggered on turn 0 to give the boss an immortal state.

one triggered by boss HP=0 that does whatever you want pre-death before removing the immortal state (which will make the boss die at HP=0)
Thank you! But new problems come.My victory condition in battle requires reducing an enemy’s HP, MP, and TP to 0 at the same time.
I tried using the immortal state method with turn-based intervals, but this causes the enemy to remain on the battlefield for one extra turn after their HP, MP, and TP all reach zero, and only then will the event I want begin to run.If I set it to trigger immediately, the battle freezes.
how do you check for that other victory condition?

If that is done by using a plugin then sorry I can't help you further - I haven't used MZ so far and know almost nothing about its plugins. You might try to call a common event from those conditions however.

If it isn't done by plugins, please show a screenshot of whatever event you use, I might be able to combine the two.
how do you check for that other victory condition?

If that is done by using a plugin then sorry I can't help you further - I haven't used MZ so far and know almost nothing about its plugins. You might try to call a common event from those conditions however.

If it isn't done by plugins, please show a screenshot of whatever event you use, I might be able to combine the two.
Yes, I used a plugin shared by someone in another thread, which is a shame. I am currently looking for a way to adjust the display conditions of troop event pages. Perhaps if I could modify the conditions for events to be checked in real-time, that might also be a possible solution.
I think with VS Events and Movement Core you can use custom troop page conditions. So put it to moment and put a custom condition to check for hp, mp and tp to be 0.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-how-to-run-common-event-before-battle-victory-in-battle.179760/