Damaging skills also cause states on user

For skills that increase in power the more you use them, or skills that have drawbacks such as causing sleep or bleeding to the user. Skills that cause self-states may or may not still apply if the skill misses.

Is there already a plugin for this, or have I missed a way to already do this?
No need for a plugin, this is usually done by extra commands in the damage formula.

There is a topic where codes for this are discussed and explained, but I don't have the link ready
Ahah! I found the thread, also teaching me how to use random integers, etc.

Thanks, thread can be locked now.

Original thread: https://forums.rpgmakerweb.com/threads/damaging-skills-also-cause-states-on-user.53149/