Code to check if a specific skill is used?

I want to check if a specific skill is used during battle, if so, have a different result than a regular one.

This looks like simple, but i cant find the code anywhere.

Thanks!
You need to be more specific - it's not the checking if the skill is used that's going to be difficult for you - it's the having a different result. So explain what you mean by that, and also describe how this specific skill is set up - what's its damage formula?
Oh, sorry about that.
Im using various Yanfly Plug ins, one of them is the Buff State core.

So I have the following code on my statebox:
Code:
if (this.isPhysical())  {
this happens }

The thing is I have a Steal skill that does not make damage (so its not considered physical) but I want the "this happen" to process.

So im guessing that the code:
Code:
if (this.isPhysical()) || CodetoCheckSkillIDhere {
this happens }

Should acomplish what im looking for

Thanks!!
Sorry, can't help you further, as I'm not familiar with Yanfly's plugins.

However, it would be
Code:
if (this.isPhysical() || CodeToCheckSkillHere) {
this happens }

rather than what you've got - the entire condition must be within (), not just the first part of it.
I think you can use this:
Code:
if (this.isSkill() && user.currentAction().item().id === x){ //where X is your skill ID
do something
}

Original thread: https://forums.rpgmakerweb.com/threads/code-to-check-if-a-specific-skill-is-used.88705/