Relative Content

Tag Archive for arrayslualua-table

Creating separate lua tables for each object in an array

So I have an array of creatures from a game, each one is just the name as a string. I want to iterate over each one and create a table for each one that contains all of the creatures stats, hp, damage, etc. But I can’t find a way to create new Lua tables, as assigning a new variable to a table doesn’t copy it.