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

Modifiers not Working In-game

Discussion in 'Mod Creation Help' started by Toussaint10326, Sep 2, 2017.

  1. Toussaint10326

    Toussaint10326 Chieftain

    Joined:
    Jul 28, 2017
    Messages:
    84
    Gender:
    Male
    Location:
    United States
    The modifier I am talking about is one that will increase the adjacency bonus from Coastal tiles. The game loads in just fine, but the districts do not earn any extra Yields when they are placed next to these Coastal Tiles. Is there an issue with my modifiers?

    Code:
    --------------------------------------------------------------------------------------------------------------------------          
    -- Traits          
    --------------------------------------------------------------------------------------------------------------------------              
    INSERT INTO Traits              
            (TraitType,                                                    Name,                                                    Description)
    VALUES    ('TRAIT_CIVILIZATION_TOUSSAINT_PHOE_HERITAGE',                'LOC_TRAIT_CIVILIZATION_TOUSSAINT_PHOE_HERITAGE_NAME',  'LOC_TRAIT_CIVILIZATION_TOUSSAINT_PHOE_HERITAGE_DESCRIPTION'),
            ('TRAIT_CIVILIZATION_UNIT_TOUSSAINT_AFRICAN_ELEPHANT',        'LOC_UNIT_TOUSSAINT_AFRICAN_ELEPHANT_NAME',                'LOC_UNIT_TOUSSAINT_AFRICAN_ELEPHANT_DESCRIPTION'),          
            ('TRAIT_CIVILIZATION_UNIT_TOUSSAINT_QUINQUEREME',            'LOC_UNIT_TOUSSAINT_QUINQUEREME_NAME',                    'LOC_UNIT_TOUSSAINT_QUINQUEREME_DESCRIPTION');          
    --------------------------------------------------------------------------------------------------------------------------      
    -- TraitModifiers      
    --------------------------------------------------------------------------------------------------------------------------          
    INSERT INTO TraitModifiers          
            (TraitType,                                            ModifierId)
    VALUES    ('TRAIT_CIVILIZATION_TOUSSAINT_PHOE_HERITAGE',        'TOUSSAINT_TRAIT_COASTAL_COMMHUB'),
            ('TRAIT_CIVILIZATION_TOUSSAINT_PHOE_HERITAGE',        'TOUSSAINT_TRAIT_COASTAL_CAMPUS');                                                                              
    --------------------------------------------------------------------------------------------------------------------------
    -- Modifiers
    --------------------------------------------------------------------------------------------------------------------------
    INSERT INTO Modifiers  
            (ModifierId,                                                ModifierType)
    VALUES    ('TOUSSAINT_TRAIT_COASTAL_COMMHUB',                            'MODIFIER_PLAYER_CITIES_TERRAIN_ADJACENCY'),
            ('TOUSSAINT_TRAIT_COASTAL_CAMPUS',                            'MODIFIER_PLAYER_CITIES_TERRAIN_ADJACENCY');        
    --------------------------------------------------------------------------------------------------------------------------
    -- ModifierArguments
    --------------------------------------------------------------------------------------------------------------------------
    INSERT INTO ModifierArguments
            (ModifierId,                                                Name,                        Value)
    VALUES    ('TOUSSAINT_TRAIT_COASTAL_COMMHUB',                           'Amount',                    '1'),
            ('TOUSSAINT_TRAIT_COASTAL_COMMHUB',                           'DistrictType',                'DISTRICT_COMMERCIAL_HUB'),
            ('TOUSSAINT_TRAIT_COASTAL_COMMHUB',                           'TerrainType',                'TERRAIN_COAST'),
            ('TOUSSAINT_TRAIT_COASTAL_COMMHUB',                           'YieldType',                    'YIELD_GOLD'),
            ('TOUSSAINT_TRAIT_COASTAL_CAMPUS',                           'Amount',                    '1'),
            ('TOUSSAINT_TRAIT_COASTAL_CAMPUS',                           'DistrictType',                'DISTRICT_CAMPUS'),
            ('TOUSSAINT_TRAIT_COASTAL_CAMPUS',                           'TerrainType',                'TERRAIN_COAST'),
            ('TOUSSAINT_TRAIT_COASTAL_CAMPUS',                           'YieldType',                    'YIELD_SCIENCE');
    
    Now that I think about it that ModifierType seems wrong. Again, any information is helpful.
     
  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    6,631
    Location:
    Illinois, USA

Share This Page