City State unit choice?

firsTraveler

Chieftain
Joined
Jul 4, 2014
Messages
22
Is there any way I can edit what units City States choose to produce? The games default is not very sensible.

Is there a mod that already does this?
 
Not in any really very practical sort of a way. You can try to make the default Minor Civ leader not like certain kind of units in the AiFavoredItems but that only makes a tendancy to do or not do X rather than forces X.
 
Are you referring to LEADERS.XML? I'm not understanding most of the file but I don't see anything about units and minor civs except "-100" to aircraft carriers.
 
LEADER_MINOR_CIV_DEFAULT

All City-States "inheret" this Leader value which is usually used via the MINOR_CIV_DEFAULT_TRAIT to attach modifiers to all city states. It might be possible to use LEADER_MINOR_CIV_DEFAULT to effect all city state AiFavoredItems but I have never tried to do so myself.

You could also use modifiers to completely disallow City States from creating certain units but the problem there is if the city state has not "discovered" the tech for an alternative unit from around the same place on the tech and civics trees, they would be stuck for which units they can make use of, which would probably just force them to spam the units you have allowed them to make -- just shifting the issue from one group of units to another.
 
All City-States "inheret" this Leader value which is usually used via the MINOR_CIV_DEFAULT_TRAIT to attach modifiers to all city states. It might be possible to use LEADER_MINOR_CIV_DEFAULT to effect all city state AiFavoredItems but I have never tried to do so myself.
I use it in my National Wonders mod to discourage CSs from building them. Mostly it works, but occasionally they will still build them - far less frequently than w/o the AiFavoredItems though.
 
Thank's for all the info but this is beyond my skill level (which is pretty much limited to changing numbers)

If anyone is interested in making such a mod: what I was trying to do was stop minor civs from building "offensive" weapons. Specificly: siege units (catapult tree), light cav, and the naval siege (battleships ect). The other way would be to make them prioritize melee, anti-cav (spear line), ranged (slinger line), and maybe the privateer line (because it's somewhat hidden and could surprise an attacker).

If someone would like to try making a mod like this I'd be happy to help test it.
 
Back
Top Bottom