Drill Promotion

djenghis

Warlord
Joined
Apr 23, 2005
Messages
124
How can i mod the game so that i can give Navy Seal's the Drill Promotion, but that this is not possible for other gunpowder units?
 
It will be quite difficult if you have no XML knowledge. But it requires you making a new UNITCOMBAT type. This type would just be the Navy Seal.

In your Civ4BasicInfos.xml file you can change the UNITCOMBAT types.

Enter this into that file:

Code:
       <UnitCombatInfo>
	     <Type>UNITCOMBAT_SEAL</Type>
             <Description>TXT_KEY_UNITCOMBAT_SEAL</Description>
	     <Button></Button>
       </UnitCombatInfo>

Now if you have any 2d graphics knowledge you can create a button for this unit combat type and then make a reference to it in this file. in the <Button></Button> Tag.

Now you also added a reference to a description of this Unit Combat type.
You might as well change this accordinly but you don't have to.. If you wanted to, it would be located in the Civ4Objects.xml file which is located in the Text Folder.

Now to make the Navy seal have this promotion and no one else. You would have to do some edits of Civ4UnitsInfos.xml and Civ4PromotionInfos.xml both located in the Units folder.



--Of the Civ4UnitsInfos.xml file you will have to edit :

The navy seals Combat Type which is found under the tag:
<Combat></Combat>

You would change it to
<Combat>UNITCOMBAT_SEAL</Combat>




-- Now of the Civ4PromotionInfos.xml you will have to find the Drill promotion and change it's <UnitCombats>

You would change it to look like this:

Code:
        <UnitCombats>
	     <UnitCombat>
		  <UnitCombatType>UNITCOMBAT_SEAL</UnitCombatType>
		  <bUnitCombat>1</bUnitCombat>
	     </UnitCombat>
	</UnitCombats>


If you still want other UnitCombatTypes to have the drill just not gunpowder units, you'll just replace the Seal Unit Combat Type for the gunpowder one.

G'luck
Splinter13
 
Back
Top Bottom