Hydromancerx
C2C Modder
I don't quite get what you mean.
<BonusType> or <PrereqBonuses> have no meaning within an expression but they will still work at the places outside expressions where they work now.
Lets say I put this code on a unit ....
Code:
<BonusType>BONUS_FRENCH</BonusType>
<PrereqBonuses>
<BonusType>BONUS_COPPER</BonusType>
<BonusType>BONUS_IRON</BonusType>
<BonusType>BONUS_STEEL</BonusType>
</PrereqBonuses>
<TrainCondition>
<And>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_BANANA</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_LEMON</ID>
</Has>
<Has>
<GOMType>GOM_BONUS</GOMType>
<ID>BONUS_APPLE</ID>
</Has>
</And>
</TrainCondition>
Would it require French AND (Copper OR Iron OR Steel) AND Bananas AND Lemons and Apples?