Graphical "bug" with Recoil Damage from Yanfly Plugins

And also made a counter attack, which hurts anyone who hurts you for that turn.
(It worked by using a state with the formula from the first post with magical and physical damage and 150% recoil.)
Any way to implement the skill into any of this?
The skill portion got buried in your first post and all the attention got placed on the state portion, but some clarification is still needed for how its supposed to function.

Is this counter a skill that is triggered when damage is taken, that deals damage back to the enemy based on damage taken? (separate from the state then)
is the damage done thorough this state supposed to be after the player chooses this skill? (its not an actual counter)
is it a counter that activates the state for further attacks taken that turn?(the counter doesnt deal damage by itself)
Is this counter a skill that is triggered when damage is taken, that deals damage back to the enemy based on damage taken? (separate from the state then)
is the damage done thorough this state supposed to be after the player chooses this skill? (its not an actual counter)
is it a counter that activates the state for further attacks taken that turn?(the counter doesnt deal damage by itself)
Basically the exact same as the armor, except it only lasts one turn/ until you're hit and deals much bigger damage...
Which, it being temporary I'd asume it needs to use a seperate state which would lead us back to the original problem?
I don't understand the question. What skill? What does "implement the skill" mean?
Sorry, sorry, my brain is fried.
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.
Basically it's a skill that add the same effect as the armors for one turn or until hit.
Which still works, but obviously also still has the original problem where it shows the wrong numbers if armor with the recoil effect is worn!

Looking more thourogly at what I've done, it used a <Custom Respond Effect>, not react, like the skills did. But otherwise it's the exact same code.

If I still make no sense I need to sleep.
If this gets too complicated I'll probably figure out something semi-acceptable with the Yep_counterControl instead, the two of you have already been super helpful 🙂
Which, it being temporary I'd asume it needs to use a seperate state which would lead us back to the original problem?
not necessarily. if you attach the thorns passive to your counter skill with the notetag to do so(im assuming your actors has learned the counter skill), make a separate counter state with its duration and removal specifications be added by the skill's usage, then add a bit of logic to the passive's calculations to look for the state too...

Code:
<Custom Respond Effect>
if (value > 0 && this.isPhysical())
{
    let armors = 0;

    if (target.isEquipped($dataArmors[7]))
        armors -= .07;

    if (target.isEquipped($dataArmors[16]))
        armors -= .07;

// Copy and paste whatever other armor IDs and percentages you want

    if (target.isStateAffected(x)) // state's id replaces the x
        armors -= 1.5;

    user.gainHp(Math.ceil(armors * value));

    if (user.hp <= 0)
        user.performCollapse();
}
</Custom Respond Effect>

itll still be one damage popup done by the passive, but it will not activate unless one of the armors are equipped, or the other state is active, and keeps track of the rates for them all
not necessarily. if you attach the thorns passive to your counter skill with the notetag to do so(im assuming your actors has learned the counter skill), make a separate counter state with its duration and removal specifications be added by the skill's usage, then add a bit of logic to the passive's calculations to look for the state too...
Thank you so much 🙂
I had to make it a React effect instead of Respond effect, otherwise it wouldn't work when the skill was set to remove by damage.
Now it seems to work perfectly! thank you! 🙂
That's all my problems solved, thank-you all 🙂


Code:
<Custom React Effect>
if (value > 0 && this.isPhysical())
{
    let armors = 0;

    if (target.isEquipped($dataArmors[7]))
        armors -= .07;

    if (target.isEquipped($dataArmors[16]))
        armors -= .07;

    if (target.isStateAffected(52)) // state's id replaces the x
        armors -= 1.5;

// Copy and paste whatever other armor IDs and percentages you want

    user.gainHp(Math.ceil(armors * value));

    if (user.hp <= 0)
        user.performCollapse();
}
</Custom React Effect>

Original thread: https://forums.rpgmakerweb.com/threads/graphical-bug-with-recoil-damage-from-yanfly-plugins.166207/