• Civilization 7 has been announced. For more info please check the forum here .
Resource icon

Multi-Bonus Building Requirement v0.1 2016-10-05

This mod changes the behavior of the <PrereqBonuses> tag and adds the
<PrereqOrBonuses> tag that retains the original behavior of the <PrereqBonuses>
tag. Any bonuses added in between the <PrereqBonuses> tag will now be required
to build the building. One of the bonuses added in between the
<PrereqOrBonuses> tag will now be required to build the building.

For instance the updated warrior definition using the new tag and updated tag
looks like:
[TAB][TAB][TAB]<Bonus>BONUS_STONE</Bonus>
[TAB][TAB][TAB]<PrereqBonuses>
[TAB][TAB][TAB][TAB]<Bonus>BONUS_IRON</Bonus>
[TAB][TAB][TAB]</PrereqBonuses>
[TAB][TAB][TAB]<PrereqOrBonuses>
[TAB][TAB][TAB][TAB]<Bonus>BONUS_GOLD</Bonus>
[TAB][TAB][TAB][TAB]<Bonus>BONUS_SILVER</Bonus>
[TAB][TAB][TAB][TAB]<Bonus>BONUS_GEMS</Bonus>
[TAB][TAB][TAB]</PrereqOrBonuses>


-----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
<!-- Multi-Bonus Building Requirement Start --> and
<!-- Multi-Bonus Building Requirement End --> in all of the places where
changes were made. In the SDK files I have added
// < Multi-Bonus Building Requirement Start > and
// < Multi-Bonus Building Requirement End > in all of the places where
changes were made.

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

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

- Setup the Multi-Bonus Building Requirement Mod infrastructure

- Updated the <PrereqBonuses> to be <PrereqOrBonuses> instead

- Added the new <PrereqBonuses> tag that allows for multiple bonuses to be
required for building buildings.

- Updated the CIV4BuildingInfos.xml file so all buildings that had multiple
bonuses listed in the <PrereqBonuses> now use the <PrereqOrBonuses> tag
instead.

- As an example of how to use the new tags castles have been updated in the
CIV4BuildingInfos.xml file so it requires stone iron and one of the
following: gold, silver or gems.


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

- Exavier
[TAB]Composite Mod - readme.txt format
Author
TheLopez
Downloads
180
Views
180
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom