StealthDick Posted August 16, 2022 Share Posted August 16, 2022 I would like to add items from my mod to formlists and leveled lists without... 1. Manually dragging them into a leveledlist/formlist2. Using addItemToLeveledList or AddFormToFormList I would prefer to do it via script to avoid compatibility patches and having the items stay within the lists after mod uninstall. My current script: (some script) ;WeaponListMeleeALL AddFormToFormList WeaponListMeleeALL qqqWeightedGlove AddFormToFormList WeaponListMeleeALL qqqMartialTape AddFormToFormList WeaponListMeleeALL qqqBillyClub (some more script) ;WEAPONS addItemToLeveledList CondLeadPipeLoot qqqBillyClub 1 1 30 addItemToLeveledList CondLeadPipeLoot qqqBillyClub 3 1 35 addItemToLeveledList CondLeadPipeLoot qqqBillyClub 5 1 40 addItemToLeveledList CondLeadPipeLoot qqqBillyClub 8 1 45 addItemToLeveledList CondLeadPipeLoot qqqBillyClub 13 1 50 (even more script)I hear that addItemToLeveledList and AddFormToFormList should not be used unless 100% necessary, so I'm gonna stay away from those functions. I would prefer to do this the right way to avoid any issues once I release the mod. Thank you,StealthDick Link to comment Share on other sites More sharing options...
puddlepond Posted August 17, 2022 Share Posted August 17, 2022 addformtoformlist and additemtoleveledlist are savebaked, meaning that in the event that someone uninstalls your mod mid playthrough the lists you've changed won't return to how they were beforehand; every time the game calls on one of those lists from that point forward it'll be factoring in entries that no longer exist. you're right to avoid them. use listaddform and leveledlistaddform instead. i'd recommend giving this and this a read, but you're pretty much fine with what you've already got. Link to comment Share on other sites More sharing options...
Recommended Posts