State if dodge (Resolved)

Hello,
I'm looking for a plugin that will give me more possibilities when a character dodges an attack (physical or magical).
Ideally, by calling a common event when my character dodges. But it can also be by adding a state to my character when he dodges an attack (or if the attack misses, it's visually the same for the player).

The idea is to be able to create effects such as "increase the damage of the next attack in case of dodging" or "increase dodge by x% for 1 turn when the character dodges an attack".

Does such a plugin exist?
Sup so huh i can't really give a based answer, i have no idea about plugin, but if i'm right you can manually code stuff right ?
I mean, you could look up to code such an effect, a basic "if (x) then" code shouldnt be that hard to do i think.
Or is that only available for events ? can't really get on the app rn :')
You could try Yanfly's Buffs and States Core. I believe a Deselect effect checking
Code:
if target.result().missed || target.result().evaded
would accomplish what you're describing.
Thank you for your answers. I'm not very good at coding but I tried this.

Code:
<Custom Deselect Effect>
if target.result().missed || target.result().evaded
{
user.addState(137);
}
</Custom Deselect Effect>

I'm using this state on one of my characters, and I want the next time he dodges an attack, he gets state 137.
Unfortunately this is not working at the moment.
I have done something wrong ?

Edit : Does the state that checks if the attack was dodged have to be on all my enemies? If so, it would help me a lot to be able to have an equivalent on my allied characters ^^"
Try changing user.addState(137); to target.addState(137);
The reason for this is that "user" and "target" are in the context of the action. The target of the action has dodged, so the target of the action should gain the state.
It doesn't seem to work either. I have the impression that we are not far but I do not understand why it does not work :/
I see now. Try this:
Code:
<Custom Deselect Effect>
if (target.result().missed || target.result().evaded) {
target.addState(137);
}
</Custom Deselect Effect>
I am admittedly quite weak in this, but I think it was just that the condition containing the "or" (that is, || ) had to be contained within parentheses to be logically complete. I was able to test this exact code and it worked for me, so hopefully it does for you as well.

Edit: If someone more knowledgeable than me sees this and can correct me or provide a proper explanation, please do.
Perfect. It's exactly what I needed.
It works very well. Thank you very much ^^

Original thread: https://forums.rpgmakerweb.com/threads/state-if-dodge-resolved.154320/