Let's put it this way:
Say that I have ExhibitA.esm, which has 2 empty FormLists
Then I have ExhibitB.esm, which populates those FormLists with its own entries.
If I deactivate ExhibitB.esm but still activate ExhibitA, will those FormLists be considered empty by the game?
I'm not going to just add Dawnguard items, but also create new items. They'll only be ARMA, ARMO, and COBJ entries. I'll add ARMO entries of both Dawnguards's and mine to the FormLists.
That's what the extension should do.
I'm saying this because using a script that checks for plugins seem to be redundant, and the script itself is independent.
Basically, this is what my script looks like: (pseudo-code, I don't remember the function calls off the top of my head)
FormList ListSkyrim AutoFormList ListDawnguard AutoAddInventoryEventFilter(ListSkyrim)AddInventoryEventFilter(ListDawnguard)OnAddedItem(Form A) If(A)IsInList(ListSkyrim) DoThis(A,ListSkyrim) Else If(A)IsInList(ListDawnguard) DoThis(A,ListDawnguard) EndIfEndOnAddedItem
The "DoThis" function is an independent function that accepts input and do things based on that. It's a bit hard for me to show you the script (I'm on mobile). Either way, the point is that the script doesn't need to know whether Dawnguard is installed or not, currently the script already has the empty FormLists (which won't do anything). The goal is to simply populate those empty FormLists with a new plugin data.