Originally Posted by Xubera
well, what if her mod's name is "Ze best mod Eva"
|
Doesn't matter. Table entries may contain spaces, accessed via table["Long Spaced Out Entry Name"].
if her addon is loaded last, wouldnt her onload only be called on functions after hers?
|
ADDON_LOADED fires once an addon's files are loaded and its savedvariables are available ingame. I'm not entirely sure what you're asking here... The OnEvent script I posted can check any other addons loaded before the event fires - If more is needed, changing the event to PLAYER_ENTERING_WORLD should cover just about everything.
Basically, that script without any modifications will have info available for every file contained within that addon specifically, which is honestly all that should be needed.
If you're checking for another addon entirely, a simple IsAddOnLoaded('addonName') check can confirm that it's there. You can check for another addon's frames easily as long as they're named and in the global namespace, and if the addon uses global variables or makes its namespace available globally, those are also accessible.