[RESOLVED] Help creating Merc Clan [1.5.3]

Users who are viewing this thread

guiskj

Knight
I am trying to create a mercenary clan but I can't get the leader to show up correctly.

I thought the only two files one needed to create a Merc clan was "spclans" and "spspecialcharacters" (let's leave the party templates out for now)

Here is my setup:
"SPCLANS"
XML:
    <Faction
        id="testing_merc"
        initial_posX="472.0"
        initial_posY="372.0"
        banner_key="11.147.147.1536.1536.768.768.1.0.0.215.155.155.442.442.773.729.0.0.0"
        label_color="FF7B5869"
        color="FF7B5869"
        color2="FF7B5869"
        alternative_color="FF7B5869"
        alternative_color2="FF7B5869"
        culture="Culture.empire"
        default_party_template="PartyTemplate.kingdom_hero_party_mercenary_empire_template"
        settlement_banner_mesh="encounter_flag_f"
        is_minor_faction="true"
        is_clan_type_mercenary="true"
        name="Testing Merc"
        short_name="Test"
        tier="4"
        text="Testing 123."
    ></Faction>

"SPSPECIALCHARACTERS"
XML:
  <NPCCharacter id="spc_testing_merc_leader_0" name="{=7hrmlfxh}of the Mercs" voice="curt" is_template="true" default_group="Infantry" is_hero="false" culture="Culture.empire" occupation="Lord">
    <face>
      <face_key_template value="NPCCharacter.villager_empire" />
    </face>
    <skills></skills>
    <Traits>
      <Trait id="Valor" value="+1" />
      <Trait id="Mercy" value="-1" />
      <Trait id="Calculating" value="1" />
      <Trait id="Commander" value="6" />
      <Trait id="BalancedFightingSkills" value="5" />
      <Trait id="KnightFightingSkills" value="3" />
    </Traits>
    <equipmentSet>
      <equipment slot="Item0" id="Item.empire_sword_5_t4" />
      <equipment slot="Item1" id="Item.stronger_reinforced_kite_shield" />
      <equipment slot="Item2" id="Item.imperial_throwing_spear_1_t4" />
      <equipment slot="Body" id="Item.imperial_lamellar_over_leather" />
      <equipment slot="Leg" id="Item.lamellar_plate_boots" />
      <equipment slot="Head" id="Item.plumed_helmet" />
      <equipment slot="Gloves" id="Item.lamellar_plate_gauntlets" />
      <equipment slot="Cape" id="Item.pauldron_cape_a" />
    </equipmentSet>
    <equipmentSet civilian="true">
      <equipment slot="Item0" id="Item.empire_sword_5_t4" />
      <equipment slot="Item1" id="Item.stronger_reinforced_kite_shield" />
      <equipment slot="Item2" id="Item.imperial_throwing_spear_1_t4" />
      <equipment slot="Body" id="Item.imperial_lamellar_over_leather" />
      <equipment slot="Leg" id="Item.lamellar_plate_boots" />
      <equipment slot="Head" id="Item.plumed_helmet" />
      <equipment slot="Gloves" id="Item.lamellar_plate_gauntlets" />
      <equipment slot="Cape" id="Item.pauldron_cape_a" />
    </equipmentSet>
  </NPCCharacter>

I am basing this off the Legion of the Betrayed. This new clan shows up in the cyclopedia but the leader is blank and never spawns.
 
Sure, my problem was that the game was not generating leaders for my merc clan even though I was giving it a template.

I ended up using the Custom Spawns mod as an example for how to create factions, as the mod comes with a lot of custom ones. I highly recommend it, even if one does not wish to use its API, you can use it as an example of how to setup the XML for custom factions.
 
Back
Top Bottom