States - Chance of damage?

I'm trying to make a state that has a chance of doing damage every turn in battle. Is it possible to make a parameter that has a chance of doing damage?

Yes, I know there's poison, but that would cause damage every turn, right?

The program I am using is RMVX Ace.
You could use this code snippet of mine. It requires Yanfly Lunatic States, though.
You could use this code snippet of mine. It requires Yanfly Lunatic States, though.
Thanks, I'll see if it works.
You could use this code snippet of mine. It requires Yanfly Lunatic States, though.
Wait, what about for enemies? Or would I just leave it the way it is?
You could use this code snippet of mine. It requires Yanfly Lunatic States, though.
Wait, what about for enemies? Or would I just leave it the way it is?
Nevermind, it sort of works. I just need to have it display the message, as I want it to say "Admin lost 77 HP!" Any way to fix that?
state: set Hp Generation to minus?

Original thread: https://forums.rpgmakerweb.com/threads/states-chance-of-damage.43083/