I had this [link] problem a while ago...
Since then I have moved my mod to XSL entirely but the issue is still not solved and I'm tired of ignoring it.
Rosters on the battlefield are still mixed, which adds unwanted and unbalanced RNG to the fights since soldiers are often either too weak or too strong because of the way their gear mixes.
Since I can't fix this issue via XSL, does anyone have any leads on how I can rewrite part of the game's code to spawn soldiers with one entire roster or another?
Was hoping I wouldn't have to touch any c# but I don't have much choice if I'm trying to make a balanced troop rework.
Here is an example of my XSL in case you were doubting if I wrote it right.
Since then I have moved my mod to XSL entirely but the issue is still not solved and I'm tired of ignoring it.
Rosters on the battlefield are still mixed, which adds unwanted and unbalanced RNG to the fights since soldiers are often either too weak or too strong because of the way their gear mixes.
Since I can't fix this issue via XSL, does anyone have any leads on how I can rewrite part of the game's code to spawn soldiers with one entire roster or another?
Was hoping I wouldn't have to touch any c# but I don't have much choice if I'm trying to make a balanced troop rework.
Here is an example of my XSL in case you were doubting if I wrote it right.
XML:
<xsl:template match='NPCCharacter[@id="sturgian_soldier"]' >
<!-- Sturgian Soldier - T3 -->
<xsl:copy>
<xsl:apply-templates select="@*"/>
<face>
<face_key_template value="BodyProperty.fighter_sturgia" />
</face>
<skills>
<skill id="Athletics" value="75" />
<skill id="Riding" value="45" />
<skill id="OneHanded" value="100" />
<skill id="TwoHanded" value="40" />
<skill id="Polearm" value="70" />
<skill id="Bow" value="40" />
<skill id="Crossbow" value="40" />
<skill id="Throwing" value="40" />
</skills>
<upgrade_targets>
<upgrade_target id="NPCCharacter.sturgian_spearman" />
<upgrade_target id="NPCCharacter.sturgian_berzerker" />
</upgrade_targets>
<Equipments>
<EquipmentRoster>
<equipment slot="Item0" id="Item.sturgia_axe_2_t2" />
<equipment slot="Item1" id="Item.northern_round_shield" />
<equipment slot="Item2" id="Item.northern_spear_2_t3" />
<equipment slot="Head" id="Item.nasal_helmet_with_leather" />
<equipment slot="Body" id="Item.nordic_lamellar_vest" />
<equipment slot="Leg" id="Item.highland_leg_wrappings" />
<equipment slot="Gloves" id="Item.guarded_armwraps" />
<equipment slot="Cape" id="Item.battanian_chainmail_shoulder_a" />
</EquipmentRoster>
<EquipmentRoster>
<equipment slot="Item0" id="Item.sturgia_axe_2_t2" />
<equipment slot="Item1" id="Item.northern_round_shield" />
<equipment slot="Item2" id="Item.northern_spear_2_t3" />
<equipment slot="Head" id="Item.nasalhelm_over_leather" />
<equipment slot="Cape" id="Item.battanian_chainmail_shoulder_b" />
<equipment slot="Body" id="Item.nordic_lamellar_vest" />
<equipment slot="Leg" id="Item.highland_leg_wrappings" />
<equipment slot="Gloves" id="Item.guarded_armwraps" />
</EquipmentRoster>
<EquipmentSet id="sturgia_troop_civilian_template_t2" civilian="true" />
</Equipments>
</xsl:copy>
</xsl:template>
Last edited: