promotion for combat bonus on flat land?

davidlallen

Deity
Joined
Apr 28, 2008
Messages
4,743
Location
California
I would like to make an XML promotion which gives a combat percentage bonus on flat land: desert, plains, grassland, tundra where there is no hill, jungle or forest. This represents an advantage a fast car would have on wide open terrain.

In the promotion schema, we have iCombatPercentage, iHillsAttack, TerrainAttack and FeatureAttack. But there is no TerrainFeatureAttack. I can get partway by defining a positive iCombatPercentage, and then three negative values for iHillsAttack, FeatureAttack on Jungle, and FeatureAttack on Forest. However, there is a double negative on a forested hill, which I don't want. The civilopedia entry looks pretty cluttered too.

I can't quite see any way to make it work; can anybody suggest another variable or clever hack?
 
Its in the Rise of Mankind 2 mod. You may want to consider a mod mod.

Field1 and Field 2 promotions are what you want (sorry about the formatting):

<TerrainAttacks>
<TerrainAttack>
<TerrainType>TERRAIN_GRASS</TerrainType>
<iTerrainAttack>15</iTerrainAttack>
</TerrainAttack>
<TerrainAttack>
<TerrainType>TERRAIN_PLAINS</TerrainType>
<iTerrainAttack>15</iTerrainAttack>
</TerrainAttack>
</TerrainAttacks>

<TerrainDefenses>
<TerrainDefense>
<TerrainType>TERRAIN_GRASS</TerrainType>
<iTerrainDefense>15</iTerrainDefense>
</TerrainDefense>
<TerrainDefense>
<TerrainType>TERRAIN_PLAINS</TerrainType>
<iTerrainDefense>15</iTerrainDefense>
</TerrainDefense>
</TerrainDefenses>
 
Thanks for the suggestion. But it seems to me with that xml, in a grass/forest square, the unit will still get a bonus. I only want the bonus to apply when there is *no* forest, jungle or hill.
 
Thanks for the suggestion. But it seems to me with that xml, in a grass/forest square, the unit will still get a bonus. I only want the bonus to apply when there is *no* forest, jungle or hill.
Maybe a negative bonus for those features, which is balanced out by the bonus for being on grass/plains?
 
I haven't been able to figure out a way to avoid a double negative. I could put a negative for forest, and a negative for hills, but then I wind up with a double negative for forest/hill plots. If there were a TerrainFeature element for promotions, like there is for BonusInfo, it would work. Is there some other way I can get this to work in xml?
 
Wouldn't the car BE at a disadvantage in forests and hills? Unless there was a road? And even then it would have to be on the road for there to be an advantage.
 
Maybe the double negative is not so bad; but it doesn't feel right. This is for a promotion. The promotion would make the car better on certain terrains. It would feel wrong to me, if the same promotion makes the car worse on other terrains.
 
I think realistically it would be at a disadvantage, how many times have you taken a car offroad? Through trees and over hilly/rocky terrain?

PS I have actually taken a honda civic offroad once, but there was mud everywhere after and it was only through some fields...slid all over the place.
 
It is easy enough for me to try it that way. When people discover they got a promotion which gives them a net penalty in a certain case, they may complain.
 
Back
Top Bottom