Resource icon

[BtS] Multi-Building Unit Requirement 2016-10-05

This mod adds the ability to specify multiple required and optional buildings
needed to building units. Any buildings added in between the <PrereqBuildings>
tag will now be required to build the unit. One of the buildings added in
between the <PrereqOrBuildinges> tag will now be required to build the unit.

For instance the updated battleship definition using the new tags looks like:
Spoiler :
[PRE]
               <PrereqBuilding>BUILDING_DRYDOCK</PrereqBuilding>
               <PrereqBuildings>
                    <BuildingType>BUILDING_FACTORY</BuildingType>
               </PrereqBuildings>
               <PrereqOrBuildings>
                    <BuildingType>BUILDING_BARRACKS</BuildingType>
                    <BuildingType>BUILDING_LIGHTHOUSE</BuildingType>
               </PrereqOrBuildings>
[/PRE]


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

-----Version Information-----
-----v0.3BtS------

- Updated to be compatible with Beyond the Sword v3.19 patch.

Spoiler :

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

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

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

- Setup the Multi-Building Unit Requirement Mod infrastructure

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

- Added the new <PrereqOrBuildinges> tag that allows for one or more buildings
to be optionally required for building units.

- As an example of how to use the new tags the battleship unit has been updated in
the CIV4UnitInfos.xml file so it requires drydock and factory and one of the
following: barracks or lighthouse.


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

- Exavier
     Composite Mod - readme.txt format

- Doronron
     For proposing this mod.
Author
TheLopez
Downloads
234
Views
234
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from TheLopez

Top Bottom