Add a comment to the end of a recruit line in export_descr_buildings.txt. The game ignores it, and the AI follows it too.
Recruit only, retrain only
export_descr_buildings.txt
recruit "roman hastati" 0 ; rtwr recruit_only
recruit "roman triarii" 0 requires factions { romans_julii, } ; rtwr retrain_onlyOn a level's own line, the tag covers all that level's recruit lines. For a unit ruled everywhere:
aqueduct.ini
[recruitment]
retrain_only=barb infantry gaul;roman triariiThe governor
export_descr_buildings.txt
recruit "roman hastati" 0 ; rtwr governor has trait Consul 2
recruit "roman triarii" 0 ; rtwr governor in residence
recruit "roman archer" 0 ; rtwr not governor has ancillary drunken_uncleThe town's people
This needs rtwr_culture.txt, and the term always holds without it.
export_descr_buildings.txt
recruit "roman hastati" 0 ; rtwr people italic 10people <group or culture> [percent]: at least that share of the town.
A counter
export_descr_buildings.txt
recruit "roman triarii" 0 ; rtwr requires counter my_reform 2Together
Up to four terms, and all must hold.
export_descr_buildings.txt
recruit "roman hastati" 0 ; rtwr recruit_only people italic 10 and not governor has ancillary drunken_unclerequires and and are only for reading. When the terms fail the line gives nothing, neither recruit nor retrain.
aqueduct.log lists every unit with a rule.