Agent 009
Civ 4 Addict
Is there a way to program the XML files for units to have all set bonuses as "And" prereqs?
Example:
Having the above will require you to have both horse and iron in order to build that unit.
However...
If I put coal in there as well and then go in game, it says I need horse and iron or coal.
Is there any way to make it so they are all needed? Or is it hardcoded?
Any help will be much appreciated.
Example:
Code:
<BonusType>BONUS_HORSE</BonusType>
<PrereqBonuses>
<BonusType>BONUS_IRON</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>
Having the above will require you to have both horse and iron in order to build that unit.
However...
Code:
<BonusType>BONUS_HORSE</BonusType>
<PrereqBonuses>
<BonusType>BONUS_IRON</BonusType>
<BonusType>BONUS_COAL</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>
If I put coal in there as well and then go in game, it says I need horse and iron or coal.
Is there any way to make it so they are all needed? Or is it hardcoded?
Any help will be much appreciated.
