Get the value of whether or not a skill is known.

I have $gameActors.actor(x).learnSkill(y); for teaching a new skill to an actor, and $gameActors.actor(x).forgetSkill(y); for removing it.

I can't find a call to return a true or false on whether or not a skill is already known, for the purposes of conditionals.

Sorry if I'm getting terminology wrong, JS is not my native language.
JavaScript:
$gameActors.actor(x).isLearnedSkill(y)
Note that in an event you can have an actor learn or forget a skill using the Change Skill command.
JavaScript:
$gameActors.actor(x).isLearnedSkill(y)
Note that in an event you can have an actor learn or forget a skill using the Change Skill command.
Just a note that isLearnedSkill only checks the inherent _skills array and doesn't include added skills, so $gameActors.actor(x).hasSkill(y); is probably preferable if OP wants to check whether the actor has it *at all*.
JavaScript:
$gameActors.actor(x).isLearnedSkill(y)
Note that in an event you can have an actor learn or forget a skill using the Change Skill command.
Thank you, that worked perfectly.
Just a note that isLearnedSkill only checks the inherent _skills array and doesn't include added skills, so $gameActors.actor(x).hasSkill(y); is probably preferable if OP wants to check whether the actor has it *at all*.
I am incredibly thankful you said that. The specific iteration I'm testing with worked fine, but I'd be having major issues about 20-40 hours from now, if you hadn't said that.

Original thread: https://forums.rpgmakerweb.com/threads/get-the-value-of-whether-or-not-a-skill-is-known.166282/