Status that has a chance to apply another status on hit.

I was wondering if there is a way to make a status effect that, for example, has a 10% chance to apply another status effect when the person it afflicts is hit. Plugin or built in.
Yeah, use VisuStella Battle Core and for example the post damage as Target notetag on the state, roll math random and if it's below your percentage then you use the script target.addState(X), like:

<JS Post-Damage as Target>
if (Math.random() < 0.1)
target.addState(X);
</JS Post-Damage as Target>
Yeah, use VisuStella Battle Core and for example the post damage as Target notetag on the state, roll math random and if it's below your percentage then you use the script target.addState(X), like:

<JS Post-Damage as Target>
if (Math.random() < 0.1)
target.addState(X);
</JS Post-Damage as Target>
Thanks, I'll try that.

Original thread: https://forums.rpgmakerweb.com/threads/status-that-has-a-chance-to-apply-another-status-on-hit.174620/