Jump to content

Photo

how to add items to an existing merchant

- - - - -

  • Please log in to reply
5 replies to this topic

#1
spicydeath82

spicydeath82

    Apprentice

  • Allies
  • 64 posts


Users Awards
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?
  • 0

#2
WillieSea

WillieSea

    Senior Scholar

  • Skyrim Scholars
  • 4,857 posts


Users Awards
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

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.
  • 0

#3
HeyYou

HeyYou

    Lt. Commander

  • TESA Team
  • 1,506 posts


Users Awards
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......
  • 0

#4
spicydeath82

spicydeath82

    Apprentice

  • Allies
  • 64 posts


Users Awards
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.
  • 0

#5
Cydonian_Knight

Cydonian_Knight

    Disciple

  • Allies
  • 368 posts


Users Awards

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.
  • 0

#6
spicydeath82

spicydeath82

    Apprentice

  • Allies
  • 64 posts


Users Awards
thanks cydonia. i thought as much but wasn't sure.
adding a second container with my merchant set as the owner did the trick. worked perfectly.
thanks guys.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users