1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  3. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  4. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  5. Dismiss Notice
  6. Forum account upgrades are available for ad-free browsing.
    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:
    236
    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

Ebates: Get Paid to Shop