Building and unit?

SlySlySly

Warlord
Joined
Feb 8, 2017
Messages
293
Location
Denver
I'm working on a new civ. The problem is I'm sure the building and unit are off. I don't know how to define the visuals, as well as make certain things like amenities work. This is what I have so far.

Building:
Code:
<GameInfo>
  <Types>
    <Row Kind="KIND_BUILDING" Type="BUILDING_ROZUPAGODA"/>
  </Types>

  <BuildingReplaces>
    <Row CivUniqueBuildingType="BUILDING_ROZUPAGODA"
         ReplacesBuildingType="BUILDING_SHRINE"/>
  </BuildingReplaces>

  <Buildings>
    <Row BuildingType="BUILDING_ROZUPAGODA" Cost="60"
         Description="LOC_BUILDING_ROZUPAGODA_DESCRIPTION" Housing="2"
         Name="LOC_BUILDING_ROZUPAGODA_NAME"
         PrereqDistrict="DISTRICT_HOLY_SITE" PurchaseYield="YIELD_GOLD"
         TraitType="TRAIT_CIVILIZATION_BUILDING_ROZUPAGODA"/>
  </Buildings>

  <Building_YieldChanges>
    <Row BuildingType="BUILDING_ROZUPAGODA" YieldChange="2"
         YieldType="YIELD_SCIENCE"/>

    <Row BuildingType="BUILDING_ROZUPAGODA" YieldChange="1"
         YieldType="YIELD_AMMENITIES"/>
  </Building_YieldChanges>
</GameInfo>
(should use the pagoda model but idk how)

Unit:
Code:
<GameInfo>
  <Types>
    <Row Kind="KIND_UNIT" Type="UNIT_SERINGUDEZU"/>

    <Row Kind="KIND_ABILITY" Type="ABILITY_SERINGUDEZU"/>
  </Types>

  <Units>
    <Row AdvisorType="ADVISOR_CONQUEST" BaseMoves="5" BaseSightRange="5"
         Combat="100" Cost="520"
         Description="LOC_UNIT_SERINGUDEZU_DESCRIPTION"
         Domain="DOMAIN_SEA" FormationClass="FORMATION_CLASS_NAVAL"
         Name="LOC_UNIT_SERINGUDEZU_NAME" PrereqTech="TECH_COMBINED_ARMS"
         PromotionClass="PROMOTION_CLASS_NAVAL_MELEE" PurchaseYield="YIELD_GOLD"
         Combat= "100"
         TraitType="TRAIT_CIVILIZATION_UNIT_SERINGUDEZU"
         UnitType="UNIT_SERINGUDEZU" ZoneOfControl="true"/>
  </Units>
  <UnitReplaces>
    <Row CivUniqueUnitType="UNIT_SERINGUDEZU"
         ReplacesUnitType="UNIT_DESTROYER"/>
  </UnitReplaces>

  <UnitAIInfos>
    <Row AiType="UNITAI_COMBAT" UnitType="UNIT_SERINGUDEZU"/>

    <Row AiType="UNITTYPE_NAVAL" UnitType="UNIT_SERINGUDEZU"/>
  </UnitAIInfos>
  <Tags>
    <Row Tag="CLASS_SERINGUDEZU" Vocabulary="ABILITY_CLASS"/>
  </Tags>

  <TypeTags>
    <Row Tag="CLASS_NAVAL" Type="UNIT_SERINGUDEZU"/>

    <Row Tag="CLASS_SERINGUDEZU" Type="UNIT_SERINGUDEZU"/>
  </TypeTags>

  <TypeTags>
    <Row Tag="CLASS_SERINGUDEZU" Type="ABILITY_SERINGUDEZU"/>
  </TypeTags>

  <UnitAbilities>
    <Row Description="LOC_ABILITY_SERINGUDEZU_DESCRIPTION"
         Name="LOC_ABILITY_SERINGUDEZU_NAME"
         UnitAbilityType="ABILITY_SERINGUDEZU"/>
  </UnitAbilities>
</GameInfo>
(should use destroyer model)
 
YIELD_AMMENITIES

no such thing

To add an amount of 6 Amenity to a building:
Code:
  <Buildings>
    <Row BuildingType="BUILDING_ROZUPAGODA" Cost="60"
         Description="LOC_BUILDING_ROZUPAGODA_DESCRIPTION" Housing="2" Entertainment="6" 
         Name="LOC_BUILDING_ROZUPAGODA_NAME"
         PrereqDistrict="DISTRICT_HOLY_SITE" PurchaseYield="YIELD_GOLD"
         TraitType="TRAIT_CIVILIZATION_BUILDING_ROZUPAGODA"/>
  </Buildings>
You don't do it in the table <Building_YieldChanges>
 
YIELD_AMMENITIES

no such thing

To add an amount of 6 Amenity to a building:
Code:
  <Buildings>
    <Row BuildingType="BUILDING_ROZUPAGODA" Cost="60"
         Description="LOC_BUILDING_ROZUPAGODA_DESCRIPTION" Housing="2" Entertainment="6"
         Name="LOC_BUILDING_ROZUPAGODA_NAME"
         PrereqDistrict="DISTRICT_HOLY_SITE" PurchaseYield="YIELD_GOLD"
         TraitType="TRAIT_CIVILIZATION_BUILDING_ROZUPAGODA"/>
  </Buildings>
You don't do it in the table <Building_YieldChanges>
Thanks! Wouldn't have figured it out on my own
 
Back
Top Bottom