- Joined
- Mar 5, 2017
- Messages
- 4,115
Hi guys, I have been using NycholusV's excellent modifier guide, but I'm stumped as to how to implement this. My plan is to modify Cyrus' leader trait to have no population loss upon conquest. The value is in GlobalParameters: CITY_POPULATION_LOSS_TO_CONQUEST_PERCENTAGE.
1. I know there is no dynamic modifier for this, so I set out to create one. First by adding the type.
INSERT INTO Types (Type, Kind) VALUES ('P_MODIFIER_CONQUERED_POP', 'KIND_MODIFIER')
2. I may be on the wrong track here, but the only effect I can find for population is EFFECT_ADJUST_CITY_POPULATION.
INSERT INTO DynamicModifiers (ModifierType, CollectionType, EffectType) VALUES ('P_MODIFIER_CONQUERED_POP', 'COLLECTION_OWNER', 'EFFECT_ADJUST_CITY_POPULATION')
3. Create the modifiers...
INSERT INTO Modifiers (ModifierId, ModifierType) VALUES ('P_CONQUERED_POP', 'P_MODIFIER_CONQUERED_POP')
INSERT INTO TraitModifiers (TraitType, ModifierID) VALUES ('FLYING_SQUADRON_TRAIT', 'P_CONQUERED_POP')
4. Arguments? Here I am totally confused. I can find no similar modifiers for what I'm trying to do.
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES....
Any ideas? Is this doable without modifiers and I am totally overthinking it? I just want to make a change in GlobalParameters that applies to a single leader...
1. I know there is no dynamic modifier for this, so I set out to create one. First by adding the type.
INSERT INTO Types (Type, Kind) VALUES ('P_MODIFIER_CONQUERED_POP', 'KIND_MODIFIER')
2. I may be on the wrong track here, but the only effect I can find for population is EFFECT_ADJUST_CITY_POPULATION.
INSERT INTO DynamicModifiers (ModifierType, CollectionType, EffectType) VALUES ('P_MODIFIER_CONQUERED_POP', 'COLLECTION_OWNER', 'EFFECT_ADJUST_CITY_POPULATION')
3. Create the modifiers...
INSERT INTO Modifiers (ModifierId, ModifierType) VALUES ('P_CONQUERED_POP', 'P_MODIFIER_CONQUERED_POP')
INSERT INTO TraitModifiers (TraitType, ModifierID) VALUES ('FLYING_SQUADRON_TRAIT', 'P_CONQUERED_POP')
4. Arguments? Here I am totally confused. I can find no similar modifiers for what I'm trying to do.
INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES....
Any ideas? Is this doable without modifiers and I am totally overthinking it? I just want to make a change in GlobalParameters that applies to a single leader...