I had some issues with this myself trying to get a weapon equip system working, I ended up figuring something out using the library and some custom scripts. I think UnitGetType(itemName) might be what you are looking for.
Edit: To be more specific, I had the item and behavior names exactly the same, so I could call the item's string name using UnitGetType(itemName), then call that behavior to give unit the weapon I wanted. Imagine you can do the exact same thing with an ability.


Turtlelink2 Regular ShmoeSo, When a unit picks up an item, the items name is stored in a string and saved for later, with this I can pull tooltips, images, the item name ect. with a library. But I cannot figure out how to pull ability information, there's a get unit from string function but it doesn't play well with show/hide abilities. My last resort would be to create an invisible unit that stores these items for use but I don't want to use it if I don't have to, any ideas?