Creating a Merchant
Revision as of 15:07, 14 February 2012 by imported>Sirtaj (→Create a Faction)
To create a Merchant, follow these steps:
Create a Container
(and name it)
This is easier if you make a copy of an existing container, then remove everything from it (so you don't have to set up the model and sounds). Any of the chests starting with "Merchant..." are good ones to copy.
- Add any items you want the merchant to sell to the container.
- To give the merchant gold you can add one of the VendorGold<> leveled items to the merchant container.
Add the Container to the game
- It is a good idea to put this somewhere the player cannot get to it (for example, outside the building in an interior cell)
Create a Faction
(and name it)
On the Vender tab, do the following:
- Check "Vendor"
- Enter your daily start and end hours for the merchant
- Select a location for the merchant to offer their goods (for example, the shop cell). You can select "Near Self" to make the merchant sell anywhere.
- Enter a Radius if the merchant needs to be within a certain distance of a reference.
- Select the type of goods the merchant will sell from the Buy/Sell List drop-down menu (eg, VendorItemsApothecary or VendorItemsFletcher)
- Select the container that you placed ingame as the Merchant Container.
- Tick the "Not Sell/Buy" checkbox. (Note: there doesn't seem to be any documentation about this checkbox elsewhere, but all the in-game merchants appear to use it, and no items appear in either the sell or buy lists without it)
Create an Actor
(and name it, set up their clothes/race/etc the way you want them)
- Give the Actor a common voice type (such as FemaleNord or MaleDarkElf) - This is needed to give them dialogue to run a shop.
- Add the Faction "JobMerchantFaction" to the Actor's Faction list.
- Add the new faction you created to the Actor's Faction list.
Add the Actor to the game world, where you want them to be
If done correctly, your merchant should now sell the goods from the container when in the correct location at the correct time.
All that remains are any finishing touches you want to add to your merchant (AI Packages, extra dialogue, etc).