stacking ailment?

So I was curious, is there a way to create a stacking ailment? ex: a poison-like ailment that deals more damage the more the ailment is attempted, and stacking up to 3 times.

I was wondering about this if it were possible so I can experiment by making an attack that gets stronger the more stacks there are.
Yanfly has a script that can do this (link). 🙂

Original thread: https://forums.rpgmakerweb.com/threads/stacking-ailment.42215/