Board Thread:Lua Help/@comment-25176295-20140924012424

Being completely new to LUA, I have this page to begin understainding lookup tables, and have gotten the example code to work. But am struggling to make that more usable for my needs.

My Module:Item/data page has (in comments) how I believe I need to structure the data file for the lookups, but what I am needing is how to modify my module page to use the sub-keys. Once I get pointed in the right direction, I should be able to decypher what it is I need to do for the other sections I will need to create, but for now, what I need is a return of something like this:



This information would be used similiar to the template I'm currently using on this page.

The other fields would be used in a different function call (best way?) to create output differently for other pages that need that same item's other fields. 