Originally Posted by Tristanian
I'm puzzled. Is MYSTRING a savedvar (declared in your .toc as a savedvar) and if so why do you need to define it at the highest level of your file ? You should only be setting it, if its value doesn't exist. If there's something else you want to achieve, why not describe it clearly, because so far I can't see the reason why you need to use the VL event ![Stick Out Tongue](//cdn-wow.mmoui.com/images/style_mmoi_wowi2/smilies/tongue.gif)
|
Read everything I said and you won't get confused
TO repeat: even if I refer to non-savedvars (as in the example above) they are NOT assigned when the first VARIABLES_LOADED/ADDON_LOADED event fires...
I want to use GetSpellInfo() in this function now anyway - and that DEFINATELY doesn't work at the point VARIABLES_LOADED fires - so...
I'm putting this down as another "shoddy Blizzard code" thing and rewriting my functions to work from a more reliable event (at least PLAYER_LOGIN doesn't fire TOO often) as I speak...