JamesTParker Posted November 5, 2019 Share Posted November 5, 2019 Even though I have access to this forum I don't really consider myself a "real" mod author yet, as I don't know how to do much and all my mods are tiny. My most popular mod is a mod that changes walking speed.... So I would appreciate some advice on my first "real" (aka not tiny) mod. The idea of the mod is to give every alchemy merchant at least one unique potion that they invented, to create some variation between alchemist. So they wont all just sell the same thing. Making all the potions was easy enough I've tested them, and they all work as intended. However I'm a bit worried about incompatibility issues as it will add items to so many merchants. What's way would you advise to add a item to a npcs merchant inventory which is least likely to cause conflicts with other mods? Link to comment Share on other sites More sharing options...
Reneer Posted November 5, 2019 Share Posted November 5, 2019 What game are you modding for? Skyrim? Oblivion? Morrowind? Link to comment Share on other sites More sharing options...
JamesTParker Posted November 5, 2019 Author Share Posted November 5, 2019 What game are you modding for? Skyrim? Oblivion? Morrowind?Skyrim. Sorry Should have mentioned that. Link to comment Share on other sites More sharing options...
steve40 Posted November 5, 2019 Share Posted November 5, 2019 Google is your friend. https://bertscktutorial.ucoz.com/index/adding_to_leveled_lists_the_easy_safe_way/0-20 Link to comment Share on other sites More sharing options...
foamyesque Posted November 7, 2019 Share Posted November 7, 2019 (edited) Google is your friend. https://bertscktutorial.ucoz.com/index/adding_to_leveled_lists_the_easy_safe_way/0-20 The problem with adding directly to the levelled lists is that I believe those are shared amongst the alchemists. OP needs to add a unique one to each merchant chest, in such a way as it a. refreshes and b. doesn't interfere with any other edits of that chest. Editing the merchant chest directly means it will have compatibility issues. So what probably needs to be done is to put an alias on each chest with the desired items in the aliases' inventory, and a brief script that fires every 48 ingame hours to, 1, remove any remaining added items from it (easy since they're going to be unique potions), 2, clear the alias, and 3, re-add the chest to the alias (which will in turn force the alias's inventory to be added to the chest). If however there *is* a unique levelled list for each merchant chest, you could do a script-based injection into that. However stuff added by script to a levelled list can also be *removed* by script to a levelled list, and if someone calls Revert() to what you've edited your stuff will go away. Same applies if you do it, to any changes someone else may have made. The alias method only fails if someone deletes the chest or edits the merchant faction to use a different one. Edited November 7, 2019 by foamyesque Link to comment Share on other sites More sharing options...
steve40 Posted November 8, 2019 Share Posted November 8, 2019 That should work. There are also threads discussing adding items to vendors here and here. Link to comment Share on other sites More sharing options...
JobVanDam Posted November 9, 2019 Share Posted November 9, 2019 Another option would be is to drop it in the alchemist's cell and give ownership to the alchemist. Problem is if bought once it won't respawn.Another modder and I did some extensive testing and for some reason items in a shop don't respawn but dungeons do.We added dungeon like keywords to the cell, waited 30 days in an adjacent hold but for some reason the cell won't respawn. Perhaps someone else knows what we did wrong and can help you figure out how to make a shop cell respawn. Link to comment Share on other sites More sharing options...
Recommended Posts