States that stack effects

Might be the wrong place but I think it is correct.
What I want is a script that will increase the effect of a state when it is applied multiple times. Basically, if an enemy uses "Poison" once, the damage is minor. But if they use it two or three times, the damage increases. Same sort of thing for blind - the more times it is inflicted, the more likely the target is to miss. And so on for other states.
Could someone point me to a script for this?
several ways to do this, requiring different script.

there are scripts on the master script list that simply allow states to stack up to a configured maximum. that is probably the easiest way, but limits the effect to multiple of the original state.

alternatively there are one or two scripts that allow for conditional states, for example tsukihimes placeholder states. When applying a placeholder state, the code of that placeholder is run to determine which other state will really be applied. This would allow for a series of different states (if poison 3 is detected, change it to poison 4).
This solution is a lot more felxible, but ten or twenty times the work and requires a lot of states.
I wrote a stacking states script for my own game.
Sorry for non-eng languange. But the usage is just to put a simple tag
<stack: n> where the n is the max stack
I wrote a stacking states script for my own game.
Sorry for non-eng languange. But the usage is just to put a simple tag
<stack: n> where the n is the max stack
Thanks @TheoAllen.

Original thread: https://forums.rpgmakerweb.com/threads/states-that-stack-effects.91537/