1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Commercial Hub Mountain Adjacency Bonus

Discussion in 'Mod Creation Help' started by Philasimes, Mar 8, 2018.

  1. Philasimes

    Philasimes Chieftain

    Joined:
    Oct 24, 2014
    Messages:
    19
    Gender:
    Male
    Location:
    Switzerland
    I'm trying to give my Civ an adjacency bonus to mountains for commercial hubs, but somehow it's not working. Could anyone tell me why?

    Code:
      <Modifiers>
            <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <ModifierType>MODIFIER_ALL_CITIES_TERRAIN_ADJACENCY</ModifierType>
            </Row>
        </Modifiers>
        <ModifierArguments>
            <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>DistrictType</Name>
                <Value>DISTRICT_COMMERCIAL_HUB</Value>
            </Row>
            <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>TerrainType</Name>
                <Value>TERRAIN_GRASS_MOUNTAIN</Value>
            </Row>
            <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>TerrainType</Name>
                <Value>TERRAIN_PLAINS_MOUNTAIN</Value>
            </Row>
                    <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>TerrainType</Name>
                <Value>TERRAIN_DESERT_MOUNTAIN</Value>
            </Row>
                    <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>TerrainType</Name>
                <Value>TERRAIN_TUNDRA_MOUNTAIN</Value>
            </Row>
            <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>TerrainType</Name>
                <Value>TERRAIN_SNOW_MOUNTAIN</Value>
            </Row>
            <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>YieldType</Name>
                <Value>YIELD_GOLD</Value>
            </Row>
            <Row>
                <ModifierId>TRAIT_MOUNTAINS_ADJACENCY_BONUS_COMMERCIAL_HUB</ModifierId>
                <Name>Amount</Name>
                <Value>1</Value>
            </Row>
            <Row>
                <ModifierId>DESERT_FOLKLORE_FAITHDESERTADJACENCY</ModifierId>
                <Name>Description</Name>
                <Value>LOC_DISTRICT_MOUNTAIN_GOLD</Value>
            </Row>
        </ModifierArguments>
        <RequirementSets>
            <Row>
            </Row>
        </RequirementSets>
        <RequirementSetRequirements>
            <Row>
            </Row>
        </RequirementSetRequirements>
        <Requirements>
            <Row>
            </Row>
        </Requirements>
        <RequirementArguments>
            <Row>
            </Row>
        </RequirementArguments>
     
  2. criZp

    criZp Chieftain

    Joined:
    Jul 19, 2013
    Messages:
    796
    Location:
    Nidaros, Norway
    I don't think you can have multiple TerrainType rows for one ModifierId? I think you need one ModifierId for each different TerrainType.
     
  3. Philasimes

    Philasimes Chieftain

    Joined:
    Oct 24, 2014
    Messages:
    19
    Gender:
    Male
    Location:
    Switzerland
    Hey, thanks for the reply. It might have been that, but also, I was missing the value TILES_REQUIRED. I put that one in and it worked! I'll update my first post with the code
     

Share This Page