Hello good people of the Picotron! First time posting. I apologize if I<m not posting in the right forum, but I<m a bit lost in the current layout of the site.
I'm a amateur programmer who never went too far qith this hobby, so I thought maybe something meant to be "easy" like Picotron could be a thing for me, the eternal wannabe game designer.
My question to day is about tables.
I can<t quite get them to work. I use simple one dimension arrays, but I need more of a Pascal-type of record, and when I read the Lua documentation, it seems to be possible, but my code doesn<t compile when I try to create tables with more than one dimension or different types of variable. It<s a syntax problem. I know what I want to do, but I can't find the right syntax.
For instance, in my RPG, there will be a party of six characters. So I need a table with at least a string column for the name of the character, a number column for the character sprite number, one column each for the chacter<s abilities. At the end of the day, there will be a lot of data in that table.






11 comments




