Quick Question Regarding Merchants and Barter

J_Fred

Long time lurker
I've created a new map that houses a few npcs, and one happens to be a merchant.

I'm using the script for the random encounter merchant (ecmrchnt.int) so as not to screw up any outside quest lines or anything. As is, the map seems fine, except that when I attempt to barter, the dialogue box stays up and I can't actually select items to trade.

Furthermore, if I select the "Barter" option outside of dialogue, I get the prompt "This person will not barter with you." Which seems odd for a trader.

Can anyone point me in the right direction to fix either (or both) of these problems? I just want a decent trader for mid-game areas. I can edit scripts to some extent, so I'm assuming it's an easy fix.


Thanks!
 
Still trying to figure this out. I can see the barter screen and select some items, but the dialogue is still in the way. I can provide an image if that would help.

Anyone have any tips/pointers for placing a new merchant? I've read the tutorial, but the merchant box script I have is completely different than the one listed on the Vault wiki. (I think there was a change to merchant scripts in the RP maybe?) I don't need a box, really, as I don't mind just piling up a bunch of weapons/ammo on the merchant and initiate trading through dialogue like any normal NPC. I don't need him to restock. Just trade a few specific items!

Thanks for any help!
 
The critter you've attached the script to doesn't have the barter flag set in his proto file. Chose a different critter or edit the proto file.
 
Thanks Lexx!

I'm using Cubik's critter editor, but I don't see a way to flag barter for any critters, or to check if you can barter with them. Do I need to use another tool to change this?

Thank you!
 
You need to use hex editor to edit character flags in proto file, unless you want to take the scripting way.
 
You can also do so via the BIS mapper. If you've set it up correctly to create new protos, you can also edit existing ones.
 
In the Mapper I don't see a barter flag, either? I select the critter, and the options are to edit inventory and add a script, among a few other things. Am I missing something?

BTW, thanks again for all the help, guys. Right now I'm just placing everything in the merchant's inventory, and it seems to be working through dialogue and the barter prompt. I still have to use a proto that's already flagged to barter, but that's not a huge deal.
 
You'll have to click on the critter in the bottom interface. Then press the edit button. Then look under flags. You can't set the barter flag for just a single critter placed in the map. It's either all of that type or none.

I am not 100% certain right now, but I think after editing a proto file, you'll have to replace the critter in the map with the newly edited one. Else it won't update.
 
Back
Top