kingchris20
Wisdom Seeker
I am trying to add a merchant ship to the game, but other computer-controlled civs dont know how to use them, they build them fine, but cannot use them....
They are used in much the same way as the Great Merchant, but since they are a ship, they can only be used on coastal city states.
I wanted to make them to where they provided less influence than Great Merchants but I couldn't figure out how to change that for just this unit, anytime I tried it changed it for both the Merchant ship and the Great Merchant :/
Ideally, the text for the "Conduct Trade Mission" button would also reflect that it is a Merchant Ship instead of a Great Merchant, but for now I can't figure out a way to change that for just the Merchant Ship either.......
Anybody know how to do this? The priority right now is getting AI civs to use them properly (that is actually conduct the trade mission), because right now, they produce them, but then just sail around with them aimlessly....
After that, I would want to figure out the influence change and the text change...
They are used in much the same way as the Great Merchant, but since they are a ship, they can only be used on coastal city states.
I wanted to make them to where they provided less influence than Great Merchants but I couldn't figure out how to change that for just this unit, anytime I tried it changed it for both the Merchant ship and the Great Merchant :/
Spoiler :
<GameData>
<UnitClasses>
<Row>
<Type>UNITCLASS_MERCHANTSHIP</Type>
<Description>TXT_KEY_UNIT_MERCHANTSHIP</Description>
<DefaultUnit>UNIT_MERCHANTSHIP</DefaultUnit>
</Row>
</UnitClasses>
<Units>
<Row>
<Class>UNITCLASS_MERCHANTSHIP</Class>
<Type>UNIT_MERCHANTSHIP</Type>
<PrereqTech>TECH_SAILING</PrereqTech>
<Cost>50</Cost>
<Moves>4</Moves>
<CivilianAttackPriority>CIVILIAN_ATTACK_PRIORITY_HIGH</CivilianAttackPriority>
<Special>SPECIALUNIT_PEOPLE</Special>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_MERCHANT</DefaultUnitAI>
<Description>TXT_KEY_UNIT_MERCHANTSHIP</Description>
<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_MERCHANTSHIP</Civilopedia>
<Strategy>TXT_KEY_UNIT_MERCHANTSHIP_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_MERCHANTSHIP</Help>
<Capture>UNITCLASS_MERCHANTSHIP</Capture>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<CaptureWhileEmbarked>true</CaptureWhileEmbarked>
<Mechanized>true</Mechanized>
<AdvancedStartCost>10</AdvancedStartCost>
<WorkRate>1</WorkRate>
<CombatLimit>0</CombatLimit>
<XPValueDefense>3</XPValueDefense>
<BaseGold>100</BaseGold>
<NumGoldPerEra>50</NumGoldPerEra>
<UnitArtInfoEraVariation>true</UnitArtInfoEraVariation>
<UnitArtInfo>ART_DEF_UNIT_GREAT_ADMIRAL</UnitArtInfo>
<UnitFlagIconOffset>92</UnitFlagIconOffset>
<IconAtlas>EXPANSION_UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>15</PortraitIndex>
<MoveRate>WOODEN_BOAT</MoveRate>
</Row>
</Units>
<Unit_AITypes>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_MERCHANT</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_WORKER_SEA</UnitAIType>
</Row>
</Unit_AITypes>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<PromotionType>PROMOTION_OCEAN_IMPASSABLE_UNTIL_ASTRONOMY</PromotionType>
</Row>
</Unit_FreePromotions>
<Unit_Flavors>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_DIPLOMACY</FlavorType>
<Flavor>75</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
</Unit_Flavors>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_MERCHANTSHIP">
<Text>Merchant Ship</Text>
</Row>
</Language_en_US>
</GameData>
<UnitClasses>
<Row>
<Type>UNITCLASS_MERCHANTSHIP</Type>
<Description>TXT_KEY_UNIT_MERCHANTSHIP</Description>
<DefaultUnit>UNIT_MERCHANTSHIP</DefaultUnit>
</Row>
</UnitClasses>
<Units>
<Row>
<Class>UNITCLASS_MERCHANTSHIP</Class>
<Type>UNIT_MERCHANTSHIP</Type>
<PrereqTech>TECH_SAILING</PrereqTech>
<Cost>50</Cost>
<Moves>4</Moves>
<CivilianAttackPriority>CIVILIAN_ATTACK_PRIORITY_HIGH</CivilianAttackPriority>
<Special>SPECIALUNIT_PEOPLE</Special>
<Domain>DOMAIN_SEA</Domain>
<DefaultUnitAI>UNITAI_MERCHANT</DefaultUnitAI>
<Description>TXT_KEY_UNIT_MERCHANTSHIP</Description>
<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_MERCHANTSHIP</Civilopedia>
<Strategy>TXT_KEY_UNIT_MERCHANTSHIP_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_MERCHANTSHIP</Help>
<Capture>UNITCLASS_MERCHANTSHIP</Capture>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<CaptureWhileEmbarked>true</CaptureWhileEmbarked>
<Mechanized>true</Mechanized>
<AdvancedStartCost>10</AdvancedStartCost>
<WorkRate>1</WorkRate>
<CombatLimit>0</CombatLimit>
<XPValueDefense>3</XPValueDefense>
<BaseGold>100</BaseGold>
<NumGoldPerEra>50</NumGoldPerEra>
<UnitArtInfoEraVariation>true</UnitArtInfoEraVariation>
<UnitArtInfo>ART_DEF_UNIT_GREAT_ADMIRAL</UnitArtInfo>
<UnitFlagIconOffset>92</UnitFlagIconOffset>
<IconAtlas>EXPANSION_UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>15</PortraitIndex>
<MoveRate>WOODEN_BOAT</MoveRate>
</Row>
</Units>
<Unit_AITypes>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_MERCHANT</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_RESERVE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_EXPLORE_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_ESCORT_SEA</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<UnitAIType>UNITAI_WORKER_SEA</UnitAIType>
</Row>
</Unit_AITypes>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<PromotionType>PROMOTION_OCEAN_IMPASSABLE_UNTIL_ASTRONOMY</PromotionType>
</Row>
</Unit_FreePromotions>
<Unit_Flavors>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_DIPLOMACY</FlavorType>
<Flavor>75</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<UnitType>UNIT_MERCHANTSHIP</UnitType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
</Unit_Flavors>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_MERCHANTSHIP">
<Text>Merchant Ship</Text>
</Row>
</Language_en_US>
</GameData>
Ideally, the text for the "Conduct Trade Mission" button would also reflect that it is a Merchant Ship instead of a Great Merchant, but for now I can't figure out a way to change that for just the Merchant Ship either.......
Anybody know how to do this? The priority right now is getting AI civs to use them properly (that is actually conduct the trade mission), because right now, they produce them, but then just sail around with them aimlessly....
After that, I would want to figure out the influence change and the text change...