precompiled
New member
Hello,
I've just started playing around with Eluna and have two smaller questions so far, would be nice to get some help over here
1) localization of the scripts: I read on the FAQ in the forum, that it's best practice to "local'ize" the vars and functions via either just local em or putting em in a local table. So I expected not localized variables/functions to be global. But when I use CREATURE_EVENT_SMTH in my script (which I defined in eluna_globals.lua) it just derefences to nil.
Does this mean the scripts are in their respective local .. namespace (or however its called in LUA) or am I doin smth wrong?
2) coding style: Is there any "official" coding style? As the scripts have a kinda ... random chosen coding style (at least it doenst change inside a script as far as I can tell)
Thanks in advance!
P.S. What's that rule about deactivating my adBlock Oo
I've just started playing around with Eluna and have two smaller questions so far, would be nice to get some help over here
1) localization of the scripts: I read on the FAQ in the forum, that it's best practice to "local'ize" the vars and functions via either just local em or putting em in a local table. So I expected not localized variables/functions to be global. But when I use CREATURE_EVENT_SMTH in my script (which I defined in eluna_globals.lua) it just derefences to nil.
Does this mean the scripts are in their respective local .. namespace (or however its called in LUA) or am I doin smth wrong?
2) coding style: Is there any "official" coding style? As the scripts have a kinda ... random chosen coding style (at least it doenst change inside a script as far as I can tell)
Thanks in advance!
P.S. What's that rule about deactivating my adBlock Oo
Last edited: