Quote:
Originally Posted by SanDBoX
what would be the easiest way to import the file, can you just import the file and refrence the table? going to try a few things tonight, but pointers would be very helpfull.
|
A good start would be:
Recipes = {}; -- creates empty table
Recipes = Turbine.PluginData.Load(Turbine.DataScope.Characte r, "Recipes") or Recipes; -- This makes the data scope character specific, tries to load Recipes.plugindata from characters PluginData folder (that's where the file needs to be placed) and defaults to the empty table if not found
Then you can reference to it, for example:
Recipes.Cook.Tier1.Recipe1["Name"]
and so on (depending on how it's structured)
-Chiran