Thread Tools Display Modes
05-29-08, 06:57 PM   #1
Raden101
A Murloc Raider
Join Date: May 2008
Posts: 5
Post Var from other .lua file

im tring to get a var from another lua file but cant seem to do it. im kinda new to lua. also im using "Addon Studio for world of warcraft" as my editor, i dont klnow if that mattes or not.. thank you.
  Reply With Quote
05-29-08, 07:11 PM   #2
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: May 2007
Posts: 131
The variable you're trying to get must be a global in the other Lua file.

Open up the other file, and look to see if it says local before the name of the variable. If it does, delete the local and rename the variable to something un-commonly used (i.e. capital letters with your addon's name).

When the variable is global, it can be accessed by anyone else.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Var from other .lua file


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off