MV Check if armor type is equipped in battle

Heyho,

I'd like to create a shieldwall skill which grants effects to every party member who has a shield equipped. I thought of using Yanflys Auto Passive States to give every shield a passive state, which is then checked by the shieldwall skill. However, since you can change equipment in battle in my game and as I understand auto passive states will only be apllied once at the start of the battle, this won't work out as I imagined. It's pretty disappointing when you equip everyone with a shield to use that skill to the fullest, but then realize that it only works if you do that before the battle starts ...
So is there any other way to have a skill check which party members have equipped a certain armor type?

Thanks in advance~
However, since you can change equipment in battle in my game and as I understand auto passive states will only be apllied once at the start of the battle.
It shouldn't. if you started a battle with something that has a passive equipped and removed it mid battle, it should remove the passive. Likewise, if you equip something that has a passive, you gain it. If you used the passive to gain a separate state at the start of the fight then that's a different scenario, but what you described shouldn't be the case.

Have you tried it and observed it happening?

So is there any other way to have a skill check which party members have equipped a certain armor type?
you can use the skill core and have it apply the effect to targets via an <After Eval> and use something like
Code:
if (target.armors().some(a => a.atypeId === x))
  target.addState(y);
to add state y to any battler that has an armor that has an atype id of x equipped
Have you tried it and observed it happening?
Hoh, I thought I remembered it working like this, that's why I did not try it this time. So you are probably right. Still your way seemes more elegant instead of setting a state to verey piece of armor. Thanks for both 🙂

Original thread: https://forums.rpgmakerweb.com/threads/check-if-armor-type-is-equipped-in-battle.183151/