Additional skill features (solved)

Hi! I wanted to make a skill that has a chance to apply a debuff to the target, it hits nine times and all of these nine hits should have a chance to apply the debuff. And no the chance % is not what i'm looking for, it has a 100% chance to hit but it has a 50% chance to apply the debuff. I searched for a script that can do that but i can't find one. I know it's possible because i played a game made on RPG Maker that had a skill like that.

Thanks.
How about you make a State with the buff or debuff you want. Then, in the skill make that it could add that state by a chance?
How about you make a State with the buff or debuff you want. Then, in the skill make that it could add that state by a chance?
I haven't thought about it, tried it and it works! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/additional-skill-features-solved.160824/