pokecatches = {
["Bulbasaur"] = {chance = 150, corpse = 5969},
["Ivysaur"] = {chance = 275, corpse = 5982},
["Venusaur"] = {chance = 400, corpse = 5962},
}
print(table.maxn(pokecatches))
corpses = {}
for x=1, table.maxn(pokecatches) do
table.insert(corpses, pokecatches[x].corpse)
end
print(table.concat(corpses, ","))
io.read()
This section should add the corpse value to the corpses table, but it will not, print (table.man (pokecatches)) returns 0. Does anyone know why?