Elements adding states (enemy specific)

Hi, I was searching and i did not find any answer to this, so I decided to write a post, hope you can help me.

I want to do in my game something similar to what chrono trigger does with the Ogan enemy: he is an orc that wields a wooden hammer and when you hit him with fire, the wooden hammer burns and the enemy is weaker. So I want to make this a core mechanic of my game, where a lot of enemies change states when hit by a specific element or in a specific momment, but I don't have a clue of how to do it. The only thing I thought was like adding code in every fire attack where if it hits x specific enemy it would add a state, but that seems like a ridiculous ammount of work, so, anyone knows a way to do something like this?

Thanks!
Use Yanfly's Skill Core and use <Post-Damage Eval> notetags to check for the action including a certain element, and add the appropriate state to the battler to indicate they've been hit with the element. You can even change the battler's sprite inside this notetag, too! For a start on how to check for the skill's elements, check out this tips/tricks page.
Thank you a lot for the quicks answer! Only a question, where must I put the notetag? As far as I know enemies don't have any boxes to put formula into.
They have the notebox. It's there. Keep looking.

Original thread: https://forums.rpgmakerweb.com/threads/elements-adding-states-enemy-specific.111516/