How to damage/heal depending on skill used in battle

Hi everyone,

just tring to set up an enemy that recevies more damage when attacked with the proper element skill (done), but also is healed when attacked with the wrong element skill (can't understand how to do this).
At first I tried to do that through setting up troop traits, but I can't do that.
Then I tried through damage formulas, but not only these goes beyond my understanding, also I found that "if you have multiple lines of formula, only the last line will actually do damage!", so I can't understand how to achieve that, given that I was trying to set up a damage forumula for the "correct" skill attack and a healing forumla for the "wrong" skill attack.
Quite sure this is something regular in rpg making', but I couldn't find any solution in the forum, hope I am not bothering everyone for (quite) nothing.
Many thanks in advice, have a good day.
The easiest way is probably to use plugin (VisuStella Elements and Status Core) and the:
<Element Absorb: x> notetag on the enemy.
The easiest way is probably to use plugin (VisuStella Elements and Status Core) and the:
<Element Absorb: x> notetag on the enemy.
Works like a charm!
Thanks for the super-fast reply!
PS: this should be a default option in RPG Maker MZ.

Greetings from Italy!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-damage-heal-depending-on-skill-used-in-battle.166211/