Changing Shopkeeper Inventories

Post » Wed Sep 07, 2011 7:34 am

It's been years since I've played Morrowind, but the upcoming release of Skyrim has had me in Elder Scrolls mode. I decided to play around with mods again, starting first with the shops in Balmora. I have 3 different questions:

1) How do I change a shopkeeer's inventory? Where is his/her inventory stored in the CS?
2) Every time I selected a shopkeeper, his/her info was greyed out and I couldn't edit the NPC. I recall this being a buffer to prevent glitches, conflicts, etc. How can I edit NPC's like this, and why exactly are they protected?
3) How do I tie an item ingame to a shopkeeper's inventory?

Sorry for the simple questions. Like I said, it's been years and I wasn't able to find anything about this on Google (perhaps I was using the wrong search terms). Anyways, thanks in advance. :)
User avatar
Tania Bunic
 
Posts: 3392
Joined: Sun Jun 18, 2006 9:26 am

Post » Wed Sep 07, 2011 4:43 pm

1. merchants either store items in their own inventory (accessible through their entry in the NPC list) OR their stock is kept in a container somewhere in the same cell as them that they can access. Actually any item in the same cell they are in that is OWNED by them can be sold by them if the item type is marked under their AI.

2. Um. Sounds like you have tried to edit a locked character. there should be an obivous Blocked box somewhere you can uncheck so things can be edited. Keep in mind that they were probably locked for a reason :D It could be also that the auto-calculate box could be limiting you from changing stats or whatever so just note if thats checked.

3. back to point one; easiest way is to just add the item to their inventory (lets say a potion) and make sure they are marked to actually sell the item type. (go to AI and Services tab and check the relevent boxes. So for our potion we would check the potions box).

If you want to add LOTS of things to a shop keepers selling list, just make a new random container, put the stuff you want in it and then place the container somewhere in the same cell (not somewhere accesible, like floating around outside the buildings if you are in an interior) and assign ownership to the guy.). That way they can sell things from it
User avatar
Beulah Bell
 
Posts: 3372
Joined: Thu Nov 23, 2006 7:08 pm

Post » Wed Sep 07, 2011 6:17 pm

edit: not sure why it did double post..
User avatar
Vicky Keeler
 
Posts: 3427
Joined: Wed Aug 23, 2006 3:03 am

Post » Wed Sep 07, 2011 11:24 am

1) How do I change a shopkeeer's inventory? Where is his/her inventory stored in the CS?

If you open the NPC's properties (double-click on them), you'll see an inventory. This is usually the primary source of inventory items. However, shop keeper inventory comes from their own inventory and all items and containers they own in the world.

2) Every time I selected a shopkeeper, his/her info was greyed out and I couldn't edit the NPC. I recall this being a buffer to prevent glitches, conflicts, etc. How can I edit NPC's like this, and why exactly are they protected?

This usually just means the NPC is set to autocalc, which uses their class to automatically calculate what their skills and stats should be (with a level provided). To disable this, just uncheck autocalc in the NPC's properties screen.
If that doesn't work, the template may be locked; right-click in the NPC list and uncheck the lock option.

3) How do I tie an item ingame to a shopkeeper's inventory?

You need to give the shopkeeper NPC ownership of the item. This means either adding it to their inventory (drag and drop into that section of their properties window) or setting the ownership on the item/container. To do the latter, double-click the container, and in the owner/set owner section, pick the NPC's ID from the drop-down list.
User avatar
Lucky Boy
 
Posts: 3378
Joined: Wed Jun 06, 2007 6:26 pm


Return to III - Morrowind