a passive skill depends on the health

I want to make a passive skill for the hunter, which gives him 100% critic rate only if he is at 100% health.
I also want to give him 100% dodge rate for every first dmg only he received in any turn.

I just used the passive state plugin to create a state that gives him 100% critic rate and dodge rate, but i don't know how to remove it when damaged.
and I want remove the dodge buff if he has dodged in this turn.

noob need help here.
😅

update:
I used the passivecases plugin, and
added below in the state note, but it did not work.
<Passive Condition Cases>
MAXHP=HP
</Passive Condition Cases>
@boomboom When you have something to add in less than 72 hours, and no one has posted after you, please use the Edit button on your earlier post and put the additional information/comment there. I have merged your two posts for you this time.

Original thread: https://forums.rpgmakerweb.com/threads/a-passive-skill-depends-on-the-health.106939/