Head Serf said:
In my mod/scenario I want to include Slaves that are only buildable with the civic slavery. Does anyone have any ideas on how I could do this? I have looked through the UnitInfos.xml and Civics.xml and can't figure it out. Will I need to do something in python? I would be very thankful if someone could help.
no exactly sure but....
modiki states:
<SpecialBuildingNotRequireds>: Any Special Buildings added here will, for purposes of being required by other objects, be considered built in all cities.
unsure if this is correct (or what it means

) but I think this has something to do with building being be allowed with this civic...
I am not sure if it refers to only AI decisions or all decisions...
the link is here:
http://modiki.apolyton.net/index.php?title=CivicInfos
EDIT: I check further (while I was posting originally

) and this tagline make it not required to build building to make units (Organized Religion doesnt need a monastery to make missionaries)
so my "work around solution" (which I used for some other units/building)
1) make a building that produces slaves only
2) make the pretech for the building same as the civic slavery available
3) make the <iLevelPrereq> (level of existing unit required to build building) level a ridiculious amount (100) so that make the building impossible to build - who has level 100 units?
4) place that building info in the slave civic xml file tagline <SpecialBuildingNotRequireds> so that this civic bypasses the requirements in #3 and be able to make slave units (but only using this civic

)
this should do it!
there is probably an easier way.. but I dont know sorry
let me know if you have any questions....(post here) and Ill try to work on this further....
hope that helps
