need help with status effect

I'm trying to make an status effect that make the enemy take damage if they use any skill on their turn but it's going nowhere. Can someone give me some advice?
I have a script that i wrote and use for myself. I use it to make a "Bleeding" state that makes it different with "Poison"
Poison: Takes damage every turn
Bleeding: Takes damage after using skills or items

Here it is, IneptAttorney - Slip Damage on Action

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-status-effect.171291/