MZ Using VS, is it possible to make Crit or hitting weaknesses Play an event

In my game, I am using both VS Weakness system and the VS Cut In Effect.
The cut-in effect is equal to having an event play a certain visual.
I need to make characters who target a weakness or land a critical hit get a Cut in affect (Or any event trigger)
This is similar to Persona 3-5

I have moved this thread from JS Plugin Releases (RMMZ) to JavaScript Plugin/Support.
So, do you want it to happen like in Persona, where the cut-in appears before the attack starts?

I guess then you'd need to do your hit and critical calculations in the skill action sequences at the very start. Then you can change the critical formula in the battle core to use those values and also use a hit formula plugin to take those results (ATT_Turan has a plugin like that). Then you can check the weakness with scripts. And if it's a critical hit or an enemy weakness you use the plugin command in the action sequence to play the cut-in.
OK I am Using VS with STB what should I look into

So, do you want it to happen like in Persona, where the cut-in appears before the attack starts?

I guess then you'd need to do your hit and critical calculations in the skill action sequences at the very start. Then you can change the critical formula in the battle core to use those values and also use a hit formula plugin to take those results (ATT_Turan has a plugin like that). Then you can check the weakness with scripts. And if it's a critical hit or an enemy weakness you use the plugin command in the action sequence to play the cut-in.
can i Do it with a VS plugin like Battle Core, Skills states Elemental status core. etc
I am open to the cut in happening after the damage is dealth
Well, if you do it after hit/damage, battlecore has an option for you to put on a switch when a critical hit happens, so you can check if that switch is on. Then it's just in the action sequence:
IF switch ON -> cut-in command

The enemy weakness can be checked with a script. But you'll have to google/ask others about that. I guess there was the target's elementRate(X) > 1, but you'll need a code for the current skill's element...'some reference'.damage.elementId or something LOOOL.
Well, if you do it after hit/damage, battlecore has an option for you to put on a switch when a critical hit happens, so you can check if that switch is on. Then it's just in the action sequence:
IF switch ON -> cut-in command

The enemy weakness can be checked with a script. But you'll have to google/ask others about that. I guess there was the target's elementRate(X) > 1, but you'll need a code for the current skill's element...'some reference'.damage.elementId or something LOOOL.
I will try that and get back to you within the next day or few days
Well, if you do it after hit/damage, battlecore has an option for you to put on a switch when a critical hit happens, so you can check if that switch is on. Then it's just in the action sequence:
IF switch ON -> cut-in command

The enemy weakness can be checked with a script. But you'll have to google/ask others about that. I guess there was the target's elementRate(X) > 1, but you'll need a code for the current skill's element...'some reference'.damage.elementId or something LOOOL.

$gameMessage.add("Magic Affinity Rates");
$gameMessage.add("Fire: " + ($gameTroop.members()[1].elementRate(2) * 100) + "%");

$gameMessage.add("Ice: " + ($gameTroop.members()[1].elementRate(3) * 100) + "%");

$gameMessage.add("Lightning: " + ($gameTroop.members()[1].elementRate(4) * 100) + "%");

$gameMessage.add("Water: " + ($gameTroop.members()[1].elementRate(5) * 100) + "%");

$gameMessage.add("Earth: " + ($gameTroop.members()[1].elementRate(6) * 100) + "%");

$gameMessage.add("Wind: " + ($gameTroop.members()[1].elementRate(7) * 100) + "%");

$gameMessage.add("Light: " + ($gameTroop.members()[1].elementRate(8) * 100) + "%");

$gameMessage.add("Darkness: " + ($gameTroop.members()[1].elementRate(9) * 100) + "%");
Well, if you do it after hit/damage, battlecore has an option for you to put on a switch when a critical hit happens, so you can check if that switch is on. Then it's just in the action sequence:
IF switch ON -> cut-in command

The enemy weakness can be checked with a script. But you'll have to google/ask others about that. I guess there was the target's elementRate(X) > 1, but you'll need a code for the current skill's element...'some reference'.damage.elementId or something LOOOL.
1701311314337.png



Found it.. One problem it doesn't take into consideration WHO Did the crit...
Can we change that??
Well, if you do it after hit/damage, battlecore has an option for you to put on a switch when a critical hit happens, so you can check if that switch is on. Then it's just in the action sequence:
IF switch ON -> cut-in command

The enemy weakness can be checked with a script. But you'll have to google/ask others about that. I guess there was the target's elementRate(X) > 1, but you'll need a code for the current skill's element...'some reference'.damage.elementId or something LOOOL.
my idea

is to make it so the switch activates
it triggers a tree
tree of switches
the tree of switches change depending on which actor did an action last
and flips a new switch
1701799530320.png

Original thread: https://forums.rpgmakerweb.com/threads/using-vs-is-it-possible-to-make-crit-or-hitting-weaknesses-play-an-event.163374/