Jump to content

Script Question


maximusnz

Recommended Posts

Hey there guys and gals..

 

After a long break from fallout and modding I'm back into it again. Im wishing to tidy up and streamline my Goodthings in Goodsprings mod as theres many little things that erk me.

 

Basically my mod is a house mod with automatic sorters etc..

 

one of my pet peeves is..

When the player activates the armor sorting lockers and selects "add items" all the armor relevant to that locker gets sorted as it should, but it also adds what the player is currently wearing if their armor is also relevant to that locker

so the player ends up stark nekkid and is likely to forget to re add their armor before heading out into the wastes again.

 

Is there anyway to add this exclusion to the sorting script?

Link to comment
Share on other sites

To be able to work with non-vanilla armors, you have to build a formlist of the items that the player has equipped in all the armor slots, then use that formlist as an exclusion for the 'RemoveAllTypedItems' function. To do that requires NVSE.

One limitation of this method is that if you have more that one of an item that is equipped, the non-equipped copies won't get sorted. You could work around that some, but you wouldn't be able to get the health of the extra copies to sort them properly.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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