Elemental damage-inflicting status HELP

Is there a way to make a status that will take life from the enemy but with elemental damage?

For example, a "Burning" status that will reduce HP from the enemy but it causes elemental damage every time it takes HP.
not by default, you'll need scripts - something to enable Ruby code for damage calculation in states.
If I remember correctly it might be doable with yanfly lunatic states or so.

and then you basically multiply the damage done by the sate with the elemental damage rate of the element you want it to use.
Is there a way to make a status that will take life from the enemy but with elemental damage?

For example, a "Burning" status that will reduce HP from the enemy but it causes elemental damage every time it takes HP.
I think this would be a starting point.
Let me know how it needs to be adjusted.
I think this would be a starting point.
Let me know how it needs to be adjusted.
You have a script for everything man, I swear! Thanks, I'll check it out.

Original thread: https://forums.rpgmakerweb.com/threads/elemental-damage-inflicting-status-help.172647/