ID:155340
 
What I'm trying to do is that when a player is damaged there overlay is changed through a cycle of 10 different icon states, one icon state for each time he is damaged, and for the item in his inventory to change as well, I'm confident there is a way, i'm just not sure how.
locate() is what you're looking for if you're needing to find an item in your inventory/contents.

obj

items

shirt

pants

shoes

example: var/obj/items/shirt/shirt = locate() in contents
In response to Neimo
ah, so I would search it and then assign it to something so that I could modify it, thanks :)