Difference between revisions of "Talk:Globals"
Jump to navigation
Jump to search
imported>Xilver (New page: 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 glob...) |
imported>DragoonWraith (unfortunately, no) |
||
Line 1: | Line 1: | ||
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?[[User:Xilver | Xilver ]] | 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?[[User:Xilver | 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 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) |
Revision as of 15:23, 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)