I know that you can use GameInfo to extract XML data into LUA, but how would I organize them into a database of leaders for LUA?
Or am I doing this right at all?
Or am I doing this right at all?
Code:
local LeaderFlavor = {}
for row in GameInfo.Leader_Flavors() do
table.insert(LeaderFlavor, {row.LeaderType, row.FlavorType, row.Flavor})
end
print(table.getn(LeaderFlavor))