You might name your sprites with the corresponding name or id:
NameEntity sprite,shipName$
Later on you can retrieve the name of the picked entity like so:
ShipName$=EntityName(PickedEntity())
After this, search in your ship type list for the proper name.
NameEntity sprite,shipName$
Later on you can retrieve the name of the picked entity like so:
ShipName$=EntityName(PickedEntity())
After this, search in your ship type list for the proper name.