BL Coding Adding banners to troop equipment

正在查看此主题的用户

Zeonvision

Recruit
I'm trying to create a new troop (or edit troops) that will carry the campaign_banner_small item, but it seems they won't even appear like they do on companions.

(If you don't know, you can enable cheat mode and get a Campaign Banner Small from the inventory. Equip it to yourself or to a companion and it will be used in lieu of a shield. The other banners are broken at the moment.)

Editing the equipment on NpcCharacters doesn't work, the item won't even appear on the troop. I tried creating a new troop type that only has a banner in the item section. Also, editing an existing troop type (Vlandian Banner Knight, in my case) to equip banners instead of shields has some of the troops still using shields.

XML:
<?xml version="1.0" encoding="utf-8"?>
<NPCCharacters>
  <NPCCharacter id="vlandian_banner_bearer"
                default_group="Cavalry"
                level="31"
                civilianTemplate="NPCCharacter.vlandia_troop_civilian_template_t3"
                name="{=bTApMxWr}Vlandian Banner Bearer"
                occupation="Soldier"
                culture="Culture.vlandia">
    <face>
      <face_key_template value="NPCCharacter.villager_vlandia" />
    </face>
    <skills>
      <skill id="Athletics"
             value="60" />
      <skill id="Riding"
             value="220" />
      <skill id="OneHanded"
             value="220" />
      <skill id="TwoHanded"
             value="60" />
      <skill id="Polearm"
             value="280" />
      <skill id="Bow"
             value="25" />
      <skill id="Crossbow"
             value="25" />
      <skill id="Throwing"
             value="25" />
    </skills>
    <equipmentSet>
      <equipment slot="Item0"
                 id="Item.campaign_banner_small" />
      <equipment slot="Body"
                 id="Item.coat_of_plates_over_mail" />
      <equipment slot="Leg"
                 id="Item.strapped_mail_chausses" />
      <equipment slot="Head"
                 id="Item.visored_helmet_over_mail_coif" />
      <equipment slot="Gloves"
                 id="Item.lordly_mail_mitten" />
      <equipment slot="Cape"
                 id="Item.green_hood" />
    </equipmentSet>
    <equipment slot="Horse"
               id="Item.t2_vlandia_horse" />
    <equipment slot="HorseHarness"
               id="Item.chain_barding" />
  </NPCCharacter>
</NPCCharacters>

The module loads well and I can spawn the new troop type, so it has to do with the item. Do I need to configure something else or is it just broken?
 
Answering one of my own questions:

Also, editing an existing troop type (Vlandian Banner Knight, in my case) to equip banners instead of shields has some of the troops still using shields

Editing an existing troop doesn't remove its child elements as explained here, so the existing equipment sets aren't deleted and the game spawns the troops selecting a random set for each one.
 
点赞 0
后退
顶部 底部