Advice on modding enemy settlement strength

Started by Eitch, November 02, 2018, 07:19:31 PM

Previous topic - Next topic

Eitch

Hello, I've been testing modification of Faction_Misc.xml in order to strengthen enemy settlement. Since attacking is not mandatory, my objective was to make it sort of optional objective... where settlement would be defended by so many enemies so that defeating it will not be viable until late-game.

This is the part that I am investigating:

      <li>
        <kindDef>Settlement</kindDef>
        <options>
          <Tribal_Warrior>7</Tribal_Warrior>
          <Tribal_Archer>10</Tribal_Archer>
          <Tribal_Hunter>10</Tribal_Hunter>
          <Tribal_HeavyArcher>10</Tribal_HeavyArcher>
          <Tribal_Berserker>7</Tribal_Berserker>
          <Tribal_ChiefRanged>10</Tribal_ChiefRanged>
        </options>
      </li>


Now when I modified code as this, only one enemy showed up on the settlement as expected:

      <li>
        <kindDef>Settlement</kindDef>
        <options>
          <Tribal_Warrior>1</Tribal_Warrior>
        </options>
      </li>


However, I quickly realized that enemy number on the settlements seemed to be capped at around thirteen. For example, even when I modify XML like this, number of enemies does not increase.

        <options>
          <Tribal_HeavyArcher>10</Tribal_HeavyArcher>
          <Tribal_Berserker>10</Tribal_Berserker>
          <Tribal_ChiefRanged>30</Tribal_ChiefRanged>
          <Tribal_ChiefMelee>30</Tribal_ChiefMelee>
        </options>


What I am guessing is that the numbers here actually indicate probability rather than fixed number, in which case where would one be able to find a code that allows modder to increase number of enemy pawns?