If you only need to detect charges and not all item functions and later set them for a bank, it is enough to copy 'Item Set Charges Remaining', 'Item Type Charge Link', 'Item Type Max Charges', 'Item Get Charges Remaining'. Tested it with display message, you only need to specify the unit (item) like Variable - Set Cash = (Item carried by Hero in 2) or whichever way you will detect the item.
(Note, use Create Persistent for dummy target point effect, cause launch missile causes a bug where the hero isnt able to move or command after he uses launch missile item once)
I need to get the remaining item charges of an inventory item and later store them in sc2bank. I found this lib: http://www.sc2mapster.com/forums/resources/trigger-libraries/5636-library-item-utility-library/#posts
If you only need to detect charges and not all item functions and later set them for a bank, it is enough to copy 'Item Set Charges Remaining', 'Item Type Charge Link', 'Item Type Max Charges', 'Item Get Charges Remaining'. Tested it with display message, you only need to specify the unit (item) like Variable - Set Cash = (Item carried by Hero in 2) or whichever way you will detect the item. (Note, use Create Persistent for dummy target point effect, cause launch missile causes a bug where the hero isnt able to move or command after he uses launch missile item once)