Unit cap for certain units - any ideas how?
Hi all,
I'm trying to figure out different ways to limit the number of certain units that a faction can have in play at any one time. There's a number of possible applications to this, for example capping the number of henchmen, capping the number of Juggs. For my mod I am trying to introduce some free/cheap "special" units to factions... but I would like to be able to limit the number. The idea being that the faction can then be given some unique powerful units for a cheap cost (as part of their special faction trait)... and it shouldn't get too overpowered because they will only be allowed 3 of them.... or maybe one per city or whatever.
I have tried using the limited unit cap thing that the Order of Asok, Ogre Camps etc have... it's interesting but it only really works for units that can not be designed. I'd like to have a limited number of a designable unit like Henchmen.
What i'm looking at currently is using custom resource types... I thought of have a "special" resource set to 3 or whatever, then each "special" unit would have a maintenance cost of 1 special resource. But I can't figure out how to have a unit have a maintenance cost of anything (other than teh default 5% initial value gold or whatever it is)?
Any suggestions very welcome.
Thanks.


