status problem

Hello, i'm currently creating a game and i try to create a skill, the particularity is when
you use it, it gives a status effect to the person who used it but idk how to do that.
Can someone help me?😅
You'll want to grab Yanfly's Skill Core and use the following code:

JavaScript:
<Post-Damage Eval>
user.addState(X);
</Post-Damage Eval>

X would be the ID of the state you want to give the user. I think I've got that right, but if not, someone will correct me.
Ty!
Don't forget to read the rest of my post. I had accidentally hit post reply before I was done. My bad.

Original thread: https://forums.rpgmakerweb.com/threads/status-problem.168418/