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

Bonus yields per city (RESOLVED)

Discussion in 'Mod Creation Help' started by SocialMechanic, Oct 17, 2019.

  1. SocialMechanic

    SocialMechanic Chieftain

    Joined:
    May 11, 2019
    Messages:
    86
    I feel bad constantly asking questions, but I've trial & errored the **** out of this code and I can't get it to work:
    Code:
        <PolicyModifiers>
            <Row PolicyType="POLICY_SM_TALL5" ModifierId="POLICY_SM_TALL5_MODIFIER" />
        </PolicyModifiers>
        <Modifiers>
            <Row>
                <ModifierId>POLICY_SM_TALL5_MODIFIER</ModifierId>
                <ModifierType>MODIFIER_PLAYER_CITIES_ADJUST_CITY_YIELD_PER_DISTRICT</ModifierType>
                <SubjectRequirementSetId>DISTRICT_CITY_CENTER</SubjectRequirementSetId>
                <SubjustStackLimit>5</SubjustStackLimit>
            </Row>
        </Modifiers>
        <ModifierArguments>
            <Row ModifierId="POLICY_SM_TALL5_MODIFIER" Name="DistrictType" Value="DISTRICT_CITY_CENTER" />
            <Row ModifierId="POLICY_SM_TALL5_MODIFIER" Name="YieldType" Value="YIELD_SCIENCE" />
            <Row ModifierId="POLICY_SM_TALL5_MODIFIER" Name="Amount" Value="4" />
        </ModifierArguments>
    I'm trying to have the player gain +4 science for every city they have, up to a maximum of +20.
    nothing I do seems to work. In fact, I can't get the city to gain any science at all...
     
  2. SocialMechanic

    SocialMechanic Chieftain

    Joined:
    May 11, 2019
    Messages:
    86
    Well that was nuts. I ended up having to do all of this... I feel like there is an easier way...
    Code:
    <Types>
            <Row Type="POLICY_SM_TALL5" Kind="KIND_POLICY" />
        </Types>
        <Policies>
            <Row PolicyType="POLICY_SM_TALL5" Name="LOC_POLICY_SM_TALL5_NAME" Description="LOC_POLICY_SM_TALL5_NAME_DESCRIPTION" PrereqCivic="CIVIC_GUILDS" GovernmentSlotType="SLOT_ECONOMIC" />
        </Policies>
        <PolicyModifiers>
            <Row PolicyType="POLICY_SM_TALL5" ModifierId="POLICY_SM_TALL5A_MODIFIER" />
            <Row PolicyType="POLICY_SM_TALL5" ModifierId="POLICY_SM_TALL5B_MODIFIER" />
            <Row PolicyType="POLICY_SM_TALL5" ModifierId="POLICY_SM_TALL5C_MODIFIER" />
            <Row PolicyType="POLICY_SM_TALL5" ModifierId="POLICY_SM_TALL5D_MODIFIER" />
        </PolicyModifiers>
        <Modifiers>
            <Row ModifierId ="POLICY_SM_TALL5A_MODIFIER" ModifierType="MODIFIER_PLAYER_ADJUST_YIELD_CHANGE" SubjectRequirementSetId="SM_TALL5A_REQUIREMENT" />
            <Row ModifierId ="POLICY_SM_TALL5B_MODIFIER" ModifierType="MODIFIER_PLAYER_ADJUST_YIELD_CHANGE" SubjectRequirementSetId="SM_TALL5B_REQUIREMENT" />
            <Row ModifierId ="POLICY_SM_TALL5C_MODIFIER" ModifierType="MODIFIER_PLAYER_ADJUST_YIELD_CHANGE" SubjectRequirementSetId="SM_TALL5C_REQUIREMENT" />
            <Row ModifierId ="POLICY_SM_TALL5D_MODIFIER" ModifierType="MODIFIER_PLAYER_ADJUST_YIELD_CHANGE" SubjectRequirementSetId="SM_TALL5D_REQUIREMENT" />
        </Modifiers>
        <ModifierArguments>
            <Row ModifierId="POLICY_SM_TALL5A_MODIFIER" Name="YieldType" Value="YIELD_SCIENCE" />
            <Row ModifierId="POLICY_SM_TALL5A_MODIFIER" Name="Amount" Value="5" />
            <Row ModifierId="POLICY_SM_TALL5B_MODIFIER" Name="YieldType" Value="YIELD_SCIENCE" />
            <Row ModifierId="POLICY_SM_TALL5B_MODIFIER" Name="Amount" Value="5" />
            <Row ModifierId="POLICY_SM_TALL5C_MODIFIER" Name="YieldType" Value="YIELD_SCIENCE" />
            <Row ModifierId="POLICY_SM_TALL5C_MODIFIER" Name="Amount" Value="5" />
            <Row ModifierId="POLICY_SM_TALL5D_MODIFIER" Name="YieldType" Value="YIELD_SCIENCE" />
            <Row ModifierId="POLICY_SM_TALL5D_MODIFIER" Name="Amount" Value="5" />
        </ModifierArguments>
        <RequirementSets>
            <Row RequirementSetId="SM_TALL5A_REQUIREMENT" RequirementSetType="REQUIREMENTSET_TEST_ALL" />
            <Row RequirementSetId="SM_TALL5B_REQUIREMENT" RequirementSetType="REQUIREMENTSET_TEST_ALL" />
            <Row RequirementSetId="SM_TALL5C_REQUIREMENT" RequirementSetType="REQUIREMENTSET_TEST_ALL" />
            <Row RequirementSetId="SM_TALL5D_REQUIREMENT" RequirementSetType="REQUIREMENTSET_TEST_ALL" />
        </RequirementSets>
        <RequirementSetRequirements>
            <Row RequirementSetId="SM_TALL5A_REQUIREMENT" RequirementId="SM_REQUIRES_1_CITIES" />
            <Row RequirementSetId="SM_TALL5B_REQUIREMENT" RequirementId="SM_REQUIRES_2_CITIES" />
            <Row RequirementSetId="SM_TALL5C_REQUIREMENT" RequirementId="SM_REQUIRES_3_CITIES" />
            <Row RequirementSetId="SM_TALL5D_REQUIREMENT" RequirementId="SM_REQUIRES_4_CITIES" />
        </RequirementSetRequirements>
        <Requirements>
            <Row RequirementId="SM_REQUIRES_1_CITIES" RequirementType="REQUIREMENT_PLAYER_HAS_AT_LEAST_NUMBER_CITIES" />
            <Row RequirementId="SM_REQUIRES_2_CITIES" RequirementType="REQUIREMENT_PLAYER_HAS_AT_LEAST_NUMBER_CITIES" />
            <Row RequirementId="SM_REQUIRES_3_CITIES" RequirementType="REQUIREMENT_PLAYER_HAS_AT_LEAST_NUMBER_CITIES" />
            <Row RequirementId="SM_REQUIRES_4_CITIES" RequirementType="REQUIREMENT_PLAYER_HAS_AT_LEAST_NUMBER_CITIES" />
        </Requirements>
        <RequirementArguments>
            <Row RequirementId="SM_REQUIRES_1_CITIES" Name="Amount" Value="1" />
            <Row RequirementId="SM_REQUIRES_2_CITIES" Name="Amount" Value="2" />
            <Row RequirementId="SM_REQUIRES_3_CITIES" Name="Amount" Value="3" />
            <Row RequirementId="SM_REQUIRES_4_CITIES" Name="Amount" Value="4" />
        </RequirementArguments>
     

Share This Page