View Full Version : Help Modify Great Wall


Spearthrower
Aug 09, 2007, 11:49 PM
I want to change the Great Wall to require a number of walls to be built. I personally find this early wonder very overpowered and would prefer to work for it a little more. As it stands, I have started turning off Barbs (actually, I prefer to play Raging Barbs) as it's unfair on the AI when I always build the GW.

What I'd really like to be able to do is to scale the number of walls needed based on map size.... so for example, it would require:

Huge: 10
Large: 7
Normal: 5
Small: 3


Naturally, I have no idea how to do this! :lol: I've tried to find the related code from Oxford University with its University requirements but I am a bit lost. Can anyone point me in the right direction? Or even better, supply me with the code/file I need?

Thanks in advance
Spear

xfactor99
Aug 10, 2007, 01:25 AM
If you go Assets/XML/Buildings/CIV4BuildingInfos.txt and do CTRL+F for OXFORD, if you scroll down there are a few rows that begin with <PrereqBuildingClasses> and ends with </BuildingClassNeededs>. Just copy these few rows of code, Ctrl+F to find the entry for the GREAT_WALL, scroll down to where those two lines are (which should be empty), paste them, and replace UNIVERSITY with WALLS.

Make sure the code aligns up exactly like it does for the Oxford, Wall Street, Ironworks wonders, etc - it should work, I just tested it.

Spearthrower
Aug 10, 2007, 03:19 AM
Great stuff thanks.... I was clearly not looking properly when I tried to do it this morning! ;)