Multi-Bonus Building Requirement Mod
By: TheLopez
Last Updated 08/27/10
Version: v0.4BtS
Patch Compatibility: Beyond the Sword v3.19
MP Compatible: ?
Download Mod v0.4BtS
Version: v0.2w
Patch Compatibility: Warlords v2.0.8.0
MP Compatible: ?
Download Mod v0.2w
Version: v0.1
Patch Compatibility: v1.61
MP Compatible: ?
Download Mod v0.1
Description for BtS:
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. An
<iBonusAmout> tag has also been added to allow the specification of how many
number of bonuses are required of a specific type to build the unit.
For instance the updated castle definition using the new tag and updated tag
looks like:
Description for Warlords and Vanilla:
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:
<Bonus>BONUS_STONE</Bonus>
<PrereqBonuses>
<Bonus>BONUS_IRON</Bonus>
</PrereqBonuses>
<PrereqOrBonuses>
<Bonus>BONUS_GOLD</Bonus>
<Bonus>BONUS_SILVER</Bonus>
<Bonus>BONUS_GEMS</Bonus>
</PrereqOrBonuses>
-----Screenshot-----
-----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.4BtS------
- Updated Prereq bonus tag structure to allow the specification of bonus
amounts.
-----v0.3BtS------
- Updated to be compatible with Beyond the Sword v3.19 patch.
-----v0.2w------
- Updated to be compatible with Warlords v2.0.8.0 patch.
-----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
Composite Mod - readme.txt format
By: TheLopez
Last Updated 08/27/10
Version: v0.4BtS
Patch Compatibility: Beyond the Sword v3.19
MP Compatible: ?
Download Mod v0.4BtS
Version: v0.2w
Patch Compatibility: Warlords v2.0.8.0
MP Compatible: ?
Download Mod v0.2w
Version: v0.1
Patch Compatibility: v1.61
MP Compatible: ?
Download Mod v0.1
Description for BtS:
Spoiler :
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. An
<iBonusAmout> tag has also been added to allow the specification of how many
number of bonuses are required of a specific type to build the unit.
For instance the updated castle definition using the new tag and updated tag
looks like:
Code:
<Bonus>BONUS_STONE</Bonus>
<PrereqBonuses>
<PrereqBonus>
<Bonus>BONUS_IRON</Bonus>
<iBonusAmount>1</iBonusAmount>
</PrereqBonus>
</PrereqBonuses>
<PrereqOrBonuses>
<PrereqOrBonus>
<Bonus>BONUS_GOLD</Bonus>
<iBonusAmount>1</iBonusAmount>
</PrereqOrBonus>
<PrereqOrBonus>
<Bonus>BONUS_SILVER</Bonus>
<iBonusAmount>2</iBonusAmount>
</PrereqOrBonus>
<PrereqOrBonus>
<Bonus>BONUS_GEMS</Bonus>
<iBonusAmount>1</iBonusAmount>
</PrereqOrBonus>
</PrereqOrBonuses>
Description for Warlords and Vanilla:
Spoiler :
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:
<Bonus>BONUS_STONE</Bonus>
<PrereqBonuses>
<Bonus>BONUS_IRON</Bonus>
</PrereqBonuses>
<PrereqOrBonuses>
<Bonus>BONUS_GOLD</Bonus>
<Bonus>BONUS_SILVER</Bonus>
<Bonus>BONUS_GEMS</Bonus>
</PrereqOrBonuses>
-----Screenshot-----
Spoiler :

-----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.4BtS------
- Updated Prereq bonus tag structure to allow the specification of bonus
amounts.
Spoiler :
-----v0.3BtS------
- Updated to be compatible with Beyond the Sword v3.19 patch.
-----v0.2w------
- Updated to be compatible with Warlords v2.0.8.0 patch.
-----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
Composite Mod - readme.txt format