Triarii is a specific case handled on the FoG2 side (Field of Glory II\Data\scripts\LiaisonTools.bsf), here is an excerpt from it:
Code: Select all
// Add a proportion of triarii to pre-Marian legionary units
if (done == 0)
{
if ((StringCompare(gLiaisonUnitData[liaisonUnitIndex].type, "Hast_Princ") == 1) || (StringCompare(gLiaiso
nUnitData[liaisonUnitIndex].type, "Hast_Princ_Vet") == 1))
{
AddProportionalFOGUnits(liaisonUnitIndex, side, unitType, army, FOGUnits, "Triarii", 2, 1
);
done = 1;
}
}
// Create other unit types normally.
if (done == 0)
{
LiaisonCreateFOGunits(liaisonUnitIndex, side, unitType, army, FOGUnits);
}
To get something like what you're aiming for in Empires, you might want to check out how it's done in some of the Empires mods out there. Usually, you'd have to tinker with the "Data\Scripts\BattleConnection.BSF" file. Here's what you could do:
Code: Select all
if ( idside == 8 ) // UNIQUE LIST FOR CARTHAGE (ID = 8)
{
if ( StringCompare(squadtemp, "Spanish_Scutarii") == 1 )
{
if ( randomunit <= 25 )
{
squadtemp = "Thureophoroi";
}
else if ( randomunit <= 50 )
{
squadtemp = "Spanish_Scutarii";
}
else if ( randomunit <= 75 )
{
squadtemp = "poeni_foot";
}
else
{
squadtemp = "Italian_Foot";
}
unitchange = 1; // So that none of these changes for Carthage are again changed further down, under Semitic
}
While this method comes with some unfortunate limitations, I'm currently testing a potential solution that I believe could be better - and this one is entirely implemented on the FoG2 side.