I'm using Yanfly plugin's to get a damage recoil effect on my armor.
So that if you get attacked, the enemy takes damage in return.
This is done either with a passive state (YEP plugin), or a normal state.
I want this state on a few items (Spiked shield, ring of thorns, etc.).
And also made a counter attack, which hurts anyone who hurts you for that turn.
Each of these have their own unique state (Passive state for armor) with the same parameters.
And that works fine. The damage stacks up like it should... BUT... The damage numbers displayed on the enemy are wrong. They only take one of the States into account.
Does anyone know how to fix this? I'm not smart enough. :/
I've turned off every plugin exept these:
Yep_ CoreEngine
Yep_ BattleEngineCore
Yep_BuffStatesCore
Yep_AutoPassiveStates
To get the recoil effect I took this from the internet and put it into the notebox of the state (Uses YEP_BuffStatesCore):
<Custom Respond Effect>
if (value > 0 && this.isPhysical()) {
var rate = 0.10;
var recoil = value * rate;
var dmg = Math.ceil(recoil);
user.gainHp(-1 * dmg);
if (user.isDead()) {
user.performCollapse();
}
}
</Custom Respond Effect>
So that if you get attacked, the enemy takes damage in return.
This is done either with a passive state (YEP plugin), or a normal state.
I want this state on a few items (Spiked shield, ring of thorns, etc.).
And also made a counter attack, which hurts anyone who hurts you for that turn.
Each of these have their own unique state (Passive state for armor) with the same parameters.
And that works fine. The damage stacks up like it should... BUT... The damage numbers displayed on the enemy are wrong. They only take one of the States into account.
Does anyone know how to fix this? I'm not smart enough. :/
I've turned off every plugin exept these:
Yep_ CoreEngine
Yep_ BattleEngineCore
Yep_BuffStatesCore
Yep_AutoPassiveStates
To get the recoil effect I took this from the internet and put it into the notebox of the state (Uses YEP_BuffStatesCore):
<Custom Respond Effect>
if (value > 0 && this.isPhysical()) {
var rate = 0.10;
var recoil = value * rate;
var dmg = Math.ceil(recoil);
user.gainHp(-1 * dmg);
if (user.isDead()) {
user.performCollapse();
}
}
</Custom Respond Effect>