Riker13
Sep 02, 2006, 04:02 AM
If I wanted to have say IRON and COAL as the bonus type, and then oil as the prereqbonus, how would I do this?
In the unitinfos.xml
<BonusType>IRON</BonusType>
<PrereqBonuses>
<BonusType>BONUS_OIL</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>
Regards
Riker13 :crazyeye:
Splinter13
Sep 02, 2006, 06:36 AM
If I wanted to have say IRON and COAL as the bonus type, and then oil as the prereqbonus, how would I do this?
In the unitinfos.xml
<BonusType>IRON</BonusType>
<PrereqBonuses>
<BonusType>BONUS_OIL</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>
Regards
Riker13 :crazyeye:
I don't quite get your question but if your looking to edit the bonuses you should be looking in
Firaxis/Civ4/Assets/Terrain/Civ4BonusInfo
and
Firaxis/Civ4/Assets/Terrain/Civ4BonusClassInfo
Unless I misunderstood your question look here to edit them.
ocedius
Sep 02, 2006, 06:53 AM
If I wanted to have say IRON and COAL as the bonus type, and then oil as the prereqbonus, how would I do this?
In the unitinfos.xml
<BonusType>IRON</BonusType>
<PrereqBonuses>
<BonusType>BONUS_OIL</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>
Regards
Riker13 :crazyeye:
I am pretty sure that would require an SDK and XML scheama change. The former would allow the AND attribute to bonuses, as vanilla let you do this with one only and the latter would essentially allow for reading multiple resources from the unitinfo.xml.
Riker13
Sep 02, 2006, 07:21 AM
OCEDIUS, ah thought that might be the case, oh well I suppose I must learn how to program in C++ :sad:
Many Thanks
Riker13 :crazyeye:
TheLopez
Sep 02, 2006, 08:26 AM
Riker13,
I already do this in my composite mod... since this has now been asked for multiple times I will extract the code for it from the composite mod and release it as a component, ok?
Riker13
Sep 03, 2006, 11:56 AM
THELOPEZ, great stuff.
Regards
Riker13 :crazyeye:
TheLopez
Sep 05, 2006, 05:33 PM
Riker13, sorry it took so long... here is the link to the mod:
http://forums.civfanatics.com/showthread.php?goto=newpost&t=185130