Cagarustus
Prince
- Joined
- Mar 9, 2017
- Messages
- 386
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.
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.