Thunderbrd
C2C War Dog
Well... to answer your question its because I did not have the insight I have now when I built that tag. lol... as stated, naming conventions have not been fully adhered to throughout the whole schema. But you 'got' the point and did a great job.Thanks TB, I really learnd something in your tutorial (I think) So lets se if I can get the code for my question...
Code:<UnitCombatProdModifiers> <UnitCombatProdModifier> <UnitCombatProd>UnitCombatClass_MELEE</UnitCombatProd> <iUnitCombatProdModifier>10</iUnitCombatProdModifier> </UnitCombatProdModifier> <UnitCombatProdModifier> <UnitCombatProd>UnitCombatClass_ARCHER</UnitCombatProd> <iUnitCombatProdModifier>20</iUnitCombatProdModifier> </UnitCombatProdModifier> </UnitCombatProdModifiers>
Would this make all Melee trained 10% faster and all Archers 20%?
Why does the <UnitCombatProd> not say "type"?
However there is one flaw. Remember that in a Type tag reference, which you are correct that this is, you must use the same label as you'd find in the Type tag for the game object you are referring to.
So if we open up the UnitCombatInfos.xml file (located in the Basic Infos file operating under the schema there since it was not intended originally to be such a used class of its own) and search for MELEE we'll the Melee entry expressed as such:
Code:
<UnitCombatInfo>
<Type>UNITCOMBAT_MELEE</Type>
<Description>TXT_KEY_UNITCOMBAT_MELEE</Description>
<Button>,Art/Interface/Buttons/Promotions/Shock.dds,Art/Interface/Buttons/Promotions_Atlas.dds,4,5</Button>
</UnitCombatInfo>
Code:
<UnitCombatProdModifiers>
<UnitCombatProdModifier>
<UnitCombatProd>UNITCOMBAT_MELEE</UnitCombatProd>
<iUnitCombatProdModifier>10</iUnitCombatProdModifier>
</UnitCombatProdModifier>
<UnitCombatProdModifier>
<UnitCombatProd>UNITCOMBAT_MELEE</UnitCombatProd>
<iUnitCombatProdModifier>20</iUnitCombatProdModifier>
</UnitCombatProdModifier>
</UnitCombatProdModifiers>
Well done!
) So lets se if I can get the code for my question...



with Cyberwarfare
with Automatic Traffic



