View Single Post
01-11-15, 11:50 PM   #3
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Thanks for the reply!

So I'm starting to understand but I'm not quite there yet it seems.

In the first file that's loaded (init.lua), I put this at the top
Lua Code:
  1. local AddOnName, AddOnTable = "My AddOn", {};
  2.  
  3. AddOnTable.myVar = "TESTING"

In my second file that's loaded (core.lua), I put
Lua Code:
  1. local AddOnName, AddOnTable = ...;
  2.  
  3. print(AddOnName); -- Correctly printed addon name
  4. print(AddOnTable.myVar); -- Printed nil :(

Last edited by Sweetsour : 01-11-15 at 11:56 PM.
  Reply With Quote