MV Using Buff State Core to increase parameters when dealing or taking damage

I'm using Yanfly Buff States Core, and I have a lot of idea for passive states I want my player to have. One is a state that modifies parameters, ex-parameters, and sp-parameters when a player successfully hits an enemy, the other is I want to have a state that does something like modify modifies parameters, ex-parameters, and sp-parameters when the player takes damage. I just want a general blueprint that I can use to modify. I'm not quite sure how to use the scripts with this plugin. How could I make the notetags below work?

//When player is hit
<Custom React Effect>
(increase evasion rate by 5%
</Custom React Effect>

//When player deals damage
<Custom Confirm Effect>
(If this skill does damage)
(Increase critical rate by 1%)
</Custom Confirm Effect>

I also see this in Yanflys Script for how to use the plugin
<Custom React Effect>
value -= 100;
value -= user.def;
</Custom React Effect>
Does this mean if a player or enemy is hit with this state, 100 will be taken away from the total damage they take, is this what value is modifying?

Original thread: https://forums.rpgmakerweb.com/threads/using-buff-state-core-to-increase-parameters-when-dealing-or-taking-damage.175191/