View Full Version : Great People founding National Wonders


Posthumus
Jul 02, 2008, 03:14 AM
I was wondering is it possible to mod, so that you would have use a GP to establish a national wonder (or a global wonder, or just a regular building), in the same way one 'incorporates' a corporation?

cheers!

zyphyr
Jul 02, 2008, 04:54 AM
It would be rather easy.

In CIV4UnitInfos.xml, each unit has a 'Buildings' field.

For most units it is just
<buildings/>

For Great Prophets it is

<Buildings>
<Building>
<BuildingType>BUILDING_JEWISH_SHRINE</BuildingType>
<bBuilding>1</bBuilding>
</Building>
<Building>
<BuildingType>BUILDING_CHRISTIAN_SHRINE</BuildingType>
<bBuilding>1</bBuilding>
</Building>
<Building>
<BuildingType>BUILDING_ISLAMIC_SHRINE</BuildingType>
<bBuilding>1</bBuilding>
</Building>
<Building>
<BuildingType>BUILDING_HINDU_SHRINE</BuildingType>
<bBuilding>1</bBuilding>
</Building>
<Building>
<BuildingType>BUILDING_BUDDHIST_SHRINE</BuildingType>
<bBuilding>1</bBuilding>
</Building>
<Building>
<BuildingType>BUILDING_CONFUCIAN_SHRINE</BuildingType>
<bBuilding>1</bBuilding>
</Building>
<Building>
<BuildingType>BUILDING_TAOIST_SHRINE</BuildingType>
<bBuilding>1</bBuilding>
</Building>
</Buildings>


Corporations are handled by the same field - the listings are BUILDING_CORPORATION_1,BUILDING_CORPORATION_2, etc.

Just assign the relevant building to whichever unit you want to have build it, then set the build cost in CIV4BuildingInfos.xml to -1 so it will not be buildable by normal means.

Posthumus
Jul 02, 2008, 05:51 AM
Thanks-a-million Zyphyr!

I spent my last evening (and part of the night) trying to get this done by altering the CIV4BuildingsInfo... didn't pop to my head that this could be done the other way.

This is what to get when modding for the first time on CIV4... :D

But cheers once more to you Zyphyr!

Wolfshanze
Jul 03, 2008, 07:02 AM
It would be rather easy.

In CIV4UnitInfos.xml, each unit has a 'Buildings' field.

Just assign the relevant building to whichever unit you want to have build it, then set the build cost in CIV4BuildingInfos.xml to -1 so it will not be buildable by normal means.
I've been thinking about letting a Great General build some of the projects like West Point or maybe the Pentagon... but I was going to leave the cost alone, so you could build it either way.

zyphyr
Jul 04, 2008, 12:20 AM
Nothing at all wrong with leaving it buildable by the regular means, I just put in the -1 cost because he specified that for his needs he wanted it to be GP only.

Headlock
Aug 12, 2008, 08:18 AM
Nothing at all wrong with leaving it buildable by the regular means, I just put in the -1 cost because he specified that for his needs he wanted it to be GP only.


yup, exactly so.

I have a the West Point buildable by a great general, scotland yard by a Great spy, ironworks by a GE, Redcross by a GS and Wall street by a GM.

makes sense:)

hdk