Anything special with creating promotions? I can't seem to get mine to work.
Here is my code.
I mostly copied the great lighthouse's example, but it is jacking my mod over. Most times when you mess up a building it doesn't do anything to the rest of your mod, so I assume it is the promotion that is wrong.
Probably going to try and move the <FreePromotion> block around and see if that helps. Sometimes it won't take that at certain positions in the building string, though the lighthouse was formated in this order...
Here is my code.
Spoiler :
<UnitPromotions>
<Row>
<Type>PROMOTION_MAGELLAN_VOYAGE</Type>
<Description>TXT_KEY_PROMOTION_MAGELLAN_VOYAGE</Description>
<Help>TXT_KEY_PROMOTION_MAGELLAN_VOYAGE_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<CannotBeChosen>true</CannotBeChosen>
<MovesChange>1</MovesChange>
<PortraitIndex>33</PortraitIndex>
<IconAtlas>PROMOTION_ATLAS</IconAtlas>
<PediaType>PEDIA_SHARED</PediaType>
<PediaEntry>TXT_KEY_PROMOTION_MAGELLAN_VOYAGE</PediaEntry>
</Row>
</UnitPromotions>
<UnitPromotions_UnitCombats>
<Row>
<PromotionType>PROMOTION_MAGELLAN_VOYAGE</PromotionType>
<UnitCombatType>UNITCOMBAT_NAVAL</UnitCombatType>
</Row>
</UnitPromotions_UnitCombats>
Spoiler :
<Buildings>
<Row>
<Type>BUILDING_MAGELLAN_VOYAGE</Type>
<BuildingClass>BUILDINGCLASS_MAGELLAN_VOYAGE</BuildingClass>
<Cost>900</Cost>
<PrereqTech>TECH_NAVIGATION</PrereqTech>
<Help>TXT_KEY_WONDER_MAGELLAN_VOYAGE_HELP</Help>
<Description>TXT_KEY_BUILDING_MAGELLAN_VOYAGE</Description>
<Civilopedia>TXT_KEY_WONDER_MAGELLAN_VOYAGE_DESC</Civilopedia>
<Quote>TXT_KEY_WONDER_MAGELLAN_VOYAGE_QUOTE</Quote>
<MaxStartEra>ERA_MODERN</MaxStartEra>
<FreePromotion>PROMOTION_MAGELLAN_VOYAGE</FreePromotion>
<Water>true</Water>
<SpecialistType>SPECIALIST_MERCHANT</SpecialistType>
<GreatPeopleRateChange>2</GreatPeopleRateChange>
<NukeImmune>true</NukeImmune>
<HurryCostModifier>-1</HurryCostModifier>
<MinAreaSize>-1</MinAreaSize>
<ConquestProb>100</ConquestProb>
<Culture>2</Culture>
<DisplayPosition>1</DisplayPosition>
<IconAtlas>BW_ATLAS_2</IconAtlas>
<PortraitIndex>5</PortraitIndex>
</Row>
</Buildings>
<BuildingClasses>
<Row>
<Type>BUILDINGCLASS_MAGELLAN_VOYAGE</Type>
<DefaultBuilding>BUILDING_MAGELLAN_VOYAGE</DefaultBuilding>
<Description>TXT_KEY_BUILDING_MAGELLAN_VOYAGE</Description>
<MaxGlobalInstances>1</MaxGlobalInstances>
</Row>
</BuildingClasses>
I mostly copied the great lighthouse's example, but it is jacking my mod over. Most times when you mess up a building it doesn't do anything to the rest of your mod, so I assume it is the promotion that is wrong.
Probably going to try and move the <FreePromotion> block around and see if that helps. Sometimes it won't take that at certain positions in the building string, though the lighthouse was formated in this order...