Talk:Globals

There are no discussions on this page.
Revision as of 18:57, 25 July 2007 by imported>Xilver
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Can one mod reference another mods global variable without making them interdependent? In otherwords, If I create a variable "firstmodpresent = 1" can "secondmod.esp" check for this global? Basically, what I'm attempting to do is set a flag for other mods to check to see if my mod is present. Is there a better way to do this? Xilver

No. You could do this in Morrowind, but not in Oblivion. Oblivion does not actually look for "firstmodpresent", but rather firstmodpresent's FormID. Since the first two values of the FormID are the load index of firstmod.esp, which would be quite variable, there is no way to figure out what firstmodpresent's FormID is from a script.
You could look into Mod De-Isolation, it might have some hints for you, but I suspect that what you're looking to do cannot be done simply, as it was in Morrowind.
Dragoon Wraith TALK 16:23, 25 July 2007 (EDT)
Thanks for the answer. Xilver
Return to "Globals" page.