Jump to content

Adding items to form list IF the mod is installed


angryglock

Recommended Posts

I'd like to add my food items from my mod Nordic Cooking into the form lists of Frostfall but only if Frostfall is installed. In other words I don't want to patch my mod nor build another version of it for FF. Ideally the script would run once check for the mod, add the items and then go dormant.

 

Does anyone know how to go about that and is it considered a safe practice? I don't want to mess up anyone's save with a bad script plan.

Link to comment
Share on other sites

I'd start with http://www.creationkit.com/GetFormFromFile_-_Game and try to load Frostfall's formlist in some sort of initialization script, like the OnInit for a quest or the OnConfigInit event in an MCM script, if you have one. If it comes back None, then abort and assume the mod is not installed, otherwise add your forms. I'm not sure what happens with persistence of those forms (which are really just references) in Frostfall's formlist if your mod is uninstalled after the forms are added. I would assume they all become 'None'. Not sure if that would break stuff, but a few tests could verify.
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...