making crafting system based on how many items you have before your able to make something. for MV

Here is what i got so far but for what ever reason my equipment keeps getting deleted.


also i can seem to find how to check to see if you have so many items. only thing letting me check is the gold. not said item requirements.

helpplease.png
check for this script


$gameParty.numItems($dataItems[x])==x
check for this script


$gameParty.numItems($dataItems[x])==x



where would that be under exactly. im new this >< most of my stuff was handled with plug ins ><
when you make event and then you make conditional branch then click on tab 4 and chose script


past this  $gameParty.numItems($dataItems[x])==x


first x for item's ID 


second x for quantity of item

Original thread: https://forums.rpgmakerweb.com/threads/making-crafting-system-based-on-how-many-items-you-have-before-your-able-to-make-something-for-mv.63910/