View Single Post
11-07-10, 10:00 PM   #8
Taroven
A Cyclonian
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 49
Originally Posted by Xubera View Post
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.
__________________
Former author of EventHorizon Continued and Other Releases.
  Reply With Quote