MV Skill core custom requirement

I am working with Yanfly's "skill core" plugin. I need to make sure that for a skill to be cast by the character, the character must have an item. I saw that in the guide there is the following code:

<Custom requirement>
if ($ gameParty.gold ()> 1000) {
value = true;
} other {
value = false;
}
</ Custom requirement>
Well, instead of "game.Party.gold", how do I write that that object is needed?
Moved to: Plugin Support
The user started another thread on the same issue.
And if you don't mean a weapon or armor, but that the party has a certain item in the inventory, then it's $gameParty.items().includes($dataItems[X]) where X is the ID of the item in your database.

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