How do I cap damage taken?

Yanfly, when I get damage Exceeding a certain percentage of my maxHP,
I want to add a feature that does not take damage.
How can I do it?
@Lee-hyung "How do I...?" questions belong in the Support forum for the engine you are using. This thread is exclusively for discussing issues about the update to version 1.5 of MV. I am splitting your post off into its own thread.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-cap-damage-taken.83216/