and voila! Now when you right-click to view the item description - just click identify to identify it.
If you feel that's too much like cheating then replace that line with these instead:
costGold = 50
if characters[id].gold >= costGold then
itemDesc.item = characters[id].equipment[selectedSlot].item --update itemDesc item
You can change the line 'costGold = 50' to however much you want to pay and it will check that you have that much and make an error noise if you don't have enough. Now you are 'paying' for the service of identifying, you just don't need to go somewhere special to perform it