Jump to content

How many forms can safely be added to a Form List via script?


gigantibyte

Recommended Posts

Speaking of form lists, what happens if my mod adds another mod's form to a list via a script, then the player removes the mod the form was from? Will my mod's list be updated automatically, moving up all forms that were listed below it? Or will a "ghost" of the form still exist, causing the game to crash if it is called, or something more mundane like having a false item count?

Link to comment
Share on other sites

If the edit to a form list is made with ListAddForm, which is an NVSE function, then nothing bad will happen if a mod is removed. ListAddItem works ONLY on the in-memory list, and does not save with the save game data.

 

AddFormToFormList however, which is a vanilla function, DOES save to the save game, and will cause issues upon removing a mod. You should ALWAYS use NVSE for editing form lists. Keep in mind that doing so will require you to make the edit every time the game is restarted, which is easily done by having a quest script running with the GetGameLoaded function checking first.

 

Check the link in my signature for more information about NVSE.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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