Yet another question - starting bodyguards


Hey guys, I have yet another question regarding starting bodyguards (spearmen and militia that comes with your sov at the very beginning of the game). Since I like more epic games, I changed group values for units, to come in higher numbers. From that moment, however, these starting bodyguards always come as one individual, i.e. one spearman and one militiaman. Any idea what I might have done wrong?

 

Thx!

11,700 views 5 replies
Reply #1 Top

Don't know what you did to tell you if you did somethign wrong.

Reply #2 Top

I basically edited TroopCount in CoreUnitGroupingTypes (increased to 5, 10, 15, 20). Plus XP modifiers, city growth parameters and level barriers in CoreImprovements and ElementalDefs.

 

BTW, I have another question. With higher troop count (i.e. 10) in tactical and strategic map as well, all troops within unit merge into single figure. According to HP, att, defs etc. there are 10 of them, but graphically merged into one figure. Do you know anything to prevent that?

Reply #3 Top

There was no need to switch that as that will have no effect on the group that your sovereign starts with... Here is a copy of the code from CoreUnits.xml under the "Sovereign_Relias". Notice the number 3 (you might want to change that to a higher number as well). You would need to do this for each of the sovereigns.

        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>SummonUnit</Attribute>
            <Value>1</Value>
            <Multiplier>3</Multiplier>
            <UnitClass>Unit_Spearman_Altarian</UnitClass>
        </GameModifier>
        <GameModifier>
            <ModType>Map</ModType>
            <Attribute>SummonUnit</Attribute>
            <Value>1</Value>
            <Multiplier>3</Multiplier>
            <UnitClass>Unit_Peasant_Altarian</UnitClass>
        </GameModifier>

Also, if you are going this route, you will need to look in CoreWorld\CoreFormations.xml

as well. They only have arrangements of units up to 9. So you would need to add your own formations up to 20 people (add in 11 more formations, otherwise those units will never appear and you will get weird effects).

You will need to go through all the single spawned units, like trolls and dragons and beef up their attack / defense to account for the larger number of troops and the higher attacks. For example, when you have a group of 20 troops the damage is not  a simple multiplication, but 20 different strikes are measured and so you would have to account for this damage increase.

The heroes under this system will be highly reduced in strength as well, unless you change them as well. But changing the equipment they use will be a rather daunting task, as you would have to make a hero copy of each item and a unit copy of each item, as one option. Otherwise any damage increase on weapons will also be visited by units. Unless of course you go through each hero and just give them a simple attack bonus (which means you would probably have to add attack bonuses the hero gets per level to account for the larger number of troops), not to mention a hp increase just to keep heroes in the game a feature.

Looks like you are going to go through a lot of work to get this to balance out, good luck.

Reply #4 Top

Thx parrotmath. I decided to swith back to original values (ovewrote modded xml files from backup) and do only small changes:

- unit groups changed to 3, 5, 7, 9

- combat xp modifier changed to 0,09

 

But with only these two changes, I get sometimes bug with city militia: in one case (level 3 town), the melee militia spawned just as 3 solo guys, instead of group of 3 (or5?). What could I have done wrongly?

Thx, my last question in this thread:)

Reply #5 Top

For militia you will have to dig around the CoreImprovements.xml this is where their size is dictated, I don't know why they showed up as 3 solo guys, but that is where the defenders are determined for a city.