Question on COMBAT types

Seneca37

Chieftain
Joined
Feb 25, 2004
Messages
5
Location
N.Carolina
Ok so lets say I want to make a simple unit - HUNTER - and I want him to have aaccess to 25% vs. CREATURES promotion. Where are the troop types defined so I can add others like COMBAT_UNDEAD etc. and thus add promotions for units to nemesis these units etc. Basically I just want to know where the troop types like melee, gunpowder, mounted are defined and if I can add a new category. Thanks so much
 
Seneca37 said:
Ok so lets say I want to make a simple unit - HUNTER - and I want him to have aaccess to 25% vs. CREATURES promotion. Where are the troop types defined so I can add others like COMBAT_UNDEAD etc. and thus add promotions for units to nemesis these units etc. Basically I just want to know where the troop types like melee, gunpowder, mounted are defined and if I can add a new category. Thanks so much

UNITCOMBAT's are defined in /Assets/xml/basicinfos/CIV4BasicInfos.xml.
 
Cool, thanks. Im sure it will all make sense once I pin down where everything is. Feel like I need a good thick civ4 reference manual on my desk here. Im excited that some mods I wanted to make in 3 are more feasible now. Ill give a look at the fall from heaven mod too as that probably illustrates alot of fantasy modding concepts
 
Ok just one more related question on this topic. Now ive got me a simple hunter and he gets a free 25% vs. animals. And I gave the animals a combat type animals and such. Now my hunters currently UNITCOMBAT_RECON.
Lets say I want to make a new category. So I go to basic infos and create a new tag UNITCOMBAT_HUNTER. Now where do I define what promotions will be available to hunter type units. Thx
 
Code:
<PromotionInfo>
			<Type>PROMOTION_COMBAT1</Type>
			<Description>TXT_KEY_PROMOTION_COMBAT1</Description>
			<Sound>AS2D_IF_LEVELUP</Sound>
			<PromotionPrereqOr1>NONE</PromotionPrereqOr1>
			<PromotionPrereqOr2>NONE</PromotionPrereqOr2>
			<TechPrereq>NONE</TechPrereq>
			<bBlitz>0</bBlitz>
			<bAmphib>0</bAmphib>
			<bRiver>0</bRiver>
			<bEnemyRoute>0</bEnemyRoute>
			<bAlwaysHeal>0</bAlwaysHeal>
			<bHillsDoubleMove>0</bHillsDoubleMove>
			<bImmuneToFirstStrikes>0</bImmuneToFirstStrikes>
			<iVisibilityChange>0</iVisibilityChange>
			<iMovesChange>0</iMovesChange>
			<iMoveDiscountChange>0</iMoveDiscountChange>
			<iWithdrawalChange>0</iWithdrawalChange>
			<iCollateralDamageChange>0</iCollateralDamageChange>
			<iBombardRateChange>0</iBombardRateChange>
			<iFirstStrikesChange>0</iFirstStrikesChange>
			<iChanceFirstStrikesChange>0</iChanceFirstStrikesChange>
			<iEnemyHealChange>0</iEnemyHealChange>
			<iNeutralHealChange>0</iNeutralHealChange>
			<iFriendlyHealChange>0</iFriendlyHealChange>
			<iSameTileHealChange>0</iSameTileHealChange>
			<iAdjacentTileHealChange>0</iAdjacentTileHealChange>
			<iCombatPercent>10</iCombatPercent>
			<iCityAttack>0</iCityAttack>
			<iCityDefense>0</iCityDefense>
			<iHillsDefense>0</iHillsDefense>
			<TerrainDefenses/>
			<FeatureDefenses/>
			<UnitCombatMods/>
			<DomainMods/>
			<TerrainDoubleMoves/>
			<FeatureDoubleMoves/>
			[B]<UnitCombats>[/B]
				[B]<UnitCombat>
					<UnitCombatType>UNITCOMBAT_RECON</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_ARCHER</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_SIEGE</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_ARMOR</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_HELICOPTER</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
				<UnitCombat>
					<UnitCombatType>UNITCOMBAT_NAVAL</UnitCombatType>
					<bUnitCombat>1</bUnitCombat>
				</UnitCombat>
			</UnitCombats>[/B]
			<HotKey/>
			<bAltDown>0</bAltDown>
			<bShiftDown>0</bShiftDown>
			<bCtrlDown>0</bCtrlDown>
			<iHotKeyPriority>0</iHotKeyPriority>
<Button>,Art/Interface/Buttons/Promotions/Combat1.dds,Art/Interface/Buttons/Promotions_Atlas.dds,8,2</Button>
		</PromotionInfo>


The bolded area is where you would define which combats gets the promotion in Promotioninfos
 
Back
Top Bottom