MV Does anybody know any plugin that allows a skill to apply a status effect on a condition?

What I am trying to make is a "Kick" skill that applies the state "Stun" if it hits an enemy which has the state "Guard".
I an new to RPG maker so I don't really know how to write in JavaScript, so if what I want requires any code, it would be much appreciated if I got help with that too.
You could try Hime's Effect Conditions; it's a bit difficult to use, but it should be able to do it.

Something like this:
Code:
<effect condition: 1>
a.isStateAffected(2)
</effect condition>
Can use the damage formula, no Plugin necessary. Assuming Stun is state 11 and guard is state 2:
Code:
if (b.isStateAffected(2)) { b.addState(11); } a.atk - b.def

Which is just collapsing the following into a one-line statement:
Code:
if (b.isStateAffected(2)) {
  b.addState(11);
}
a.atk - b.def

In the damage formula, a is always representative of the skill's user and b is always representative of the target. So by checking b.isStateAffected(x), you're checking if the target is affected by state x. Then b.addState(y) applies state y to the target if so.

As long as the last statement in your damage formula evaluates to a number, you can throw pretty much anything in there beforehand - though it will become admittedly very difficult to read the more you add.

Original thread: https://forums.rpgmakerweb.com/threads/does-anybody-know-any-plugin-that-allows-a-skill-to-apply-a-status-effect-on-a-condition.183266/