BL Coding How to replace unit item loadouts?

正在查看此主题的用户

X3KJ

Recruit
Hi, i would like to replace some sturgian unit loadouts, because i think they are vastly inferior to all the other factions.
So i made a module NPCCharacters file, with the relevant units changed. But when i load my module, the equipment loadouts seem to be added to the existing ones, instead of replacing them. How can i change that?
 
最后编辑:
I've had the same problem. As a test I tried to give imerial recruits a mace and a shield. It spawned them in every possible combination of my gear and the vanilla ones. EG Some where had a mace and a shield, some had a sword and a shield, some had just a mace, some had just a sword.

My xm file looks like this:
XML:
<?xml version="1.0" encoding="utf-8"?>
<NPCCharacters>
    <NPCCharacter id="imperial_recruit"
                default_group="Infantry"
                level="6"
                civilianTemplate="NPCCharacter.empire_troop_civilian_template_t1"
                name="{=s3IJIFUw}Imperial Recruit"
                occupation="Soldier"
                is_basic_troop="true"
                culture="Culture.empire">
    <face>
      <face_key_template value="NPCCharacter.villager_empire" />
    </face>
    <skills>
      <skill id="Athletics"
             value="20" />
      <skill id="Riding"
             value="0" />
      <skill id="OneHanded"
             value="20" />
      <skill id="TwoHanded"
             value="10" />
      <skill id="Polearm"
             value="20" />
      <skill id="Bow"
             value="5" />
      <skill id="Crossbow"
             value="5" />
      <skill id="Throwing"
             value="10" />
    </skills>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.empire_mace_1_t2" />
        <equipment slot="Item1"
                 id="Item.eastern_wicker_shield_recruit" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.empire_mace_1_t2" />
        <equipment slot="Item1"
                 id="Item.eastern_wicker_shield_recruit" />
    </equipmentSet>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.empire_mace_1_t2" />
        <equipment slot="Item1"
                 id="Item.eastern_wicker_shield_recruit" />
    </equipmentSet>
    <upgrade_targets>
      <upgrade_target id="NPCCharacter.imperial_infantryman" />
      <upgrade_target id="NPCCharacter.imperial_archer" />
    </upgrade_targets>
  </NPCCharacter>
</NPCCharacters>
 
点赞 0
后退
顶部 底部