Modding a national wonder to decrease upgrade cost

LothainTheGreat

Chieftain
Joined
Nov 18, 2005
Messages
19
I would like to create a national wonder (Colt Armory) to reduce the upgrade cost for armor and gunpowder units by 25-50%. I have no trouble w/ editing XML but I have just started w/ Python. Does anyone know if this is possible at all w/ the present tools? Also I would like to hear thoughts on whether or not you would use a mod such as this as well as improvement ideas.
 
It's not possible with XML alone, as for python I'm not sure if there is a way to catch the upgrade and modify the cost of it. If it is possible with python you should be able to do it now, no special tools needed.

As for using it, I don't know, I'd have to try it out first and see the effect it has on the game. I miss things like Leonardo's workshop but in a way the game is better of without it. I would restrict it to gunpowder units only, and preferably only upgrades from gunpowder units to other gunpowder units. For example from musketman to rifleman but not from maceman to rifleman.
 
That was my original thought, that only Units that start as gunpowder receive the benefit.
So musketman > rifleman etc..
Not maceman > musketman
On the Armor side I figured that wouldn't make a huge difference anyways as the only upgrade path is Armor > Modren Armor
I know its not possible w/ xml alone I was just wondering if anyone had seen a way to do this in the python files.
 
Well the placment of the Wonder in the TecTree will effectivly limit when its used, its simpler to implement without restricting the savings based on Unit Type ofcorse. This definatly sounds do-able in Python the trick will be figuring out ware to place the code. I would realy like to see it done and Colt Armory sounds like a realy nice name.
 
Back
Top Bottom