CHANGING EXISTING MERCENARY UNITS & ADDING NEW AND CUSTOM MERCENARY UNITS TO MERCENARY POOLS
Hi friends. While I'm experimenting mercenary system in Rome II for my mod, I've noticed modifying "mercenary_unit_groups" table doesn't work (crash at startup) and actually only editing startpos.esf is enough to adding new mercenary units.
!! First, always make a backup of your files before editing them !!
1- Choose a unit (vanilla or your custom unit, naming mercenary units like "Mer_Cel_Southern_Swords" is optional but recommended). For example, we choose "Mer_Cel_Naked_Spearmen" custom unit.
2- Open "startpos.esf" with ESF Editor.
3- There are 2 types of mercenary units in the game: provincial mercenary units and factional mercenary units. Provincial mercenary units are available all factions but factional mercenary units are only available to that specific faction.
4- For provincial mercenaries;
This is Aquitania province's array;
Now expand PROVINCE_MERCENARY_POOL, as you can see, I've added my custom unit and you can also duplicate MERCENARY_POOL_UNIT_ARRAY's and add another mercenary unit:
5- For factional mercenaries; same method applies here but this time expand FACTION_ARRAY as shown in picture:
You can duplicate mercenary pool unit arrays and add another mercenary unit here too, as for numeric values:
1 == Starting count for campaign map
0,1 == Chance to replenish
3 == Max count
1 == Max replenish per turn
6- Now let's test it:
We can recruit both provincial and factional version of Mercenary Celtic Naked Spearmen unit.