How do you edit units and buildings?

bhavv

Glorious World Dictator
Joined
Jun 13, 2006
Messages
7,358
I've been searching and trying to find a guide on how to edit the stats on buildings and units already in the game, but cant find anything on how to do this.

Can anyone please find me a guide on how to modify units, or give me an example of how to do this?

E.G. say I want to buff Swordsmen to 7 :strength:, and Vultures bonus vs melee to 50%, how can I do this?
 
For the Swordsmen buff to 7, you need to change their <iCombat> from 6 to 7.

Code:
			<FeatureImpassables/>
			<TerrainPassableTechs/>
			<FeaturePassableTechs/>
			[COLOR="Red"]<iCombat>7</iCombat>[/COLOR]
			<iCombatLimit>100</iCombatLimit>
			<iAirCombat>0</iAirCombat>
			<iAirCombatLimit>0</iAirCombatLimit>
			<iXPValueAttack>4</iXPValueAttack>

For the Vulture upgrade you need to change their <UnitCombatMods>

Code:
			<FeatureDefenses/>
			<UnitClassAttackMods/>
			<UnitClassDefenseMods/>
			<UnitCombatMods>
[COLOR="red"]				<UnitCombatMod>
					<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
					<iUnitCombatMod>50</iUnitCombatMod>
				</UnitCombatMod>[/COLOR]
			</UnitCombatMods>
			<UnitCombatCollateralImmunes/>
			<DomainMods/>
			<BonusProductionModifiers/>
 
And if I want to put my changes into a seperate loadable mod, how do I do this?
 
Create a new folder in your Bts\Mods directory.
Take the file which you want to change (e.g. Assets\XML\Units\UnitInfos.xml), and copy it to the respective same folder in your mod, e.g. Bts\Mods\MyNewMod\Assets\XML\Units\UnitInfos.xml. Make the changes in these files. And if you're done, then zip your mod folder and upload it somewhere.
 
Ok I've decided to make these changes so far, any original untyped stats are unchanged.

Units -

Ballista Elephant - 1-2 first strikes.
Camel Archer - 2 first strikes, 9 :strength:, 80 :hammers:.
Gallic Warrior + Swordsman - 7 :strength:
Jaguar - 6 :strength:, 30 :hammers:
Preatorian - 40 :hammers:
Holkan, Spearman, Impi - 30 :hammers:
Hwacha 6 :strength:, +25% vs melee
Landsknecht - 8 :strength:, +50% vs melee, + 50% vs mounted.
Longbowman - 40 :hammers:
Numidian Cavalry - 6 :strength:, +25% vs melee
Quecha - 25 :hammers:
Vulture - +35% vs melee (50% was too strong, 25% too weak).

Buildings -

Assembly Plant - 2 free engineers, no engineer slots.
Baray - +3 :health:
Forum - 120 :hammers:, +50% :gp: production
Mall - +50% :gold:
Mint - +25% :gold:
Pavilion - +50% :culture:
Research Institute - +50% :science:, +1 free scientist, no scientist slots.
Salon - +1 free scientist, +2 :culture:
Seowon - +40% :science:, +4 :culture:
Stele - +2 :culture:, +50% :culture:
Stock Exchange - +75% :gold:, 1 free Merchant.

Also trait changes -

Industrious - double production speed of Forge, Factory, Assembly Plant
Organised - double production speed of Lighthouse, Courthouse, Recycling Centre
Protective - double production speed of Walls, Castle, Security Bureau, Intelligence Agency.

I also wanted to add +25% :espionage: to Protective, but I have no idea how to do that.
 
Back
Top Bottom