Trait to promotion

g0datwork2

Chieftain
Joined
Jan 13, 2015
Messages
12
Does anyone know if there is a way to give the abilities of a trait as a promotion. Im specifically trying to make a promotion for fight as if at full strength like the japan trait. I tried to just add <FightWellDamaged>true</FightWellDamaged> but that gave an error since FightWellDamaged isnt in the promotions table
 
Right. You can't copy logic from one table to another and expect the game to have any idea what to do with it. It essentially presents the same problem as if you just suddenly made up an entirely new column without telling the game that it exists first, or changing a the name of an XML column as you see fit.

I wasn't able to find any column that seems to do this in the UnitPromotions table, so... sorry, I think you're out of luck here.
 
Firaxis only provides tables for
Code:
	<Table name="Trait_FreePromotions">
		<Column name="TraitType" type="text" reference="Traits(Type)"/>
		<Column name="PromotionType" type="text" reference="UnitPromotions(Type)"/>
	</Table>
	<Table name="Trait_FreePromotionUnitCombats">
		<Column name="TraitType" type="text" reference="Traits(Type)"/>
		<Column name="UnitCombatType" type="text" reference="UnitCombatInfos(Type)"/>
		<Column name="PromotionType" type="text" reference="UnitPromotions(Type)"/>
	</Table>
But from my understanding (ie, I've never tried using it myself) Trait_FreePromotions would give the promotion to all units that can accept the promotion. So if I put PROMOTION_SENTRY in there I think all units that can use the sentry promotion will be given it for free. Big Caveat: since I've never used it I could be wrong on how Trait_FreePromotions works.
 
IIRC it doesn't work at all (only Trait_FreePromotionUnitCombats works).
 
Back
Top Bottom