Check actor's skill types

Hello, I'm currently using DR.Yami's skill shop in my game, and the plugin allows me to set conditions to wether skill can be bought for a certain character or not. However I'm having trouble in finding out the right terms for the conditions.

What I would like is to check if an actor has a certain skill type, and if he/she has that skill type, the skill will be available.
Here's an example of how the conditions work in this plugin.

<Buy Custom Require>
$gameSwitches.value(1)
actor.level > 10
</Buy Custom Require>

If you need to check the plugin itself for some reason here is a link to it:

https://github.com/suppayami/yami-engine-delta/blob/master/build/SkillShop/YED_SkillShop.js
Try:
actor.addedSkillTypes().contains(skilltypeid);
It works perfectly, thank you so much! By the way, is there a way to check the class as well?
To check if they're a particular class, you would use
actor.isClass(classid);

If you want to call their class to do something else with (like a comparison), you'd use
actor._classId
That's so awesome, thank you Llareian!
One more thing if you could answer me, how can I find out the right expressions to use? Do I have to have extensive scripting knowledge to know that, or is there a way to com up with the expressions?

I know about the RMMV Script calls, but that page still lacks a lot of them, so I get a bit lost sometimes.

Still, thank you for answering, you helped me a lot 🙂
Personally I look in the code itself, using JavaScript knowledge and familiarity with the game engine. I always recommend anyone with the interest and the time to learn JavaScript, as you'll be able to do so much more with the game engine if you really understand what you're doing.

If you're referring to the RMMV Script Calls spreadsheet, yes, that is pretty lacking. I think it came out near the release of the game engine, so it was great at the time, but we have better options now, like RPGMakerMV Library. As I don't use it myself, I can't say how easy it is to navigate, but it does give you plain English tips on what each thing is/does.
I've tried countless times to learn programming, but can't ever get very far :/ haven't had the "click" yet.
Oohh that is really nice! thank you for the reference, it will be really helpful!
(Sorry for the double post.
this post can be deleted)
\\ is necessary.

Original thread: https://forums.rpgmakerweb.com/threads/check-actors-skill-types.86916/