MV YEP_BuffStatesCore <Apply Effect> with YEP_AutoPassiveStates

Hello,

I was hoping to apply a state to an actor when equipping a weapon or armor (which works fine via YEP_AutoPassiveStates), and then have the state equipped run <Custom Apply Effect> (which does not work).

Purpose for this is to have <Custom Apply Effect> remove the weapon in the offhand slot when equipping a 2h weapon (seal equip does not work in this circumstance).

It seems that YEP_AutoPassiveStates does not apply a state in the traditional way however, which means <Custom Apply Effect> and related tags from YEP_BuffStatesCore will not work in this manner.

Is there another way to apply a state when equipping a weapon or armor, such that it will be recognized with BuffStatesCore?

Thank you

this has a fix for the Apply and Remove on Auto Passive States so you can use them for that purpose.
You have two options I know of:
1 - You can use waynee95's On Equip Eval plugin to have your weapon apply and remove a regular state (or just execute directly whatever code you would put in the On Apply notetag).

2 - My thread in my signature has a modification to allow the Apply and Remove notetags to function when passive states turn on and off (which @zerobeat032 ninja linked to, thanks!).
Awesome, thanks both of you! Will take a look at both options, it seems the waynee95 script would be more direct so I will try that first. The modification script looks like it will be useful for other situations too, so that also is quite nice to have. Much appreciated!
-
Works! Paste the following in the equipment note and with Seal Equip your 2h weapon when equipped will now automatically unequip your offhand weapon correctly. Offhand equip ID must = 1

Code:
<Custom On Equip Eval>
a.changeEquip(1, $dataArmors[0]);
user.refresh();
$gamePlayer.refresh();
</Custom On Equip Eval>

Original thread: https://forums.rpgmakerweb.com/threads/yep_buffstatescore-apply-effect-with-yep_autopassivestates.164940/