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

Add population upon founding patheon and religion

Discussion in 'Mod Creation Help' started by Cagarustus, Dec 27, 2017.

  1. Cagarustus

    Cagarustus Chieftain

    Joined:
    Mar 9, 2017
    Messages:
    290
    I want to make it so that every city adds +1 population when founding a pantheon, and a further +2 population when founding a religion.

    I've coded the following, but it doesn't appear to be working:

    INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId)
    VALUES
    ('CAG_TRAIT_INDIA_GREATAGAIN_1', 'MODIFIER_PLAYER_CITIES_ADD_POPULATION', 'PLAYER_HAS_PANTHEON_REQUIREMENTS'),
    ('CAG_TRAIT_INDIA_GREATAGAIN_2', 'MODIFIER_PLAYER_CITIES_ADD_POPULATION', 'PLAYER_FOUNDED_RELIGION_REQUIREMENTS');

    INSERT INTO ModifierArguments (ModifierId, Name, Value)
    VALUES
    ('CAG_TRAIT_INDIA_GREATAGAIN_1', 'Amount', '1'),
    ('CAG_TRAIT_INDIA_GREATAGAIN_2', 'Amount', '2');

    INSERT INTO TraitModifiers (TraitType, ModifierId)
    VALUES
    ('TRAIT_CIVILIZATION_DHARMA', 'CAG_TRAIT_INDIA_GREATAGAIN_1'),
    ('TRAIT_CIVILIZATION_DHARMA', 'CAG_TRAIT_INDIA_GREATAGAIN_2');
    -------------
    In my mind, there must be something wrong with the SubjectRequirementSetId, but I'm not sure. The Database Log doesn't indicate anything, so I'm not sure what's wrong.
     

Share This Page