How do I make an attack that has a chance to lower a stat?

I have an ice spell that I want to have a 10% to give a 10% debuff to AGI. I know how to have a skill that has a persent chance of inflicting a state, and I know how to make a skill that provides a debuff. Is the only way I can do this make a state that is inflicted?
either that or apply the debuff directly within the skill effects - but the direct buffs/debuffs on the parameter tab have only limited options, you can't choose how large the deduction is that way, so most people go the state route.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-an-attack-that-has-a-chance-to-lower-a-stat.71718/