MV Yanfly Skill Core Custom Requirement RPG Maker MV

I've been trying to figure out how to create a skill requirement based upon a variable in RPG Maker MV. A requirement based on a state would also work, but I've been unable to find a solution as of yet. I don't have any real javascript knowledge so this has me stumped. It seems like Yanflys skill core could do it with some javascript knowledge fairly easily with its custom requirement option.

Specifically I'd like to have a skill that is only usable based upon a particular variable which changes during each individual battle, once the variable gets so high, I'd like the skill to become usable, while if the variable is too low, it remains unusable. I am using a good number of yanfly plugins but not much else, so I don't expect many conflicts, any help would be greatly appreciated! This would let me get the functionality I'm after to enrich the game I'm working on! Bonus if I could also do the same with making the variable low enough and it would allow the skill to be used!

Thanks so much for any insight or help for this!
Yes, Custom Requirement would work.

Try something like this:


<Custom Requirement>
if ($gameVariables.value(X) > Y) {
value = true;
} else {
value = false;
}
</Custom Requirement>


Replace X with the ID of the variable you want to use.
Replace Y with the value necessary for the skill to become usable.

You can replace " > " with " < ".

> means greater than the value Y
< means lower than the value Y


This works perfectly! Thank you so, so much! I can do so many things with this! I really appreciate it! I spent hours trying to find a solution myself with no luck!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-core-custom-requirement-rpg-maker-mv.139788/