How do I add items to merchant inventories?

Post » Mon Jun 18, 2012 6:42 am

Im making a mod that adds a few new ingredients and Im not sure how to get those ingredients into merchant inventories. I duplicated an existing ingredient and it had the keywords "VendorItemFoodRaw" and "VendorItemIngredient". Do those automatically add the ingredients to sell lists?
User avatar
Louise Andrew
 
Posts: 3333
Joined: Mon Nov 27, 2006 8:01 am

Post » Mon Jun 18, 2012 9:08 am

You have to modify the vendor faction.

Creating a merchant, starting with duping an existing one:

Type "Belethor" into the search bar.
Click "All" at the bottom of the list on the left.
Click and open Belethor.
Click "Factions"
You'll see Services Whiterun Belethor Goods Faction.
Change the ID of the open Belethor to whatever you want.
Change the name.
Press okay. You've now made a duplicated belethor.
Open the duplicated belethor.
Click factions.
Double click "ServicesWhiterunBelethorGoodsFaction".
Change the ID.
Change the name.
Click okay. The game will create a new faction for you.
Delete ServicesWhiterunBelethorGoodFaction from Belethor.
Right click the factions window, click "New", and find the new faction you made.
Double click the faction in the factions window.
Click the "Vendor" tab
See "Reference"? It says BelethorsMerchantChest.
Go to the search bar in the items list on the left and find BelethorsMerchantChest.
Duplicate it.
Change the ID.
Change the Name.
Save.
now in the Vendors tab of the new faction you made, change the Reference to the new chest you made.
Now double click the new chest you made and you'll get a window with an inventory section labeled "Item list".
Inside that list are vendor object groups.
You can edit or duplicate or whatever the hell you want to these- but if you edit one, it will apply to ALL merchants who use it, so if you're making your own merchant and want to ADD things, make a new one.
Simply drag items into the list. The "Count" variable determines how many the vendor can have at any given time, and the "Chance None" variable determines what the chance is that the vendor doesnt have ANY of the items in that grouping on hand.

Sorry if that's hard to follow.

Basically, a vendor requires:
Vendor Faction, which includes
Vendor Chest, which includes
Vendor Item Lists, which include
Items and quantities and the chance they appear in the shop.

It's not as complicated as it sounds. The steps described above simply work backwards from an existing vendor to learn how the information comes together.

http://steamcommunity.com/sharedfiles/filedetails/?id=7766

I made this mod by creating a new vendor item list by duping a separate one, and loaded it with gemstones. Then I added that list to belethor's WhiterunGoodsChest, which is tied to his faction, which is tied to him as an NPC. It's really quite simple.
User avatar
Miss Hayley
 
Posts: 3414
Joined: Tue Jun 27, 2006 2:31 am

Post » Sun Jun 17, 2012 8:27 pm

wow. Thats alot. But say I wanted to add the items to just Belethor, I would put the new items in BelethorsMerchantChest?
User avatar
-__^
 
Posts: 3420
Joined: Mon Nov 20, 2006 4:48 pm

Post » Sun Jun 17, 2012 8:51 pm

If you want to add them to belethor, find the BelethorsMerchantChest in the finder on the left. Under "Item List" double click any of the files, change the name and ID, and simply drag items into the list. That'll make a brand new Item List that applies only to Belethor and doesn't screw up anybody else.
User avatar
Flutterby
 
Posts: 3379
Joined: Mon Sep 25, 2006 11:28 am

Post » Sun Jun 17, 2012 5:30 pm

Gotcha. Thanks a lot!
User avatar
Alexx Peace
 
Posts: 3432
Joined: Thu Jul 20, 2006 5:55 pm

Post » Mon Jun 18, 2012 3:46 am

Think of the item lists as "departments". Some merchants have a one handed weapons department, some have a gemstone department, some have a miscellaneous goods department. If you modify a department, it affects all merchants that have it. If you duplicate a department and make a new one, you can apply it to whichever merchant you want without affecting any others, and you set the inventory yourself. Belethor's Faction is his "Franchise", which has his "Chest", or "Catalog", which sells you stuff from his "Departments", in which his "Inventory" is separated into sections. That's how I remember it.


User avatar
Roddy
 
Posts: 3564
Joined: Fri Jun 15, 2007 11:50 pm


Return to V - Skyrim