Resource icon

[BtS] Building Civic Prereq 2016-10-05

Description:
This mod adds new tags allowing for the specification of one or more civics as
prerequisites for constructing a building. As an example all "cathedrals" now
require the "Organized Religion" and "Hereditary Rule" civics to be
constructed. To achieve this the following has been added before the
<PrereqReligion> tag:
Code:
			<PrereqCivics>
				<PrereqCivic>
					<CivicType>CIVIC_ORGANIZED_RELIGION</CivicType>
					<bEnabled>1</bEnabled>
				</PrereqCivic>
				<PrereqCivic>
					<CivicType>CIVIC_HEREDITARY_RULE</CivicType>
					<bEnabled>1</bEnabled>
				</PrereqCivic>
			</PrereqCivics>


-----Notes to Modmakers-----

If you want to use this mod component in your mod I have tried to make things
as easy as possible for you. In the XML files I have added
<!-- Building Civic Prereqs Start --> and
<!-- Building Civic Prereqs End --> in all of the places where changes were
made, in the SDK files I have added // < Building Civic Prereqs Start > and
// < Building Civic Prereqs End > in all of the places where changes were
made and in the Python files I have added # < Building Civic Prereqs Start >
and # < Building Civic Prereqs End > in all of the places where changes were
made.

-----Version Information-----

-----v0.4BtS------

- Rewrote the mod to be compatible with Beyond the Sword v3.19

- Changed the tag structure so it is easier to maintain the SDK code.

- Removed the <bInactiveWithoutCivicPrereqs> tag since it doesn't make sense.
It can be added back in if someone wants it

Spoiler :

-----v0.3w------

- Updated to be compatible with Warlords v2.0.8.0 patch.


-----v0.2w------

- Changed the <PrereqCivic> tag to <PrereqCivics> to allow requiring more than
one civic to construct a building.

- Added the <bInactiveWithoutCivicPrereqs> tag to indicate that a building
should be automatically obsoleted if the civics required to construct the
building are no longer set.

- Updated the "cathedral" definitions so they require the "Hereditary Rule" and
"Organized Religion" civics and are obsoleted when those civics are no longer
set.

-----v0.1w------

- Setup the Building Civic Prereqs infrastructure

- Added the new <PrereqCivic> tag that allows the specification of a civic as a
prerequisite for construction of a building.

- As an example of how to use the new tag all "cathedral" definitions have been
updated in the CIV4BuildingInfos.xml to require the "Organized Religion" civic.


-----===Credits & Thanks===-----

- Exavier - Composite Mod - readme.txt format

- Peuri - For the idea for this mod
Author
TheLopez
Downloads
351
Views
351
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom