View Single Post
05/04/19, 05:32 PM   #3
Kronn8
Join Date: Oct 2017
Posts: 5
Originally Posted by Baertram View Post
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.
Thanks for your help! I'll put my functioning code in my original post.
  Reply With Quote