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?
how to add items to an existing merchant
Started by
spicydeath82
, Sep 27 2011 06:49 PM
5 replies to this topic
#1
Posted 27 September 2011 - 06:49 PM
#2
Posted 28 September 2011 - 04:02 AM
I don't know of any tutorials.
You would probably do something like this.
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.
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.
#3
Posted 28 September 2011 - 02:07 PM
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......
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......
#4
Posted 29 September 2011 - 01:24 AM
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.
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.
#5
Posted 29 September 2011 - 04:20 AM
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.
#6
Posted 08 October 2011 - 01:22 AM
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.
adding a second container with my merchant set as the owner did the trick. worked perfectly.
thanks guys.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users
















Back to top







Sign In
Create Account


