Best way to make a "state" to increase defense

Hi everyone, hope you are doing well.

I was doing some tests with RPG Maker 2003, my goal was to adjust an enemy to have defense stat high enough to be invulnerable until a specific condition is met, when this condition is met, the defense decreases and the enemy can be attacked and receive damage.

I usually do this with a state that increases defense, however RPG maker 2003 can't exactly do that, so I immediately thought of making two versions of the enemy, one with low defense and one with high defense, which I can swap with events, but I realized that this may not be the most optimal option, my question is, do you know a better way to do this? Thank you in advance.

Original thread: https://forums.rpgmakerweb.com/threads/best-way-to-make-a-state-to-increase-defense.149646/