Requiring Assistance on how to apply proper DoT states and damage.(If this question is in the wrong location, please let me know where I should post)

Hello,
I'm going to start this inquiry by saying that I'm brand new to using RPG maker programs and picked up MZ assuming it would have a lot of support, turns out that wasn't truly the case so now I must make do. Regardless of that, though I do have some programming knowledge, just not in JS. I do not want to have to make my own plugin for specifically DoT purposes as that's one big rabbit hole.

Say a character gains the skill Acid Resist 1 as a passive skill through combat(help with this would be appreciated, however this is not the main question) and the enemy attacks them with a Venom attack, which would apply the Poison state to the player upon a successful hit. I want my poison state to persist throughout the battle unless cleansed, akin to Pokemon or Final Fantasy.

tl;dr this is what my question is: How would I go about doing the following? Poison Damage*(1-Acid Resist I) where acid resist I is a 40% resistance to the incoming poison damage over time and Poison Damage is a arbitrary number.

Thank you for reading, any help would be appreciated, please tell me anything you believe to be of use in this case 🙂 and have a wonderful day!

Original thread: https://forums.rpgmakerweb.com/threads/requiring-assistance-on-how-to-apply-proper-dot-states-and-damage-if-this-question-is-in-the-wrong-location-please-let-me-know-where-i-should-post.144417/