Modifying Building Quests

jaldaen

Prince
Joined
Feb 19, 2006
Messages
467
I've done a couple mods for Civilization V, but they were civilizations. I'm wondering how I might go about modding the building quests. Any pointers or good mods or tutorials I can look at that might help me figure out the best way to do this.

To help illustrate what I want to do with the quests here's an example of one change I'd like to make:

Autoplant
Export and Trade: +1 Trade Route
Internal Consumption: +5% to Food, Production, Energy, and Science yields; +10% Health

Obviously, the previous building quest for Autoplants was imbalanced as a choice between +1 Trade Route and +1 Energy and no maintenance. Not much of a choice really. So I thought I'd do something similar to the Augmentary building quest, but with Health instead of Culture.

Anyway, there are nearly forty building quests I'm trying to modify, and I'm looking for the most efficient way to make these changes.

Thanks,
Joseph
 
So, If I want to make one of the Autoplant quests grant:

+5% to Food, Production, Energy, and Science yields; +10% Health

Then how do I update the PlayerPerks code? I wrote the following code, but I don't think this is the right way to go about it.

Code:
<GameData>
<Update>
<Row>
	<PlayerPerkType>PLAYERPERK_AUTOPLANTS_ENERGY_FLAT</PlayerPerkType>
	<BuildingClassType>BUILDINGCLASS_AUTOPLANT</BuildingClassType>
	<YieldType>YIELD_FOOD</YieldType>
	<PercentYield>5</PercentYield>
</Row>
<Row>
	<PlayerPerkType>PLAYERPERK_AUTOPLANTS_ENERGY_FLAT</PlayerPerkType>
	<BuildingClassType>BUILDINGCLASS_AUTOPLANT</BuildingClassType>
	<YieldType>YIELD_ENERGY</YieldType>
	<PercentYield>5</PercentYield>
</Row>
<Row>
	<PlayerPerkType>PLAYERPERK_AUTOPLANTS_ENERGY_FLAT</PlayerPerkType>
	<BuildingClassType>BUILDINGCLASS_AUTOPLANT</BuildingClassType>
	<YieldType>YIELD_PRODUCTION</YieldType>
	<PercentYield>5</PercentYield>
</Row>
<Row>
	<PlayerPerkType>PLAYERPERK_AUTOPLANTS_ENERGY_FLAT</PlayerPerkType>
	<BuildingClassType>BUILDINGCLASS_AUTOPLANT</BuildingClassType>
	<YieldType>YIELD_SCIENCE</YieldType>
	<PercentYield>5</PercentYield>
</Row>
<Row>
	<PlayerPerkType>PLAYERPERK_AUTOPLANTS_ENERGY_FLAT</PlayerPerkType>
	<BuildingClassType>BUILDINGCLASS_AUTOPLANT</BuildingClassType>
	<PercentHealth>10</PercentHealth>
</Row>
</Update>
</GameData>

Thanks for your help,
Joseph
 
I tried a bunch of different ways to code the quests, but have come up empty so far. Anyone have any luck with these? What did you do?

Thanks,
Joseph
 
Top Bottom