Thanks for the response. I'm doing most of this with Lua script.
At this point in the script:
if itemName == "Large jug" then
return 'current item: ' .. itemName .. ' (x/5 pints)'
I already have retrieved the object under the cursor, 'obj', and I've tested to see if it's an item (it is), and I've even pulled the item's name from the object:
local itemName = obj:getTextStr(VObjectName)
Is there any way, using some similar syntax, to get the object's VALUES?
If I use:
local objVals = obj:getLinks(VObjectValues)
How would I traverse the objVals object to find the value I need?
I've solved the issue already using global variables, but this is Object-oriented code, and I'd like to be able to keep those variables local to the objects.
Thanks again for all the help! Just trying to wrap my head around the limitations.