Difference between revisions of "Talk:Globals"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(unfortunately, no)
imported>Xilver
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
: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.
: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 Tutorial|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.
:You could look into [[De-Isolation Tutorial|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.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 16:23, 25 July 2007 (EDT)
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 16:23, 25 July 2007 (EDT)
::Thanks for the answer.[[User:Xilver | Xilver ]]

Latest revision as of 18:57, 25 July 2007

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