OrionVeteran
Deity
I hope this is an easy one. I have created a new unit using Python. Now I want to dynamically change some attributes for this new unit to values other than what is in the XML for this unit. The attributes I want to change are:
1. iMoves
2. iCombat
3. iPower
4. iXPValueAttack
5. iXPValueDefense
For Example: Lets say I want to double the following values found in the XML...
1. iMoves = 1
2. iCombat = 5
3. iPower = 5
4. iXPValueAttack = 4
5. iXPValueDefense = 2
How can I make the change to each default value for a unit using python? I want these new values to be permanant for this one unit, without affecting other units of the same type. More specifically, I could have 5 other Axemen in addition to the one Axeman I am changing through python. Only the one Axeman is affected by the update. Can it be done?
1. iMoves
2. iCombat
3. iPower
4. iXPValueAttack
5. iXPValueDefense
For Example: Lets say I want to double the following values found in the XML...
1. iMoves = 1
2. iCombat = 5
3. iPower = 5
4. iXPValueAttack = 4
5. iXPValueDefense = 2
How can I make the change to each default value for a unit using python? I want these new values to be permanant for this one unit, without affecting other units of the same type. More specifically, I could have 5 other Axemen in addition to the one Axeman I am changing through python. Only the one Axeman is affected by the update. Can it be done?