Custom Skill Requirements

Hi there,

I want to creat a skill who need an item in the actor inventory for unlock him. But the js call dont work. Any idea ?

<Custom Requirement>
value = $gameParty.hasItem(6);
</Custom Requirement>

The item's ID (6) is good and he's in the actor inventory. SkillCore is ON. Idk what i need to do ^^
Sorry, I don't know much about JavaScript.

PS: Skill Core.
Instead of passing an ID# to the hasItem function, you need to pass an item object.

More information here:
https://kinoar.github.io/rmmv-doc-web/classes/game_party.html#hasitem
Sorry but i'm so noob with JS. I tryed that :

Slime = ID6

<Custom Requirement>
value = $Game_Party.hasItem(item: 6): boolean
</Custom Requirement>

and

<Custom Requirement>
value = $Game_Party.hasItem(item: Slime): boolean
</Custom Requirement>

But it dont work. I probably miss something.

Edit: After a lot of try with the discord comunity, dont work with that :

<Custom Requirement>
value = ($gameParty.hasItem($dataItems[6]));
</Custom Requirement>

<Custom Requirement>
value = ($gameParty.numItems($dataItems[6]) > 0);
</Custom Requirement>

Original thread: https://forums.rpgmakerweb.com/threads/custom-skill-requirements.103176/