MV Yanfly Skill Core , <Custom Requirement>

IN MV, I am trying to make abilities only usable when certain "states" are present. Such as a high speed attack will only work if a Nimble State is on the character. Any help would be appreciated. I am guessing skill core with the custom requirement is needed but I could use a guiding hand on how to script it. the example is

<Custom Requirement>

if ($gameParty.gold() > 1000) {

value = true;

} else {

value = false;

}

so figured instead of gamepartygold i would use ($gameActors.actor(1).isStateAffected(18() or something like that but I am not sure.
"user.isStateAffected(18)"
"user.isStateAffected(18)"

If (user.isStateAffected(18)
{

value = true;

} else {

value = false;

}

?
You can just do

value = user.isStateAffected(18);
thank you for your help!

<Custom Requirement>

value = user.isStateAffected(18);

</Custom Requirement>
works perfectly!
Moved to: Plugin Support

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-core-custom-requirement.134521/