Checking for specific skill currently being used (Solved)

Hi all, I'm wondering what's the code for checking what current skill the actor is currently using? I checked 'ol Father Google, but errors get tossed my way when using those codes in related topics.

I'm utilizing Yanfly's Buff & State Core for the code.
I use the following piece of codes to check if specific skills are currently used by the actor.
- For Action Start and Action End Effects:
Code:
var action = user.currentAction();
var skills = [];
skills.push(a,b,c,d); //Change a b c d to your skill IDs
if (action && action.isSkill() && skills.contains(action.item().id)){
//Do something here
}

- For Initiate/Select, Confirm/React, Respond/Establish and Deselect/Conclude Effects
Code:
var skills = [];
skills.push(a,b,c,d); //Change a b c d to your skill IDs
if (this.isSkill() && skills.contains(this.item().id)){
//Do something here
}
I use the following piece of codes to check if specific skills are currently used by the actor.
- For Action Start and Action End Effects:
Code:
var action = user.currentAction();
var skills = [];
skills.push(a,b,c,d); //Change a b c d to your skill IDs
if (action && action.isSkill() && skills.contains(action.item().id)){
//Do something here
}

- For Initiate/Select, Confirm/React, Respond/Establish and Deselect/Conclude Effects
Code:
var skills = [];
skills.push(a,b,c,d); //Change a b c d to your skill IDs
if (this.isSkill() && skills.contains(this.item().id)){
//Do something here
}

Works perfectly, thanks a lot!

Original thread: https://forums.rpgmakerweb.com/threads/checking-for-specific-skill-currently-being-used-solved.95382/