Adaptive immunity

Okay, so here's a fun thing I had in my mind. A character who when attacked by say fire attacks, takes less damage in future from all fire attacks. Same with every element in game, though some expectations would have to be made such as healing or healaing would become less powerful and regular attacks or they'd become unbeatable. Same for states too, aside several states like death and so on.


I use Yanfly's scripts by the way, so it'd be swell it'd be suitable with it.
Does that compound? They are hit with the first fire attack, they gain a little immunity to fire. They are hit with the second fire attack, they gain a little more immunity to fire. Eventually, they would be completely immune to fire. Then if they were hit with an ice attack, the same thing would happen. Eventually all your characters would be immune to all elements.
Does that compound? They are hit with the first fire attack, they gain a little immunity to fire. They are hit with the second fire attack, they gain a little more immunity to fire. Eventually, they would be completely immune to fire. Then if they were hit with an ice attack, the same thing would happen. Eventually all your characters would be immune to all elements.

Not all characters, just one. And not all elements, not for healing or the neutral ones.
Bump.

Original thread: https://forums.rpgmakerweb.com/threads/adaptive-immunity.77842/