Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

how to add items to an existing merchant


spicydeath82
 Share

Recommended Posts

I've created a fully functional merchant, but i'd like to make an add on esp so i can add new varieties of weapons with

out directly messing with the contents of the existing merchant chest. i've heard the best way for an add on to add items

to a vendor chest is through the use of scripts. can somebody point out a good tutorial on how to do that?

Link to comment
Share on other sites

I don't know of any tutorials.

You would probably do something like this.

short myS

begin GameMode
if myS == 0
set myS to 1
NPCChestRef.AddItem NewItemA 1
NPCChestRef.AddItem NewItemB 1
NPCChestRef.AddItem NewItemC 1
endif
end[/code]

You could also check if the qty is less than a number in the merchants chest, and add some instead of just doing it once.

Link to comment
Share on other sites

Just been thru this recently. Couple options:

1. Add items directly to the merchants chest.

2. Add ANOTHER Chest, set ownership to the merchant in question, he will then sell those items as well.

3. Add via script. If it is just one merchant, relatively painless and easy, if you want to add them to MORE than one merchant though, then ya gotta be careful, as not all merchants actually have a 'merchant chest' per se. if you add the times to the merchant himself, he will also sell them. Not sure if it is as much of an issue in FO,as it was in Morrowind, but, in Morrowind, if you added an item to a merchant, that was better than what he was currently using, and he had the requisite skill to use it, the merchant would EQUIP it, not sell it......

Link to comment
Share on other sites

Sounds like adding another merchant container will be my best bet. I've heard bad things can happen if you add items to an existing chest, but

maybe that's just for the main game. thanks guys.

by the way does a merchant's chest need to be set to re-spawn or no? maybe i should look at the vanilla merchant chests to see.

Link to comment
Share on other sites

Sounds like adding another merchant container will be my best bet. I've heard bad things can happen if you add items to an existing chest, but

maybe that's just for the main game. thanks guys.

by the way does a merchant's chest need to be set to re-spawn or no? maybe i should look at the vanilla merchant chests to see.

If you want the inventory that the merchant sells to reset after 72 hours, set it to respawn. If you want the merchant to have specific items and for the inventory not to replenish after it has been purchased, set it to not respawn.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...