Passive checks enemy state

I know you can make an skill that increases its damage if the enemy target has certain state, poison for example. I need to use this on a passive state (yanfly), for example "Increase damage against poisoned enemies", when you hit a poisoned monster you will deal extra damage either normal attack or an skill. Thanks for your help
Create empty state and add to note field
Code:
<Custom Establish Effect>
if (target.isStateAffected(idOfPoisonState)){
value = value + extra damage amount;
}
</Custom Establish Effect>

Then give this state to your actor(s)
Moved to: Javascript/Plugin Support
Create empty state and add to note field
Code:
<Custom Establish Effect>
if (target.isStateAffected(idOfPoisonState)){
value = value + extra damage amount;
}
</Custom Establish Effect>

Then give this state to your actor(s)

Im not understanding what "value" supposed to mean, value 1 is total damage? atk? and value 2?. Also, can the "extra damage amount" it be a multiplicative amount. Could you give me an example? that would be very useful
value is constant/variable declared in PassiveStates plugin and it is equal to damage you deal to enemy or enemy deal to your actor.

As I said, create empty state
https://prnt.sc/q5sv30

and give it to actor:
https://prnt.sc/q5svha

In my case Tallanar will deal extra 100 damage when enemy is poisoned and my poison state has ID 4
Hi, value is damage in the exemple given above.
If you want to multiply value by extra damage, write that way:
Value = value * extra damage
Or
Value *= extra damage

replace extra damage by a fix number or a variable
Ex: Value *= 100
(Damage will be multiply by 100
Well I did exactly as you said but it didn't work
Got YEP_AutoPassiveStates plugin installed?
Got YEP_AutoPassiveStates plugin installed?

Yes it is
https://prnt.sc/q6cozu

https://prnt.sc/q6cpg9

https://prnt.sc/q6cqfg

https://prnt.sc/q6cpzn

https://prnt.sc/q6cq7x

I just made a new proyect to test it, all actors have the same stats and the passive
This is because the <custom establish Effect> is a notetag from the Yanfly Buff&state core...
It's another plugin.
This is because the <custom establish Effect> is a notetag from the Yanfly Buff&state core...
It's another plugin.

Well I was using it before and I have the same result, in any case I just reinstalled it to the latest version, it remains the same

https://prnt.sc/q6efnc
Then copy this inside the note box of your state 4 instead
Code:
<Custom React Effect>
   if (this.subject().isStateAffected(14)) {
     value *= x
   }
</Custom React Effect>
replace x with extra damage factor.
There we go that was it, thanks for the help both of you, this is very useful for me

Original thread: https://forums.rpgmakerweb.com/threads/passive-checks-enemy-state.115904/