MerakSpielman
Warlord
- Joined
- Oct 27, 2005
- Messages
- 217
I thought it would be simple to make a trait that added a production bonus to a certain type of unit.
This is what I have so far:
Of course it doesn't work... I imagine when it's calculating production time, it doesn't take into account my new table Trait_UnitCombatProductionModifiers.
So where does it do the production modifier calculations? How can I add this?
As a workaround it would be fairly simple to make a new building, say an Archery Range, that did what I want. But I hate workarounds because I don't learn as much.
Any suggestions?
question 2:
Where is it listed that the ChuNoKu have an extra attack every turn? I wanted to make a unit that was similar, but that particular piece of information is hidden somewhere I can't find. Comparing ChuNoKu to Crossbowmen wasn't very helpful - attacks per turn isn't anywhere on the unit table.
This is what I have so far:
Code:
<Table name="Trait_UnitCombatProductionModifiers">
<Column name="TraitType" type="text" reference="Traits(Type)"/>
<Column name="CombatClass" type="text" reference="UnitCombatInfos(Type)"/>
<Column name="Modifier" type="integer"/>
</Table>
<Traits>
<Row>
<Type>TRAIT_ELVEN_ARCHERY</Type>
<Description>TXT_KEY_TRAIT_ELVEN_ARCHERY</Description>
<ShortDescription>TXT_KEY_TRAIT_ELVEN_ARCHERY_SHORT</ShortDescription>
</Row>
</Traits>
<Trait_UnitCombatProductionModifiers>
<Row>
<TraitType>TRAIT_ELVEN_ARCHERY</TraitType>
<CombatClass>UNITCLASS_ARCHER</CombatClass>
<Modifier>50</Modifier>
</Row>
</Trait_UnitCombatProductionModifiers>
Of course it doesn't work... I imagine when it's calculating production time, it doesn't take into account my new table Trait_UnitCombatProductionModifiers.
So where does it do the production modifier calculations? How can I add this?
As a workaround it would be fairly simple to make a new building, say an Archery Range, that did what I want. But I hate workarounds because I don't learn as much.
Any suggestions?
question 2:
Where is it listed that the ChuNoKu have an extra attack every turn? I wanted to make a unit that was similar, but that particular piece of information is hidden somewhere I can't find. Comparing ChuNoKu to Crossbowmen wasn't very helpful - attacks per turn isn't anywhere on the unit table.