Quick Question Regarding Merchants and Barter

Discussion in 'Fallout General Modding' started by J_Fred, Oct 2, 2016.

  1. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
    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!
     
  2. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
    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!
     
  3. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    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.
     
    • [Like] [Like] x 1
  4. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
    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!
     
  5. NovaRain

    NovaRain Casual Modder Modder

    Mar 10, 2007
    You need to use hex editor to edit character flags in proto file, unless you want to take the scripting way.
     
    • [Like] [Like] x 1
  6. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    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.
     
  7. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
    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.
     
  8. Lexx

    Lexx Testament to the ghoul lifespan
    Moderator Modder

    Apr 24, 2005
    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.
     
    • [Like] [Like] x 1
  9. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
    Awesome. Thanks for the help, Lexx!