Equipment that buffs the player when they take damage.

I've had the idea of adding a piece of armor to my game that increases your ATK every time you're damaged in battle, but I haven't figured out how to implement it. Has anyone else tried this?

Open to using scripts but would prefer a method that didn't use them if that's possible.
Is this a temporary boost or permanent?
Is this a temporary boost or permanent?
Sorry for replying so late. I've been especially busy with other things recently.

Ideally I would only like the buff to last till the end of battle.

Original thread: https://forums.rpgmakerweb.com/threads/equipment-that-buffs-the-player-when-they-take-damage.152759/