Changing a policy to change a unit's cost

BoredCitizen

Chieftain
Joined
Jun 29, 2012
Messages
8
Hello,
I know how to do XML modding, pretty much from logic - I open an XML file, see a parameter, deduce (If I can) what It does from it's name and modify...

So I've done some basic things - I can stack 2 units now, changed a branch of a policy and stuff...

But there's a change I can't seem to make: I want "Collective Rule" to give me a 20% discount on purchasing settlers, instead of the 50% faster settler training.
problem is, I have no idea how to change the cost (I don't mind changing the amount of production required, seeing how the gold cost is just a multiple of production cost)

So I thought I should make another settler unit which would cost 20% less production and make it available only when taking the "Collective Rule" branch of "Liberty".
I read somewhere that you can get a building (invisible one) when you choose a policy and it gives you bonuses, so I thought - I can make one for this purpose - the new settler unit will need that building as a prereq.

problem is, The settler unit seems to be different - for one thing, It doesn't seem to have "<Cost></Cost>" (looked in CIV5Units.xml)

and another problem is - i'm not sure if It's even possible to make a building a prereq for a unit.

any ideas?
thanks!
 
Back
Top Bottom