[GS] Need Help with Unique Building.

[FADM] Shadow Wing

Chieftain
Joined
Feb 24, 2019
Messages
9
Location
The Netherlands
So i am making a Unique Building and tried making this as a test but it does not work....
anyone who can help me on why that is?

The Code:

XML:
<?xml version="1.0" encoding="utf-8" ?>
<GameData>
  <!-- Almost all gameplay types should first be added to the types table. -->
  <!-- This serves as a central way to reference any type -->
  <Types>
    <Row Type="BUILDING_THE_DAM" Kind="KIND_BUILDING" />
  </Types>

  <!-- Define the building here. For examples of additional properties and values, look at Buildings.xml in /Base/Assets/Gameplay/Data/-->
  <Buildings>
      <Row>
          <BuildingType>BUILDING_THE_DAM</BuildingType>
          <Name>LOC_BUILDING_THE_DAM_NAME</Name>
          <PrereqDistrict>DISTRICT_CITY_CENTER</PrereqDistrict>
          <PurchaseYield>YIELD_GOLD</PurchaseYield>
          <Cost>100</Cost>
          <Maintenance>5</Maintenance>
          <AdvisorType>ADVISOR_GENERIC</AdvisorType>
          <TraitType>TRAIT_RADIO_ORANGJE</TraitType>
      </Row>
  </Buildings>
  <Building_YieldChanges>
      <Row>
          <BuildingType>BUILDING_THE_DAM</BuildingType>
          <YieldType>YIELD_GOLD</YieldType>
          <YieldChange>10</YieldChange>
      </Row>
      <Row>
          <BuildingType>BUILDING_THE_DAM</BuildingType>
          <YieldType>YIELD_CULTURE</YieldType>
          <YieldChange>5</YieldChange>
      </Row>
      <Row>
          <BuildingType>BUILDING_THE_DAM</BuildingType>
          <YieldType>YIELD_FOOD</YieldType>
          <YieldChange>50</YieldChange>
      </Row>
      <Row>
          <BuildingType>BUILDING_THE_DAM</BuildingType>
          <YieldType>YIELD_PRODUCTION</YieldType>
          <YieldChange>50</YieldChange>
      </Row>
  </Building_YieldChanges>
    <Modifiers>
        <Row>
            <ModifierId>PALACE_ADJUST_GARRISON_STRENGTH</ModifierId>
            <ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_INNER_DEFENSE</ModifierType>
        </Row>
        <Row>
            <ModifierId>PYRAMID_ADJUST_BUILDER_CHARGES</ModifierId>
            <ModifierType>MODIFIER_PLAYER_UNITS_ADJUST_BUILDER_CHARGES</ModifierType>
            <SubjectRequirementSetId>UNIT_IS_BUILDER</SubjectRequirementSetId>
        </Row>
    </Modifiers>
    <ModifierArguments>
        <Row>
            <ModifierId>PALACE_ADJUST_GARRISON_STRENGTH</ModifierId>
            <Name>Amount</Name>
            <Value>3</Value>
        </Row>
        <Row>
            <ModifierId>PYRAMID_ADJUST_BUILDER_CHARGES</ModifierId>
            <Name>Amount</Name>
            <Value>10</Value>
        </Row>
    </ModifierArguments>
    <BuildingModifiers>
        <Row>
            <BuildingType>BUILDING_THE_DAM</BuildingType>
            <ModifierId>PALACE_ADJUST_GARRISON_STRENGTH</ModifierId>
        </Row>
        <Row>
            <BuildingType>BUILDING_THE_DAM</BuildingType>
            <ModifierId>PYRAMID_ADJUST_BUILDER_CHARGES</ModifierId>
        </Row>
    </BuildingModifiers>
</GameData>
 

Attachments

  • Screenshot_23.png
    Screenshot_23.png
    50.1 KB · Views: 17
I'm not 100% clear what you're trying to accomplish. Do you want a unique building or one for all civilizations to use? The Trait you reference (TRAIT_RADIO_ORANGJE) doesn't show up in any of my base game files, so I assume it's supposed to be a unique building. You're also using the Pyramid Wonder Modifier as far as I can tell but that won't work unless you build the Pyramid.

Can you clarify what it is you're trying to get done? That'll help me figure out the right direction for you to go in.
 
I try to make a Unique building for the Netherlands Civilization (the trait TRAIT_RADIO_ORANGJE is the trait for the civilization locking to them the polders)
as for the modifiers i try to make it so it has the same attributes as for example to the piramides.

As for the modifiers i want them to have the same as the ones listed in there but that i won't require to build them to use them as it would be connected to the unique building it self.
I am trying to make this building so to understand how to make unique buildings in the future.
 

Attachments

  • Screenshot_36.png
    Screenshot_36.png
    1.1 MB · Views: 13
Last edited:
Top Bottom