Using Python, I need to set the <iAirCombat> value for unit in the CIV4UnitInfos.xml file. The problem is I can't find a setAirBaseCombatStr() command in the python reference. Is there another way to set this value?
The same thing I did for land and sea units. I take the air combat values of 3 aircraft and add them together to give the new (Tactical or Strategic) "Air Force" unit the combined value for air combat. The <iCombat> value can be set for land and sea units, but since air units use the <iAirCombat> value for strength, and there is no python method to edit that <iAirCombat> value; it looks like I'm hosed.
You could, as an alternative, define identical units with different air combat strength values? Then convert the unit to some other UnitType whenever you need to change the value.
You could, as an alternative, define identical units with different air combat strength values? Then convert the unit to some other UnitType whenever you need to change the value.
If someone introduces a new air unit, then there would be a need to create more "identical" units. No. I think I have a better solution. I will have to limit the combined air units to the same type of unit. When I convert the units, I will give one of them a 100% combat promotion for each unit added to the Air Force (Max 5 units for an industrial Air Force built in the future era). It looks like this is another work around that will be solved by using a custom promotion.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.