I have configured an item "Orb" within the items database and an item variable called "test.item" with its intial value set to the "Orb" item.
How would I obtain the name of this item during dialogue? Some other posts I have found lead me to believe I could accomplish this using the following snippet:
Code: Select all
[lua(Item[Variable["test.item"]].Name)]
Code: Select all
Dialogue System: Lua code 'return Item[Variable["test.item"]].Name' threw exception 'Lookup of field 'Name' in the table element failed because the table element itself isn't in the table.'
Code: Select all
Variable["test.item"]
Any suggestions would be appreciated. Cheers.