Does anyone know of any way of making unit production dependent on two buildings.
We are trying a mod to force us to convert religious buildings in taken cities before being able to recruit higher level units. Have tried using lines such as:
recruit "carthaginian medium infantry" 0 requires factions { carthage, } and building_present_min_level temple_of_justice_carthage temple_of_justice_temple
in EDB. This works to an extent in that unit recruitment is restricted until the temple is built, but causes CTD's without -show_err messages when you try to view some of the building descriptions (the two higher level stables), or for the buildings that display OK, when you try to view the restricted units descriptions from within their display screens. The above EDB line generates a discription in the barracks description screen :
Libyan Spearman Temple of Baal
which causes a CTD when clicked on.
Don't really want to just build units from temples as I think you should be forced to build barracks as well. Could make unique Carthaginian barracks which are dependent on building Carthaginian temples but that would mean starting from scratch with the military and religious buildings when taking a city. So would really prefer to use 2nd dependency for units if possible.
Bookmarks