Hello! I'm newbie to modding. I will be grateful for any advice.
I edited some medical groups, but did`t get the desired result. If I understood correctly then propery <trader_items count="all"> is spawning each groups in trader list. And that <item group="rareMedicine" count="2"> means a two random items spawning from group="rareMedicine"? I have tried many variations but the result isn`t what I expected. Including complete replacement names group with medicine/rareMedicine and commenting on other groups who may including medicine or rareMedicine group. Who know whats need do? My randoms roll list:
no any item from group="rareMedicine"
bigger than 2 items from group="rareMedicine" (3-6 items)
bigger than 5 different item and different/same items from group="medicine".
My traders.xml:
<trader_info id="2" full_reset="true" min_inventory="50" max_inventory="100" min_items_swapped="20" max_items_swapped="20" reset_interval="4" open_time="4:05" close_time="21:55">
<trader_items count="all">
<item group="rareMedicine" count="2" prob="1"/>
<item group="medicine" count="5" prob="1"/>
<item group="traderGeneral" count="4,8"/>
<item group="generalResources" count="9,14"/>
<item group="constructionSupplies" count="2,8"/>
<item group="decorativeBlocks" count="2,7"/>
<item group="tools" count="1,2"/>
<item group="weaponsMeleeAll" count="1"/>
<item group="weaponsGunsAll" count="1"/>
<item group="weaponsGunParts" count="1"/>
<item group="clothes" count="1,4"/>
<item group="groupArmorLightMixed" count="1,2"/>
<item group="groupArmorHeavyMixed" count="1,2"/>
<item group="traderElectrical" count="1,2"/>
<item group="modAllT1SecretStash" count="1,2"/>
</trader_items>
</trader_info>
Goup lists:
<trader_item_group name="rareMedicine" count="1">
<item name="medicalFirstAidKit"/>
<item name="drugAntibiotics"/>
<item name="drugFortBites"/>
<item name="drugRecog"/>
<item name="drugSteroids"/>
<item name="drinkJarGrandpasMoonshine"/>
<item name="drinkJarGrandpasAwesomeSauce"/>
<item name="drinkJarGrandpasLearningElixir"/>
</trader_item_group>
<trader_item_group name="medicine" count="1">
<item name="medicalBloodBag" count="5"/>
<item name="medicalFirstAidBandage" count="5"/>
<item name="medicalBandage" count="5"/>
<item name="medicalSplint" count="5"/>
<item name="drugPainkillers" count="1"/>
<item name="drugVitamins" count="1"/>
<item name="medicalPlasterCast" count="1"/>
<item name="medicalSewingKit" count="1"/>
</trader_item_group>