Adding item cost to Yanfly Skill Core

I'm pretty new to programming in general, but how hard would this be to implement?

So for example, if you wanted to throw an item at an enemy, it would check to see if you had at least 1 of the items before being able to use the ability

and then lower the amount of that item you had by 1
Yanfly seems to plan to do this eventually: https://www.youtube.com/watch?v=Qs269oSHiv0&t=2m50s
I know this is a semi-old topic but I eventually came up with this code that works for me. You'll need the updated version of the Yanfly's skill core and then put these notetags in and replace ITEM NUMBER with the item number of the item your specifying. 

<Custom Requirement>

if ( $gameParty.hasItem($dataItems[ITEM NUMBER],0) )

{

value = true;

} else {

value = false;

}

</Custom Requirement>

<Custom Execution>

$gameParty.loseItem($dataItems[ITEM NUMBER] );

</Custom Execution>

Original thread: https://forums.rpgmakerweb.com/threads/adding-item-cost-to-yanfly-skill-core.49303/