• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Remove items from Trader inventory

bloodlust67

New member
How would I go about removing certain items from the traders? I would like to get rid of skill magazines, tools, armor, and vehicles from Traders, but not loot in general.

Thanks!

 
I haven't tested this but it is what I'd try.

In traders.xml you'll find sections for each trader, and each trader has a Specialty and General groups of trader_items. There are item groups for the various items they sell.

If you don't want Bob to sell vehicles, find "item group=groupVehicles" and delete the line. Same for groupArmorLight, medium and heavy, skillMagazines, etc.

It would be best to do this as a modlet but you can just alter the original file for testing. Restore the original (or just do a file verify) afterwards.

The inventory probably won't show any changes until after the next restock day.

 
Removing items from traders

    <remove xpath="//item[@name='bookFiremansAlmanacAxes']"/>




Adding new items to an existing group

    <append xpath="//trader_item_group[@name='skillMagazines']">
        <item name="rangedModsSkillMagazine" count="1,3"/>
        <item name="meleeModsSkillMagazine" count="1,3"/>
        <item name="toolsModsSkillMagazine" count="1,3"/>
        <item name="armorModsSkillMagazine" count="1,3"/>
        <item name="highTechSkillMagazine" count="1,3"/>        
    </append>




Adding new trader groups

    <append xpath="//trader_item_groups">
        <trader_item_group name="skillMagazinesJen">
            <item name="workstationSkillMagazine" count="2,4"/>
            <item name="medicalSkillMagazine" count="2,4"/>
            <item name="roboticsSkillMagazine" count="2,4"/>
            <item name="explosivesSkillMagazine" count="2,4"/>
            <item name="bladesSkillMagazine" count="2,4"/>
            <item name="highTechSkillMagazine" count="2,4"/>
            <item name="toolsModsSkillMagazine" count="2,4"/>
            <item name="armorModsSkillMagazine" count="2,4"/>
            <item name="rangedModsSkillMagazine" count="2,4"/>    
        </trader_item_group>




Adding the new trader group to trader inventories

Code:
    <insertAfter xpath="//trader_info[@id='2']/trader_items/item[@group='skillMagazines']">
        <item group="skillMagazinesJen" unique_only="true" count="9"/>
    </insertAfter>
 
Back
Top