View Single Post
01-11-15, 11:16 PM   #1
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Using variables across multiple files

Hello,

I've been trying to figure this out for a while now. I've googled everything I could possibly think of to try and find an answer I can understand. Also, let it be known that I'm still a very novice lua programmer; so any complex answers might go over my head

I'm fully aware that avoiding the usage of global variables is recommended, but is there a way to access variables across multiple addon files without the usage of global variables? Is it done by passing varargs? If so, I'm not even sure how that works either, despite seeing it in many addons.

Thanks!
  Reply With Quote