Attack State/State Rate on Weapon Not Applying

My character "Tank"
1734890415551.png
1734890428999.png

has a skill called "Draw Aggro." This skill applies two states to himself - Draw Aggro (which uses a plugin, Theo_TauntHideTraits) which makes all enemies target him 100% of the time, and has a 20% chance to apply Guard.
1734890597326.png

I want to increase Guard's chance of applying to 100%, IF Tank has the item/weapon "Shield" equipped.
1734890682568.png

However, whenever Tank using Draw Aggro in a fight, even with the shield item equipped and both attack state and state rate at 100% (even tried at 200% as well), the Guard state is still only sometimes applied, seemingly going off of Draw Aggros 20% of guard only.
Shouldn't it be applying Guard 100% of the time with Shield equipped? How do I make this work as intended (applying Guard 100% of the time with Shield equipped)?
Attack State applies the state to what you attack, not the attacker. So you are right now trying to apply guard to the enemy when you attack them.
Attack State applies the state to what you attack, not the attacker. So you are right now trying to apply guard to the enemy when you attack them.
Okay so I've now removed the "Attack State" trait from Shield, so it only has the State Rate trait of Guard at 100%. Despite this, however, it's still not applying Guard consistently as intended. What could be the problem here?
Attack State applies the state to what you attack, not the attacker. So you are right now trying to apply guard to the enemy when you attack them.
The attack skill scope is the user, though. It's a bit weird but it's valid. It appears there's a weird interaction with how this works in practice, though.
State Rate: 100% has no effect: you're multiplying by 100% = 1. Increase that to, like, 1000% or something.

Attack states are applied through the "Add State: Normal Attack" effect on items/skills.
State Rate: 100% has no effect: you're multiplying by 100% = 1. Increase that to, like, 1000% or something.

Attack states are applied through the "Add State: Normal Attack" effect on items/skills.
Ah yeah, of course. I knew I'd forgotten something about how that works.
But they also are asking about when equipping it, so it shouldn't matter the scope then. Unless you are applying it as a weapon, but even then it would only work if you attack yourself and not kick in before then no matter what. And it sounds like they wanted it to always be in effect, not just when they attacked themselves.

A better way to make this is use a passive state to appear when you equip that item. That will require a plugin to add passive states.

There might be a better way to do this without plugins so maybe someone can suggest it too?
I want to increase Guard's chance of applying to 100%, IF Tank has the item/weapon "Shield" equipped.
Attack State requires you to add "Add State - Normal Attack" to Draw Aggro for it to 'attack' the user with the weapon's attack state (in this case, Guard). The downside to doing that would make it so you'd get the state from any other equipment that adds Attack State.

There might be a better way to do this without plugins so maybe someone can suggest it too?
The simplest way I can think of is to call a Common Event with Draw Aggro that rolls a random number multiplied by your State Rate for Guard and then gives it to you if the number is correct.

Original thread: https://forums.rpgmakerweb.com/threads/attack-state-state-rate-on-weapon-not-applying.174097/