Unit indexer only indexes units afaik, not items.
I didn't mean directly. I meant to link it to the caster using the custom index. I haven't hashed out the details, but something like this:
Hero drops item:
Create dummy.
Set cv = custom value of dummy.
Set item[cv] = dropped item
Set player[cv] = triggering player
Create floating text on relevant point
FloatingText[cv] = last created floating text.
Hero picks up item:
Check for units of type dummy in range(1.) of point of manipulated item
Set cv = custom value of that dummy.
Etc’
Edit: - I'm not if the range has to be bigger than 1. does a dummy with no collision spawn directly on the item' s location, or does the game still move it off of the item's collision. if so the range will have to be bigger and then there is a slight chance of a problem if items are placed too close to each other...
Edit: a way you could get around the problem from my previous edit - scan through the dummies in range and only do the actions on it if it's "item[custom value of picked unit]" is the manipulated item.