Is there a way to have district prerequisite? i.e. I need district A to build district B?
What is the ModifierId of granting one-time busts of yields (for example,instantly 50 Gold,Science,Culture…)
Could someone give me a quick rundown on .dds files? I see they are being referenced in certain parts of the code, but I cannot find these files anywhere in the civ game folder. Where are they? Is it possible to edit them?
INSERT INTO Colors
(Type, Red, Green, Blue, Alpha)
VALUES ('COLOR_PLAYER_RENE_LEVESQUE_PRIMARY', 10, 70, 170, 255), -- #0A46AA
('COLOR_PLAYER_RENE_LEVESQUE_SECONDARY', 250, 250, 250, 255); -- #FAFAFA
INSERT INTO PlayerColors
(
Type,
Usage,
PrimaryColor,
SecondaryColor,
Alt1PrimaryColor,
Alt1SecondaryColor,
Alt2PrimaryColor,
Alt2SecondaryColor,
Alt3PrimaryColor,
Alt3SecondaryColor
)
VALUES
(
'LEADER_RENE_LEVESQUE',
'Unique',
'COLOR_PLAYER_RENE_LEVESQUE_PRIMARY',
'COLOR_PLAYER_RENE_LEVESQUE_SECONDARY',
'COLOR_PLAYER_RENE_LEVESQUE_SECONDARY',
'COLOR_PLAYER_RENE_LEVESQUE_PRIMARY',
'COLOR_STANDARD_MAGENTA_DK',
'COLOR_STANDARD_WHITE_LT',
'COLOR_STANDARD_AQUA_MD',
'COLOR_STANDARD_WHITE_LT'
);
INSERT INTO Colors
(Type, Color )
VALUES ('COLOR_MC_PRIMARY_A', '255,255,255,255' );
I always format my Colors table insert as follows:
Code:INSERT INTO Colors (Type, Color ) VALUES ('COLOR_MC_PRIMARY_A', '255,255,255,255' );
I did a quick lookup and it seems using Red, Blue, Green, Alpha should also be valid. But as a quick thing to try, perhaps worth it.
I always define each colour as a separate entity, so that the eight PlayerColors Type entries are different. Again, this is likely inefficient on my part, but I've never had an issue.
The code itself all looks fine to me.
<BuildingModifiers>
<Row>
<BuildingType>BUILDING_COAL_POWER_PLANT</BuildingType>
<ModifierId>CP_RANGE_BONUS</ModifierId>
</Row>
</BuildingModifiers>
<Modifiers>
<Row>
<ModifierId>CP_RANGE_BONUS</ModifierId>
<ModifierType>MODIFIER_PLAYER_DISTRICTS_ADJUST_EXTRA_REGIONAL_RANGE</ModifierType>
<SubjectRequirementSetId>DISTRICT_IS_INDUSTRIAL_ZONE_OR_ENTERTAINMENT_COMPLEX</SubjectRequirementSetId>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>CP_RANGE_BONUS</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
</ModifierArguments>
UPDATE Buildings SET RegionalRange = RegionalRange + 1
WHERE BuildingType LIKE 'BUILDING_%_PLANT';
<Update>
<Where DistrictType="DISTRICT_ENCAMPMENT"/>
<Set>
<Airslots>1</Airslots>
</Set>
</Update>