MZ Script line to test skill availability?

Is there a script line for a fork condition that can test if a skill has "Never" as Occasion?
Thanks in advance!
Heya!

$dataSkills[ID].occasion should be able to read that aspect of it.

With ID being the id of the skill. It should return the value '3' if the occasion is set to never. So you could grab the id of the skill elsewhere, put it into those brackets and then test.

So if the skill ID you wanted to test was contained in Variable 003 for example, you could do something like this in the script box of a conditional statement:

Code:
$dataSkills[$gameVariables.value(3)].occasion == 3

And it would return true and run the conditional statement if the skill's occasion was never, if that makes sense.
This worked, thank you.
You can skill the variable part with this:

$dataSkills[x].occasion == 3

Original thread: https://forums.rpgmakerweb.com/threads/script-line-to-test-skill-availability.156577/