Question about xml Editing for Bannerlord

Users who are viewing this thread

Greetings,

when I make a Mod which changes Troop Skills and just Troop Skills. Can I leave out the whole <equipmentSet> Section?
Right now it looks like this:

Code:
<NPCCharacters>
  <NPCCharacter id="battanian_mounted_skirmisher"
                default_group="Cavalry"
                level="26"
                civilianTemplate="NPCCharacter.battania_troop_civilian_template_t2"
                name="{=abFIj4ZW}Battanian Mounted Skirmisher"
                upgrade_requires="ItemCategory.war_horse"
                occupation="Soldier"
                culture="Culture.battania">
    <face>
      <face_key_template value="NPCCharacter.villager_battania" />
    </face>
    <skills>
      <skill id="Athletics"
             value="80" />
      <skill id="Riding"
             value="130" />
      <skill id="OneHanded"
             value="130" />
      <skill id="TwoHanded"
             value="80" />
      <skill id="Polearm"
             value="60" />
      <skill id="Bow"
             value="60" />
      <skill id="Crossbow"
             value="20" />
      <skill id="Throwing"
             value="130" />
    </skills>
     <equipmentSet>
      <equipment slot="Item0"
                 id="Item.battania_sword_4_t4" />
      <equipment slot="Item1"
                 id="Item.western_javelin_3_t4" />
      <equipment slot="Item2"
                 id="Item.studded_round_shield" />
      <equipment slot="Body"
                 id="Item.long_fur_coat" />
      <equipment slot="Head"
                 id="Item.battanian_plated_noble_helmet" />
      <equipment slot="Gloves"
                 id="Item.buttoned_leather_bracers" />
      <equipment slot="Leg"
                 id="Item.battania_fur_boots" />
      <equipment slot="Head"
                 id="Item.battania_fur_helmet" />
      <equipment slot="Cape"
                 id="Item.battania_cloak" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.battania_sword_4_t4" />
      <equipment slot="Item1"
                 id="Item.western_javelin_3_t4" />
      <equipment slot="Item2"
                 id="Item.studded_round_shield" />
      <equipment slot="Body"
                 id="Item.long_fur_coat" />
      <equipment slot="Gloves"
                 id="Item.buttoned_leather_bracers" />
      <equipment slot="Leg"
                 id="Item.battania_fur_boots" />
      <equipment slot="Head"
                 id="Item.battania_fur_helmet" />
      <equipment slot="Cape"
                 id="Item.battania_cloak" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.battania_sword_4_t4" />
      <equipment slot="Item1"
                 id="Item.western_javelin_3_t4" />
      <equipment slot="Item2"
                 id="Item.studded_round_shield" />
      <equipment slot="Body"
                 id="Item.long_fur_coat" />
      <equipment slot="Head"
                 id="Item.battania_fur_helmet" />
      <equipment slot="Gloves"
                 id="Item.buttoned_leather_bracers" />
      <equipment slot="Leg"
                 id="Item.battania_fur_boots" />
      <equipment slot="Head"
                 id="Item.battania_fur_helmet" />
      <equipment slot="Cape"
                 id="Item.battania_cloak" />
    </equipmentSet>
    <equipment slot="Horse"
               id="Item.t2_battania_horse" />
    <equipment slot="HorseHarness"
               id="Item.battania_horse_harness_halfscaled" />
    <upgrade_targets></upgrade_targets>
  </NPCCharacter>

Could I do something like this?

Code:
<NPCCharacters>
  <NPCCharacter id="battanian_mounted_skirmisher"
                default_group="Cavalry"
                level="26"
                civilianTemplate="NPCCharacter.battania_troop_civilian_template_t2"
                name="{=abFIj4ZW}Battanian Mounted Skirmisher"
                upgrade_requires="ItemCategory.war_horse"
                occupation="Soldier"
                culture="Culture.battania">
    <face>
      <face_key_template value="NPCCharacter.villager_battania" />
    </face>
    <skills>
      <skill id="Athletics"
             value="80" />
      <skill id="Riding"
             value="130" />
      <skill id="OneHanded"
             value="130" />
      <skill id="TwoHanded"
             value="80" />
      <skill id="Polearm"
             value="60" />
      <skill id="Bow"
             value="60" />
      <skill id="Crossbow"
             value="20" />
      <skill id="Throwing"
             value="130" />
    </skills>
</NPCCharacter>

And when I use a Submodule.xml like this would the game still load the default Equipmentsets from the Core Files?

Code:
<Module>
  <Name value="Sane Troop Stats"/>
  <Id value="FixUnitStats"/>
  <Version value="v1.1.0"/>
  <SingleplayerModule value="true"/>
  <MultiplayerModule value="false"/>
  <DependedModules>
    <DependedModule Id="Native"/>
    <DependedModule Id="SandBoxCore"/>
    <DependedModule Id="Sandbox"/>
    <DependedModule Id="CustomBattle"/>
    <DependedModule Id="StoryMode" />
  </DependedModules>
  <SubModules>
  </SubModules>
  <Xmls>
    <XmlNode>               
      <XmlName id="NPCCharacters" path="spnpccharacters_fixed"/>
      <IncludedGameTypes>
        <GameType value = "Campaign"/>
        <GameType value = "CampaignStoryMode"/>
      </IncludedGameTypes>
    </XmlNode>
    </Xmls>
</Module>

Sorry for this complicated posting, I am new to this and try to get some bearings.

Regards,
Ragnar

Edit: I can probably answer this by myself now, it seems that the Default Item Loadout gets loaded from the Core File. The Troops are not naked and still have their upgrade Path intact.
 
Last edited:
Back
Top Bottom