hmm... getObject doesn't have game in front of it. use game in front of the first thing you use getLink for. also only wrap text inside of getObject with "..." getLink & other get/set functions do not contain quotation marks; apart from the bits where you need to add a string.
getName() returns the objects name & not the displayed names... according to David (I've not tested yet) but we supposedly have a getText function for next version rather than having to do all that textlanguage textall nonsense.
hehe - I see you have started adding comments after things too

I only do that because I have shitty short term memory so it's just as much there for me to remind myself what each thing is for & also to explain to everyone else who reads the scripts.
local obj, texts, lang
function dragItem()
obj = game:getLink(VGameUsedItem)
lang = game:getLink(VGameStandardLanguage):getName()
texts = obj:getLinks(VTextAll)
print("active dragged object:", obj:getName()) -- will print item table name
for i = 1, table.maxn(texts)
if texts[i]:getLink(VTextLanguageLanguage) == lang then print(texts[i]:getStr(VTextLanguageText)) end
end
end
I think? (off the top of my head)
also I think that I could technically shorten the other script I wrote... the if statements are not really needed.