Hi
How can I mod a new unit action that replaces one unit with another?
What python file should I start manipulating?
Any considerations regards to copying unit properties (level/experience)?
Obviously, this XML snippet would upgrade the unit. But it would also
replace the unit in the city build screen, which I don't want.
I'm looking for an action to upgrade the unit in the "field", not
replace the entire unit class.
With that I would like to mod a Conscripts mod:
I haven't been able to find a mod that does this kind of magic,
so any code snippets or help would be of great help.
yepzer
How can I mod a new unit action that replaces one unit with another?
What python file should I start manipulating?
Any considerations regards to copying unit properties (level/experience)?
Obviously, this XML snippet would upgrade the unit. But it would also
replace the unit in the city build screen, which I don't want.
I'm looking for an action to upgrade the unit in the "field", not
replace the entire unit class.
Code:
<UnitClassUpgrades>
<UnitClassUpgrade>
<UnitClassUpgradeType>UNITCLASS_ARCHER</UnitClassUpgradeType>
<bUnitClassUpgrade>1</bUnitClassUpgrade>
</UnitClassUpgrade>
</UnitClassUpgrades>
With that I would like to mod a Conscripts mod:
Code:
Workers (and Indian Fast workers) get a special action "conscript"
which changes the worker into a combat unit (depending on technology level):
archer, musketman, infantary. New new unit gets a -10% attack penalty
(might require a "promotion").
I haven't been able to find a mod that does this kind of magic,
so any code snippets or help would be of great help.
yepzer