Could you give me an example of what you are trying to do please?
The data structure in the wiki is correct, although it doesn't contain all of the available fields. I have filled in ones I know about as best I could, but there are still quite a few missing from it.
Certain table names may be reserved such as
Characters because it is used for accessing the characters table with the new shorthand Lua script code, like so...
for i = 1, total.maxn( Characters["Tom"].Items) do
print( i, Characters["Tom"].Items[i]:getName() )
end
...code is unverified, I wrote it off the top of my head. If it is correct it should print out all the items currently in the characters possession into the log file.
With tables containing multiple data you need to iterate via table index values. The example I provided above (if correct) loops from 1 to the total value of data inside of the table & the i is incremented by 1 on each loop.
-- longhand code this time....
local itm = getObject("Characters[Tom]"):getLinks(VCharacterItems) -- store items in a variable
for i = 1, #itm -- for 1 to total of items found in itm do
print( itm[i]:getName() ) -- print the name of the items
end
--itm[1] for instance would access the first table index value.
It's a bit hard to explain all of this in a few words, but I'm sure you'll get the hang of what needs to be done for each type of table before long.
P.S: I am the person who provides English support for Visionaire Studio, in regards to the editor & scripting, although the devs & other members do occasionally save me from having to answer threads at times.
