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

I need a little help here T .T (to get a useful effect for one of my mod)

Discussion in 'Civ6 - Creation & Customization' started by Shiroifushicho, Sep 23, 2018.

  1. Shiroifushicho

    Shiroifushicho Chieftain

    Joined:
    Mar 3, 2013
    Messages:
    72
    Gender:
    Male
    (RUTI is the name of my mod)

    My goal is to make an effect on improvement which generate +1 Food (on improvement, not on resource) per each adjacent resources which have the tag = "CLASS_FOOD" (only the resources, nothing else).
    Such resources provide already a minimum of 1 food, and are all linked under that tag.

    So i did it like this but it's not working and im really sad and frustrated :
    I had no choice of using two requirements, the first to get that idea of resource-to-tag

    - REQUIREMENT_PLOT_RESOURCE_TAG_MATCHES

    And Apply this to the three kind of resource with 3 seperate modifiers (luxury, strategic and bonus)

    - REQUIREMENT_PLOT_ADJACENT_RESOURCE_CLASS_TYPE_MATCHES

    There is my code (hope i didn't messed it while copy/paste the parts)

    <GameInfo>
    <ImprovementModifiers>
    <Row>
    <ImprovementType>IMPROVEMENT_XXX</ImprovementType>
    <ModifierId>XXX_LUXURY_TAGFOOD_BOOSTED</ModifierId>
    </Row>
    <Row>
    <ImprovementType>IMPROVEMENT_XXX</ImprovementType>
    <ModifierId>XXX_STRATEGIC_TAGFOOD_BOOSTED</ModifierId>
    </Row>
    <Row>
    <ImprovementType>IMPROVEMENT_XXX</ImprovementType>
    <ModifierId>XXX_BONUS_TAGFOOD_BOOSTED</ModifierId>
    </Row>
    </ImprovementModifiers>

    <Modifiers>

    <Row>
    <ModifierId>XXX_LUXURY_TAGFOOD_BOOSTED</ModifierId>
    <ModifierType>MODIFIER_SINGLE_PLOT_ADJUST_PLOT_YIELDS</ModifierType>
    <SubjectRequirementSetId>RUTI_ADJACENT_LUXURYRESOURCE_HAS_FOOD</SubjectRequirementSetId>
    </Row>
    <Row>
    <ModifierId>XXX_STRATEGIC_TAGFOOD_BOOSTED</ModifierId>
    <ModifierType>MODIFIER_SINGLE_PLOT_ADJUST_PLOT_YIELDS</ModifierType>
    <SubjectRequirementSetId>RUTI_ADJACENT_BONUSRESOURCE_HAS_FOOD</SubjectRequirementSetId>
    </Row>
    <Row>
    <ModifierId>XXX_BONUS_TAGFOOD_BOOSTED</ModifierId>
    <ModifierType>MODIFIER_SINGLE_PLOT_ADJUST_PLOT_YIELDS</ModifierType>
    <SubjectRequirementSetId>RUTI_ADJACENT_STRATEGICRESOURCE_HAS_FOOD</SubjectRequirementSetId>
    </Row>
    </Modifiers>

    <ModifierArguments>
    <Row>
    <ModifierId>XXX_LUXURY_TAGFOOD_BOOSTED</ModifierId>
    <Name>YieldType</Name>
    <Value>YIELD_FOOD</Value>
    </Row>
    <Row>
    <ModifierId>XXX_LUXURY_TAGFOOD_BOOSTED</ModifierId>
    <Name>Amount</Name>
    <Value>1</Value>
    </Row>
    <Row>
    <ModifierId>XXX_STRATEGIC_TAGFOOD_BOOSTED</ModifierId>
    <Name>YieldType</Name>
    <Value>YIELD_FOOD</Value>
    </Row>
    <Row>
    <ModifierId>XXX_STRATEGIC_TAGFOOD_BOOSTED</ModifierId>
    <Name>Amount</Name>
    <Value>1</Value>
    </Row>
    <Row>
    <ModifierId>XXX_BONUS_TAGFOOD_BOOSTED</ModifierId>
    <Name>YieldType</Name>
    <Value>YIELD_FOOD</Value>
    </Row>
    <Row>
    <ModifierId>XXX_BONUS_TAGFOOD_BOOSTED</ModifierId>
    <Name>Amount</Name>
    <Value>1</Value>
    </Row>
    </ModifierArguments>

    <RequirementSets>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_LUXURYRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
    </Row>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_BONUSRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
    </Row>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_STRATEGICRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
    </Row>
    </RequirementSets>

    <RequirementSetRequirements>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_LUXURYRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementId>RUTI_PLOT_RESOURCE_TAG_IS_FOOD</RequirementId>
    </Row>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_LUXURYRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_LUXURY</RequirementId>
    </Row>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_BONUSRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementId>RUTI_PLOT_RESOURCE_TAG_IS_FOOD</RequirementId>
    </Row>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_BONUSRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_BONUS</RequirementId>
    </Row>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_STRATEGICRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementId>RUTI_PLOT_RESOURCE_TAG_IS_FOOD</RequirementId>
    </Row>
    <Row>
    <RequirementSetId>RUTI_ADJACENT_STRATEGICRESOURCE_HAS_FOOD</RequirementSetId>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_STRATEGIC</RequirementId>
    </Row>
    </RequirementSetRequirements>

    <Requirements>
    <Row>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_LUXURY</RequirementId>
    <RequirementType>REQUIREMENT_PLOT_ADJACENT_RESOURCE_CLASS_TYPE_MATCHES</RequirementType>
    </Row>

    <Row>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_STRATEGIC</RequirementId>
    <RequirementType>REQUIREMENT_PLOT_ADJACENT_RESOURCE_CLASS_TYPE_MATCHES</RequirementType>
    </Row>

    <Row>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_BONUS</RequirementId>
    <RequirementType>REQUIREMENT_PLOT_ADJACENT_RESOURCE_CLASS_TYPE_MATCHES</RequirementType>
    </Row>

    <Row>
    <RequirementId>RUTI_PLOT_RESOURCE_TAG_IS_FOOD</RequirementId>
    <RequirementType>REQUIREMENT_PLOT_RESOURCE_TAG_MATCHES</RequirementType>
    </Row>
    </Requirements>

    <RequirementArguments>
    <Row>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_LUXURY</RequirementId>
    <Name>ResourceClassType</Name>
    <Value>RESOURCECLASS_LUXURY</Value>
    </Row>

    <Row>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_STRATEGIC</RequirementId>
    <Name>ResourceClassType</Name>
    <Value>RESOURCECLASS_STRATEGIC</Value>
    </Row>

    <Row>
    <RequirementId>RUTI_PLOT_ADJACENT_TO_BONUS</RequirementId>
    <Name>ResourceClassType</Name>
    <Value>RESOURCECLASS_BONUS</Value>
    </Row>

    <Row>
    <RequirementId>RUTI_PLOT_RESOURCE_TAG_IS_FOOD</RequirementId>
    <Name>Tag</Name>
    <Value>CLASS_FOOD</Value>
    </Row>
    </RequirementArguments>
    </GameInfo>
     
    Last edited: Sep 23, 2018

Share This Page