1. For a research project I am making an add-on that gives your character diabetes. While doing this I realized that for the sake of my sanity(and anyone who reads my code later) that it would make more sense to create the array that contains all of the foods and their glucose values in a separate file. I have the secondary file created, but now I'm not really sure how to read in the data and save it as an array in the main Lua file. I tried using dofile("nameoffile") but bugcatcher/bugsack keeps giving me an error saying that is a nil value. I've tried doing it 2 different ways and can't seem to find any more info to help.

    local foodList = {} foodList = dofile("foodList.lua")

  2. Nevermind guys, I got it figured out