Lua in eso is not allowing to use directory or file commands like require!
Just include the files to load in the manifest txt file of your addon and define a global variable like myAddonNamespace ={}. In your example this would be myTestImport = {} and then e.g. myTestImport.helloWorldText = "Hello World" and then in the other file do d(myTestImport.helloWorldText)
and add your needed variables and functions in different files to it.
|