Code:
building barracks
{
convert_to castle_barracks
levels town_watch town_guard city_watch militia_drill_square militia_barracks army_barracks royal_armoury
{
town_watch city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
{
convert_to 1
capability
{
recruit_pool "Town Militia" 1 0.5 4 0 requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, }
recruit_pool "Italian Militia" 1 0.5 4 0 requires factions { milan, venice, papal_states, sicily, }
recruit_pool "EE Town Militia" 1 0.5 4 0 requires factions { poland, hungary, }
recruit_pool "EE Archer Militia" 1 0.5 4 0 requires factions { russia, }
recruit_pool "SE Town Militia" 1 0.5 4 0 requires factions { byzantium, }
recruit_pool "ME Town Militia" 1 0.5 4 0 requires factions { moors, turks, mongols, timurids, }
recruit_pool "ME Archer Militia" 1 0.5 4 0 requires factions { egypt, }
recruit_pool "Peasant Spearmen" 1 0.5 4 0 requires factions { Saxons, }
law_bonus bonus 1
}
material wooden
construction 2
cost 600
settlement_min town
upgrades
{
town_guard
}
}
town_guard city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
{
convert_to 2
capability
{
recruit_pool "Portuguese Sergeants" 2 1 5 0 requires factions { portugal, }
recruit_pool "Spear Militia" 1 0.5 4 0 requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, }
recruit_pool "Italian Spear Militia" 1 0.5 4 0 requires factions { milan, venice, papal_states, sicily, }
recruit_pool "EE Spear Militia" 1 0.5 4 0 requires factions { poland, russia, hungary, }
recruit_pool "SE Spear Militia" 1 0.5 4 0 requires factions { byzantium, }
recruit_pool "ME Spear Militia" 1 0.5 4 0 requires factions { moors, egypt, turks, mongols, timurids, }
recruit_pool "Town Militia" 1 0.7 6 0 requires factions { england, scotland, france, hre, denmark, spain, portugal, Normans, }
recruit_pool "Italian Militia" 1 0.7 6 0 requires factions { milan, venice, papal_states, sicily, }
recruit_pool "EE Town Militia" 1 0.7 6 0 requires factions { poland, hungary, }
recruit_pool "EE Archer Militia" 1 0.7 6 0 requires factions { russia, }
recruit_pool "SE Town Militia" 1 0.7 6 0 requires factions { byzantium, }
recruit_pool "ME Town Militia" 1 0.7 6 0 requires factions { moors, turks, mongols, timurids, }
recruit_pool "ME Archer Militia" 1 0.7 6 0 requires factions { egypt, }
recruit_pool "Peasant Spearmen" 1 0.7 6 0 requires factions { Saxons, }
law_bonus bonus 2
}
material wooden
construction 3
cost 1200
settlement_min large_town
upgrades
{
city_watch
}
}
I changed a thing that was wrong and got it to work but when I upgrade to castle it goes away.