namespace = auto_build_selection_events 
character_event = {
	id = auto_build_selection_events.1 
	hide_window = yes 
	is_triggered_only = yes 
	immediate = {
		IF = {
			limit = { has_character_flag = ab_is_enabled_for_this_character}
			any_realm_province = {
				save_event_target_as = abet_location 
				ab_flag_province_tech = yes 
				county = { owner = { save_event_target_as = abet_owner}} 
				any_province_holding = {
					limit = { ab_not_renovating_any = yes holding_is_valid_autobuild_target = yes}
					save_event_target_as = abet_holding 
					IF = {
						limit = { holding_type = tribal}
						IF = {
							limit = { ab_pot_tb_defensive_fortifications_4 = yes}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = {
										has_building = tb_defensive_fortifications_1 
										NOT = {
											has_building = tb_defensive_fortifications_2 
											has_building = tb_ab_ph_tb_defensive_fortifications_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_defensive_fortifications_2 
										location = { province_event = { id = autobuild_startbuilding.726}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										NOT = {
											has_building = tb_defensive_fortifications_1 
											has_building = tb_ab_ph_tb_defensive_fortifications_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_defensive_fortifications_1 
										location = { province_event = { id = autobuild_startbuilding.725}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = tb_defensive_fortifications_2 
										NOT = {
											has_building = tb_defensive_fortifications_3 
											has_building = tb_ab_ph_tb_defensive_fortifications_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_defensive_fortifications_3 
										location = { province_event = { id = autobuild_startbuilding.727}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = tb_defensive_fortifications_3 
										NOT = {
											has_building = tb_defensive_fortifications_4 
											has_building = tb_ab_ph_tb_defensive_fortifications_4 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_defensive_fortifications_4 
										location = { province_event = { id = autobuild_startbuilding.728}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0020 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_ox_wagon_1 has_building = no_ab_ph_no_ox_wagon_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_1 
											location = { province_event = { id = autobuild_startbuilding.454}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_fishing_village_1 has_building = no_ab_ph_no_fishing_village_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_1 
											location = { province_event = { id = autobuild_startbuilding.374}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = no_hunting_parties_1 has_building = no_ab_ph_no_hunting_parties_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_1 
										location = { province_event = { id = autobuild_startbuilding.414}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = no_horse_breeder_1 has_building = no_ab_ph_no_horse_breeder_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_1 
										location = { province_event = { id = autobuild_startbuilding.406}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0025 = yes}} 
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = tb_hillfort_1 has_building = tb_ab_ph_tb_hillfort_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_hillfort_1 
										location = { province_event = { id = autobuild_startbuilding.743}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = tb_market_town_1 has_building = tb_ab_ph_tb_market_town_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_market_town_1 
										location = { province_event = { id = autobuild_startbuilding.747}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0035 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_ger_crafter_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_ger_crafter_1 has_building = no_ab_ph_no_ger_crafter_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_1 
											location = { province_event = { id = autobuild_startbuilding.390}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = {
											has_building = no_fishing_village_1 
											NOT = { has_building = no_fishing_village_2 has_building = no_ab_ph_no_fishing_village_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_2 
											location = { province_event = { id = autobuild_startbuilding.375}} 
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0040 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_2 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = {
											has_building = no_ox_wagon_1 
											NOT = { has_building = no_ox_wagon_2 has_building = no_ab_ph_no_ox_wagon_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_2 
											location = { province_event = { id = autobuild_startbuilding.455}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = no_minority_shrine_1 
										NOT = { has_building = no_minority_shrine_2 has_building = no_ab_ph_no_minority_shrine_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_2 
										location = { province_event = { id = autobuild_startbuilding.439}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_minority_shrine_2 
										NOT = { has_building = no_minority_shrine_3 has_building = no_ab_ph_no_minority_shrine_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_3 
										location = { province_event = { id = autobuild_startbuilding.440}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = {
										NOT = { has_building = no_camp_fortifications_1 has_building = no_ab_ph_no_camp_fortifications_1}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_1 
										location = { province_event = { id = autobuild_startbuilding.334}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = {
										has_building = no_minority_shrine_3 
										NOT = { has_building = no_minority_shrine_4 has_building = no_ab_ph_no_minority_shrine_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_4 
										location = { province_event = { id = autobuild_startbuilding.441}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_minority_shrine_4 
										NOT = { has_building = no_minority_shrine_5 has_building = no_ab_ph_no_minority_shrine_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_5 
										location = { province_event = { id = autobuild_startbuilding.442}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = {
										has_building = no_hunting_parties_1 
										NOT = { has_building = no_hunting_parties_2 has_building = no_ab_ph_no_hunting_parties_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_2 
										location = { province_event = { id = autobuild_startbuilding.415}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_horse_breeder_1 
										NOT = { has_building = no_horse_breeder_2 has_building = no_ab_ph_no_horse_breeder_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_2 
										location = { province_event = { id = autobuild_startbuilding.407}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = no_wrestling_1 has_building = no_ab_ph_no_wrestling_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_1 
										location = { province_event = { id = autobuild_startbuilding.486}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
								IF = {
									limit = {
										has_building = no_minority_shrine_6 
										NOT = { has_building = no_minority_shrine_7 has_building = no_ab_ph_no_minority_shrine_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_7 
										location = { province_event = { id = autobuild_startbuilding.444}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = no_minority_shrine_5 
										NOT = { has_building = no_minority_shrine_6 has_building = no_ab_ph_no_minority_shrine_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_6 
										location = { province_event = { id = autobuild_startbuilding.443}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
								IF = {
									limit = {
										has_building = no_minority_shrine_7 
										NOT = { has_building = no_minority_shrine_8 has_building = no_ab_ph_no_minority_shrine_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_8 
										location = { province_event = { id = autobuild_startbuilding.445}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = no_gathering_hall_1 has_building = no_ab_ph_no_gathering_hall_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_1 
										location = { province_event = { id = autobuild_startbuilding.382}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = no_minority_shrine_1 has_building = no_ab_ph_no_minority_shrine_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_minority_shrine_1 
										location = { province_event = { id = autobuild_startbuilding.438}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0050 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_preq_ct_port_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ct_wall_q_1 
											NOT = { has_building = ct_wall_q_2 has_building = ct_ab_ph_ct_wall_q_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_wall_q_2 
											location = { province_event = { id = autobuild_startbuilding.261}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_ct_port_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = ct_wall_q_1 has_building = ct_ab_ph_ct_wall_q_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_wall_q_1 
											location = { province_event = { id = autobuild_startbuilding.260}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_2 = yes}} 
								IF = {
									limit = {
										has_building = ct_wall_q_2 
										NOT = { has_building = ct_wall_q_3 has_building = ct_ab_ph_ct_wall_q_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_q_3 
										location = { province_event = { id = autobuild_startbuilding.262}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = ct_wall_1 has_building = ct_ab_ph_ct_wall_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_1 
										location = { province_event = { id = autobuild_startbuilding.255}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_3 = yes}} 
								IF = {
									limit = { has_building = ct_wall_1 NOT = { has_building = ct_wall_2 has_building = ct_ab_ph_ct_wall_2}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_2 
										location = { province_event = { id = autobuild_startbuilding.256}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_preq_tp_school_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = tp_wall_q_1 
											NOT = { has_building = tp_wall_q_2 has_building = tp_ab_ph_tp_wall_q_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_wall_q_2 
											location = { province_event = { id = autobuild_startbuilding.556}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_tp_school_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tp_wall_q_1 has_building = tp_ab_ph_tp_wall_q_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_wall_q_1 
											location = { province_event = { id = autobuild_startbuilding.555}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_2 = yes}} 
								IF = {
									limit = {
										has_building = tp_wall_q_2 
										NOT = { has_building = tp_wall_q_3 has_building = tp_ab_ph_tp_wall_q_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_q_3 
										location = { province_event = { id = autobuild_startbuilding.557}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = tp_wall_1 has_building = tp_ab_ph_tp_wall_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_1 
										location = { province_event = { id = autobuild_startbuilding.550}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_3 = yes}} 
								IF = {
									limit = { has_building = tp_wall_1 NOT = { has_building = tp_wall_2 has_building = tp_ab_ph_tp_wall_2}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_2 
										location = { province_event = { id = autobuild_startbuilding.551}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_ger_crafter_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_ger_crafter_1 
											NOT = { has_building = no_ger_crafter_2 has_building = no_ab_ph_no_ger_crafter_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_2 
											location = { province_event = { id = autobuild_startbuilding.391}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_fishing_village_2 
											NOT = { has_building = no_fishing_village_3 has_building = no_ab_ph_no_fishing_village_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_3 
											location = { province_event = { id = autobuild_startbuilding.376}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_port_1 = yes}} 
								IF = {
									limit = { NOT = { has_building = no_yam_1 has_building = no_ab_ph_no_yam_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_1 
										location = { province_event = { id = autobuild_startbuilding.494}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = no_shrine_1 has_building = no_ab_ph_no_shrine_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_1 
										location = { province_event = { id = autobuild_startbuilding.478}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = no_sheep_1 has_building = no_ab_ph_no_sheep_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_1 
										location = { province_event = { id = autobuild_startbuilding.470}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_preq_ca_town_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_wall_q_1 
											NOT = { has_building = ca_wall_q_2 has_building = ca_ab_ph_ca_wall_q_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_wall_q_2 
											location = { province_event = { id = autobuild_startbuilding.209}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_2 = yes}} 
								IF = {
									limit = {
										has_building = ca_wall_q_2 
										NOT = { has_building = ca_wall_q_3 has_building = ca_ab_ph_ca_wall_q_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_q_3 
										location = { province_event = { id = autobuild_startbuilding.210}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = ca_wall_q_1 has_building = ca_ab_ph_ca_wall_q_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_q_1 
										location = { province_event = { id = autobuild_startbuilding.208}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = ca_wall_1 has_building = ca_ab_ph_ca_wall_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_1 
										location = { province_event = { id = autobuild_startbuilding.203}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_3 = yes}} 
								IF = {
									limit = { has_building = ca_wall_1 NOT = { has_building = ca_wall_2 has_building = ca_ab_ph_ca_wall_2}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_2 
										location = { province_event = { id = autobuild_startbuilding.204}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = {
										has_building = tb_hillfort_1 
										NOT = { has_building = tb_hillfort_2 has_building = tb_ab_ph_tb_hillfort_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_hillfort_2 
										location = { province_event = { id = autobuild_startbuilding.744}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = {
										has_building = tb_market_town_1 
										NOT = { has_building = tb_market_town_2 has_building = tb_ab_ph_tb_market_town_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_market_town_2 
										location = { province_event = { id = autobuild_startbuilding.748}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0060 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_airag_producer_1 has_building = no_ab_ph_no_airag_producer_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_1 
											location = { province_event = { id = autobuild_startbuilding.310}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_riding_contests_1 has_building = no_ab_ph_no_riding_contests_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_1 
											location = { province_event = { id = autobuild_startbuilding.462}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_felt_crafter_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_felt_crafter_1 has_building = no_ab_ph_no_felt_crafter_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_1 
											location = { province_event = { id = autobuild_startbuilding.366}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_meat_preserver_1 has_building = no_ab_ph_no_meat_preserver_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_1 
											location = { province_event = { id = autobuild_startbuilding.430}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_no_harbor_1 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_harbor_1 has_building = no_ab_ph_no_harbor_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_1 
											location = { province_event = { id = autobuild_startbuilding.398}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_camel_breeder_1 has_building = no_ab_ph_no_camel_breeder_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_1 
											location = { province_event = { id = autobuild_startbuilding.326}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_elephant_camp_1 has_building = no_ab_ph_no_elephant_camp_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_1 
											location = { province_event = { id = autobuild_startbuilding.358}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = {
										has_building = no_camp_fortifications_1 
										NOT = { has_building = no_camp_fortifications_2 has_building = no_ab_ph_no_camp_fortifications_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_2 
										location = { province_event = { id = autobuild_startbuilding.335}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = no_cattle_pens_1 has_building = no_ab_ph_no_cattle_pens_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_1 
										location = { province_event = { id = autobuild_startbuilding.342}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_gathering_hall_1 
										NOT = { has_building = no_gathering_hall_2 has_building = no_ab_ph_no_gathering_hall_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_2 
										location = { province_event = { id = autobuild_startbuilding.383}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = no_wrestling_1 
										NOT = { has_building = no_wrestling_2 has_building = no_ab_ph_no_wrestling_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_2 
										location = { province_event = { id = autobuild_startbuilding.487}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0070 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_ger_crafter_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_ger_crafter_2 
											NOT = { has_building = no_ger_crafter_3 has_building = no_ab_ph_no_ger_crafter_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_3 
											location = { province_event = { id = autobuild_startbuilding.392}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_2 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_meat_preserver_1 
											NOT = { has_building = no_meat_preserver_2 has_building = no_ab_ph_no_meat_preserver_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_2 
											location = { province_event = { id = autobuild_startbuilding.431}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_fishing_village_3 
											NOT = { has_building = no_fishing_village_4 has_building = no_ab_ph_no_fishing_village_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_4 
											location = { province_event = { id = autobuild_startbuilding.377}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_port_1 = yes}} 
								IF = {
									limit = { has_building = no_yam_1 NOT = { has_building = no_yam_2 has_building = no_ab_ph_no_yam_2}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_2 
										location = { province_event = { id = autobuild_startbuilding.495}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										NOT = { has_building = no_composite_bow_crafter_1 has_building = no_ab_ph_no_composite_bow_crafter_1}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_1 
										location = { province_event = { id = autobuild_startbuilding.350}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0075 = yes}} 
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_market_town_2 
										NOT = { has_building = tb_market_town_3 has_building = tb_ab_ph_tb_market_town_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_market_town_3 
										location = { province_event = { id = autobuild_startbuilding.749}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = tb_hillfort_2 
										NOT = { has_building = tb_hillfort_3 has_building = tb_ab_ph_tb_hillfort_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_hillfort_3 
										location = { province_event = { id = autobuild_startbuilding.745}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0080 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_felt_crafter_2 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_felt_crafter_1 
											NOT = { has_building = no_felt_crafter_2 has_building = no_ab_ph_no_felt_crafter_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_2 
											location = { province_event = { id = autobuild_startbuilding.367}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_airag_producer_2 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_airag_producer_1 
											NOT = { has_building = no_airag_producer_2 has_building = no_ab_ph_no_airag_producer_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_2 
											location = { province_event = { id = autobuild_startbuilding.311}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_3 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_ox_wagon_2 
											NOT = { has_building = no_ox_wagon_3 has_building = no_ab_ph_no_ox_wagon_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_3 
											location = { province_event = { id = autobuild_startbuilding.456}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_port_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_minter_1 has_building = no_ab_ph_no_minter_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_1 
											location = { province_event = { id = autobuild_startbuilding.446}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_baghatur_council_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_1 = yes}} 
									IF = {
										limit = { NOT = { has_building = no_baghatur_council_1 has_building = no_ab_ph_no_baghatur_council_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_1 
											location = { province_event = { id = autobuild_startbuilding.318}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = no_shrine_1 
										NOT = { has_building = no_shrine_2 has_building = no_ab_ph_no_shrine_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_2 
										location = { province_event = { id = autobuild_startbuilding.479}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_gathering_hall_2 
										NOT = { has_building = no_gathering_hall_3 has_building = no_ab_ph_no_gathering_hall_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_3 
										location = { province_event = { id = autobuild_startbuilding.384}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = {
										NOT = { has_building = no_lamellar_armor_crafter_1 has_building = no_ab_ph_no_lamellar_armor_crafter_1}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_1 
										location = { province_event = { id = autobuild_startbuilding.422}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = {
										has_building = no_sheep_1 
										NOT = { has_building = no_sheep_2 has_building = no_ab_ph_no_sheep_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_2 
										location = { province_event = { id = autobuild_startbuilding.471}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_cattle_pens_1 
										NOT = { has_building = no_cattle_pens_2 has_building = no_ab_ph_no_cattle_pens_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_2 
										location = { province_event = { id = autobuild_startbuilding.343}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = no_horse_breeder_2 
										NOT = { has_building = no_horse_breeder_3 has_building = no_ab_ph_no_horse_breeder_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_3 
										location = { province_event = { id = autobuild_startbuilding.408}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_hunting_parties_2 
										NOT = { has_building = no_hunting_parties_3 has_building = no_ab_ph_no_hunting_parties_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_3 
										location = { province_event = { id = autobuild_startbuilding.416}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0090 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = no_riding_contests_1 
											NOT = { has_building = no_riding_contests_2 has_building = no_ab_ph_no_riding_contests_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_2 
											location = { province_event = { id = autobuild_startbuilding.463}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_ger_crafter_4 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_ger_crafter_3 
											NOT = { has_building = no_ger_crafter_4 has_building = no_ab_ph_no_ger_crafter_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_4 
											location = { province_event = { id = autobuild_startbuilding.393}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_meat_preserver_2 
											NOT = { has_building = no_meat_preserver_3 has_building = no_ab_ph_no_meat_preserver_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_3 
											location = { province_event = { id = autobuild_startbuilding.432}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_1 = yes}} 
									IF = {
										limit = {
											has_building = no_harbor_1 
											NOT = { has_building = no_harbor_2 has_building = no_ab_ph_no_harbor_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_2 
											location = { province_event = { id = autobuild_startbuilding.399}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_fishing_village_4 
											NOT = { has_building = no_fishing_village_5 has_building = no_ab_ph_no_fishing_village_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_5 
											location = { province_event = { id = autobuild_startbuilding.378}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = no_camel_breeder_1 
											NOT = { has_building = no_camel_breeder_2 has_building = no_ab_ph_no_camel_breeder_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_2 
											location = { province_event = { id = autobuild_startbuilding.327}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = no_elephant_camp_1 
											NOT = { has_building = no_elephant_camp_2 has_building = no_ab_ph_no_elephant_camp_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_2 
											location = { province_event = { id = autobuild_startbuilding.359}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_1 = yes}} 
								IF = {
									limit = {
										has_building = no_camp_fortifications_2 
										NOT = { has_building = no_camp_fortifications_3 has_building = no_ab_ph_no_camp_fortifications_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_3 
										location = { province_event = { id = autobuild_startbuilding.336}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
								IF = {
									limit = {
										has_building = no_wrestling_2 
										NOT = { has_building = no_wrestling_3 has_building = no_ab_ph_no_wrestling_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_3 
										location = { province_event = { id = autobuild_startbuilding.488}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_composite_bow_crafter_1 
										NOT = { has_building = no_composite_bow_crafter_2 has_building = no_ab_ph_no_composite_bow_crafter_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_2 
										location = { province_event = { id = autobuild_startbuilding.351}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0100 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_4 = yes}} 
									IF = {
										limit = {
											has_building = ct_shipyard_3 
											NOT = { has_building = ct_shipyard_4 has_building = ct_ab_ph_ct_shipyard_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_shipyard_4 
											location = { province_event = { id = autobuild_startbuilding.245}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_3 = yes}} 
									IF = {
										limit = {
											has_building = ct_shipyard_2 
											NOT = { has_building = ct_shipyard_3 has_building = ct_ab_ph_ct_shipyard_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_shipyard_3 
											location = { province_event = { id = autobuild_startbuilding.244}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_2 = yes}} 
									IF = {
										limit = {
											has_building = ct_shipyard_1 
											NOT = { has_building = ct_shipyard_2 has_building = ct_ab_ph_ct_shipyard_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_shipyard_2 
											location = { province_event = { id = autobuild_startbuilding.243}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_1 = yes}} 
									IF = {
										limit = { NOT = { has_building = ct_shipyard_1 has_building = ct_ab_ph_ct_shipyard_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_shipyard_1 
											location = { province_event = { id = autobuild_startbuilding.242}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ct_port_1 = yes}} 
									IF = {
										limit = { NOT = { has_building = ct_port_1 has_building = ct_ab_ph_ct_port_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_port_1 
											location = { province_event = { id = autobuild_startbuilding.234}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_4 = yes}} 
								IF = {
									limit = { has_building = ct_wall_2 NOT = { has_building = ct_wall_3 has_building = ct_ab_ph_ct_wall_3}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_3 
										location = { province_event = { id = autobuild_startbuilding.257}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_5 = yes}} 
								IF = {
									limit = { has_building = ct_wall_3 NOT = { has_building = ct_wall_4 has_building = ct_ab_ph_ct_wall_4}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_4 
										location = { province_event = { id = autobuild_startbuilding.258}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = ct_wall_q_3 
										NOT = { has_building = ct_wall_q_4 has_building = ct_ab_ph_ct_wall_q_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_q_4 
										location = { province_event = { id = autobuild_startbuilding.263}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_4 = yes}} 
								IF = {
									limit = {
										has_building = ct_wall_q_4 
										NOT = { has_building = ct_wall_q_5 has_building = ct_ab_ph_ct_wall_q_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_q_5 
										location = { province_event = { id = autobuild_startbuilding.264}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = ct_barracks_1 has_building = ct_ab_ph_ct_barracks_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_barracks_1 
										location = { province_event = { id = autobuild_startbuilding.213}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = ct_marketplace_1 has_building = ct_ab_ph_ct_marketplace_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_marketplace_1 
										location = { province_event = { id = autobuild_startbuilding.224}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = ct_guard_1 has_building = ct_ab_ph_ct_guard_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_guard_1 
										location = { province_event = { id = autobuild_startbuilding.219}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_4 = yes}} 
									IF = {
										limit = {
											has_building = tp_shipyard_3 
											NOT = { has_building = tp_shipyard_4 has_building = tp_ab_ph_tp_shipyard_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_shipyard_4 
											location = { province_event = { id = autobuild_startbuilding.531}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_3 = yes}} 
									IF = {
										limit = {
											has_building = tp_shipyard_2 
											NOT = { has_building = tp_shipyard_3 has_building = tp_ab_ph_tp_shipyard_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_shipyard_3 
											location = { province_event = { id = autobuild_startbuilding.530}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_2 = yes}} 
									IF = {
										limit = {
											has_building = tp_shipyard_1 
											NOT = { has_building = tp_shipyard_2 has_building = tp_ab_ph_tp_shipyard_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_shipyard_2 
											location = { province_event = { id = autobuild_startbuilding.529}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_1 = yes}} 
									IF = {
										limit = { NOT = { has_building = tp_shipyard_1 has_building = tp_ab_ph_tp_shipyard_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_shipyard_1 
											location = { province_event = { id = autobuild_startbuilding.528}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_4 = yes}} 
								IF = {
									limit = { has_building = tp_wall_2 NOT = { has_building = tp_wall_3 has_building = tp_ab_ph_tp_wall_3}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_3 
										location = { province_event = { id = autobuild_startbuilding.552}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_5 = yes}} 
								IF = {
									limit = { has_building = tp_wall_3 NOT = { has_building = tp_wall_4 has_building = tp_ab_ph_tp_wall_4}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_4 
										location = { province_event = { id = autobuild_startbuilding.553}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = tp_wall_q_3 
										NOT = { has_building = tp_wall_q_4 has_building = tp_ab_ph_tp_wall_q_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_q_4 
										location = { province_event = { id = autobuild_startbuilding.558}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_4 = yes}} 
								IF = {
									limit = {
										has_building = tp_wall_q_4 
										NOT = { has_building = tp_wall_q_5 has_building = tp_ab_ph_tp_wall_q_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_q_5 
										location = { province_event = { id = autobuild_startbuilding.559}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = tp_elite_barracks_1 has_building = tp_ab_ph_tp_elite_barracks_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_elite_barracks_1 
										location = { province_event = { id = autobuild_startbuilding.508}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = tp_town_1 has_building = tp_ab_ph_tp_town_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_town_1 
										location = { province_event = { id = autobuild_startbuilding.544}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = tp_barracks_1 has_building = tp_ab_ph_tp_barracks_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_barracks_1 
										location = { province_event = { id = autobuild_startbuilding.502}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_felt_crafter_3 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_felt_crafter_2 
											NOT = { has_building = no_felt_crafter_3 has_building = no_ab_ph_no_felt_crafter_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_3 
											location = { province_event = { id = autobuild_startbuilding.368}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_airag_producer_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_airag_producer_2 
											NOT = { has_building = no_airag_producer_3 has_building = no_ab_ph_no_airag_producer_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_3 
											location = { province_event = { id = autobuild_startbuilding.312}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_port_2 = yes}} 
								IF = {
									limit = { has_building = no_yam_2 NOT = { has_building = no_yam_3 has_building = no_ab_ph_no_yam_3}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_3 
										location = { province_event = { id = autobuild_startbuilding.496}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = no_cattle_pens_2 
										NOT = { has_building = no_cattle_pens_3 has_building = no_ab_ph_no_cattle_pens_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_3 
										location = { province_event = { id = autobuild_startbuilding.344}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_desert_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = ca_desert_stable_1 has_building = ca_ab_ph_ca_desert_stable_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_desert_stable_1 
											location = { province_event = { id = autobuild_startbuilding.144}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_steppe_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = ca_steppe_stable_1 has_building = ca_ab_ph_ca_steppe_stable_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_stable_1 
											location = { province_event = { id = autobuild_startbuilding.188}} 
											break = yes 
											}
										}
									IF = {
										limit = { NOT = { has_building = ca_steppe_barracks_1 has_building = ca_ab_ph_ca_steppe_barracks_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_barracks_1 
											location = { province_event = { id = autobuild_startbuilding.182}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_4 = yes}} 
									IF = {
										limit = {
											has_building = ca_shipyard_3 
											NOT = { has_building = ca_shipyard_4 has_building = ca_ab_ph_ca_shipyard_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_shipyard_4 
											location = { province_event = { id = autobuild_startbuilding.171}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_shipyard_2 
											NOT = { has_building = ca_shipyard_3 has_building = ca_ab_ph_ca_shipyard_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_shipyard_3 
											location = { province_event = { id = autobuild_startbuilding.170}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_shipyard_1 
											NOT = { has_building = ca_shipyard_2 has_building = ca_ab_ph_ca_shipyard_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_shipyard_2 
											location = { province_event = { id = autobuild_startbuilding.169}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_1 = yes}} 
									IF = {
										limit = { NOT = { has_building = ca_shipyard_1 has_building = ca_ab_ph_ca_shipyard_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_shipyard_1 
											location = { province_event = { id = autobuild_startbuilding.168}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_4 = yes}} 
								IF = {
									limit = { has_building = ca_wall_2 NOT = { has_building = ca_wall_3 has_building = ca_ab_ph_ca_wall_3}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_3 
										location = { province_event = { id = autobuild_startbuilding.205}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = ca_wall_q_3 
										NOT = { has_building = ca_wall_q_4 has_building = ca_ab_ph_ca_wall_q_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_q_4 
										location = { province_event = { id = autobuild_startbuilding.211}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = {
										NOT = {has_building = ca_steppe_stable_1
											has_building = ca_desert_stable_1
											}
										NOT = {location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														}
													}
												}
											}
										NOT = { has_building = ca_stable_1 has_building = ca_ab_ph_ca_stable_1}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_stable_1 
										location = { province_event = { id = autobuild_startbuilding.176}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = ca_militia_barracks_1 has_building = ca_ab_ph_ca_militia_barracks_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_militia_barracks_1 
										location = { province_event = { id = autobuild_startbuilding.160}} 
										break = yes 
										}
									}
								IF = {
									limit = { NOT = { has_building = ca_town_1 has_building = ca_ab_ph_ca_town_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_town_1 
										location = { province_event = { id = autobuild_startbuilding.194}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										NOT = {has_building = ca_steppe_barracks_1
											}
										NOT = {location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = ca_barracks_1 has_building = ca_ab_ph_ca_barracks_1}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_barracks_1 
										location = { province_event = { id = autobuild_startbuilding.1}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_4 = yes}} 
								IF = {
									limit = {
										has_building = ca_wall_q_4 
										NOT = { has_building = ca_wall_q_5 has_building = ca_ab_ph_ca_wall_q_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_q_5 
										location = { province_event = { id = autobuild_startbuilding.212}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_market_town_3 
										NOT = { has_building = tb_market_town_4 has_building = tb_ab_ph_tb_market_town_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_market_town_4 
										location = { province_event = { id = autobuild_startbuilding.750}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = tb_hillfort_3 
										NOT = { has_building = tb_hillfort_4 has_building = tb_ab_ph_tb_hillfort_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_hillfort_4 
										location = { province_event = { id = autobuild_startbuilding.746}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0110 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_meat_preserver_3 
											NOT = { has_building = no_meat_preserver_4 has_building = no_ab_ph_no_meat_preserver_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_4 
											location = { province_event = { id = autobuild_startbuilding.433}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_port_2 = yes}} 
									IF = {
										limit = {
											has_building = no_minter_1 
											NOT = { has_building = no_minter_2 has_building = no_ab_ph_no_minter_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_2 
											location = { province_event = { id = autobuild_startbuilding.447}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = no_shrine_2 
										NOT = { has_building = no_shrine_3 has_building = no_ab_ph_no_shrine_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_3 
										location = { province_event = { id = autobuild_startbuilding.480}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_gathering_hall_3 
										NOT = { has_building = no_gathering_hall_4 has_building = no_ab_ph_no_gathering_hall_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_4 
										location = { province_event = { id = autobuild_startbuilding.385}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = no_lamellar_armor_crafter_1 
										NOT = { has_building = no_lamellar_armor_crafter_2 has_building = no_ab_ph_no_lamellar_armor_crafter_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_2 
										location = { province_event = { id = autobuild_startbuilding.423}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0120 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_preq_ct_port_2 = yes}
								IF = {
									limit = { ab_pot_ca_shipyard_4 = yes}
									IF = {
										limit = { location = { ab_tech_ct_port_2 = yes}} 
										IF = {
											limit = { has_building = ct_port_1 NOT = { has_building = ct_port_2 has_building = ct_ab_ph_ct_port_2}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ct_ab_ph_workers_camp 
												add_building = ct_ab_ph_ct_port_2 
												location = { province_event = { id = autobuild_startbuilding.235}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = ct_guard_1 
											NOT = { has_building = ct_guard_2 has_building = ct_ab_ph_ct_guard_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_guard_2 
											location = { province_event = { id = autobuild_startbuilding.220}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = {
											has_building = ct_barracks_1 
											NOT = { has_building = ct_barracks_2 has_building = ct_ab_ph_ct_barracks_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_barracks_2 
											location = { province_event = { id = autobuild_startbuilding.214}} 
											break = yes 
											}
										}
									IF = {
										limit = {
											has_building = ct_marketplace_1 
											NOT = { has_building = ct_marketplace_2 has_building = ct_ab_ph_ct_marketplace_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_marketplace_2 
											location = { province_event = { id = autobuild_startbuilding.225}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_preq_tp_school_2 = yes}
								IF = {
									limit = { location = { ab_tech_ct_guard_4 = yes}} 
									IF = {
										limit = {
											has_building = tp_school_1 
											NOT = { has_building = tp_school_2 has_building = tp_ab_ph_tp_school_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_school_2 
											location = { province_event = { id = autobuild_startbuilding.527}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_tp_school_1 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tp_school_1 has_building = tp_ab_ph_tp_school_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_school_1 
											location = { province_event = { id = autobuild_startbuilding.526}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tp_barracks_1 
											NOT = { has_building = tp_barracks_2 has_building = tp_ab_ph_tp_barracks_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_barracks_2 
											location = { province_event = { id = autobuild_startbuilding.503}} 
											break = yes 
											}
										}
									IF = {
										limit = { has_building = tp_town_1 NOT = { has_building = tp_town_2 has_building = tp_ab_ph_tp_town_2}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_town_2 
											location = { province_event = { id = autobuild_startbuilding.545}} 
											break = yes 
											}
										}
									IF = {
										limit = {
											has_building = tp_elite_barracks_1 
											NOT = { has_building = tp_elite_barracks_2 has_building = tp_ab_ph_tp_elite_barracks_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_elite_barracks_2 
											location = { province_event = { id = autobuild_startbuilding.509}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_ger_crafter_5 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = no_ger_crafter_4 
											NOT = { has_building = no_ger_crafter_5 has_building = no_ab_ph_no_ger_crafter_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_5 
											location = { province_event = { id = autobuild_startbuilding.394}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_airag_producer_3 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = no_riding_contests_2 
											NOT = { has_building = no_riding_contests_3 has_building = no_ab_ph_no_riding_contests_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_3 
											location = { province_event = { id = autobuild_startbuilding.464}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_felt_crafter_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_felt_crafter_3 
											NOT = { has_building = no_felt_crafter_4 has_building = no_ab_ph_no_felt_crafter_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_4 
											location = { province_event = { id = autobuild_startbuilding.369}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_2 = yes}} 
									IF = {
										limit = {
											has_building = no_harbor_2 
											NOT = { has_building = no_harbor_3 has_building = no_ab_ph_no_harbor_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_3 
											location = { province_event = { id = autobuild_startbuilding.400}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_fishing_village_5 
											NOT = { has_building = no_fishing_village_6 has_building = no_ab_ph_no_fishing_village_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_6 
											location = { province_event = { id = autobuild_startbuilding.379}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = no_camel_breeder_2 
											NOT = { has_building = no_camel_breeder_3 has_building = no_ab_ph_no_camel_breeder_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_3 
											location = { province_event = { id = autobuild_startbuilding.328}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_baghatur_council_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_3 = yes}} 
									IF = {
										limit = {
											has_building = no_baghatur_council_1 
											NOT = { has_building = no_baghatur_council_2 has_building = no_ab_ph_no_baghatur_council_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_2 
											location = { province_event = { id = autobuild_startbuilding.319}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = no_elephant_camp_2 
											NOT = { has_building = no_elephant_camp_3 has_building = no_ab_ph_no_elephant_camp_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_3 
											location = { province_event = { id = autobuild_startbuilding.360}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = no_sheep_2 
										NOT = { has_building = no_sheep_3 has_building = no_ab_ph_no_sheep_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_3 
										location = { province_event = { id = autobuild_startbuilding.472}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_1 = yes}} 
								IF = {
									limit = {
										has_building = no_camp_fortifications_3 
										NOT = { has_building = no_camp_fortifications_4 has_building = no_ab_ph_no_camp_fortifications_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_4 
										location = { province_event = { id = autobuild_startbuilding.337}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_4 = yes}} 
								IF = {
									limit = {
										has_building = no_composite_bow_crafter_2 
										NOT = { has_building = no_composite_bow_crafter_3 has_building = no_ab_ph_no_composite_bow_crafter_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_3 
										location = { province_event = { id = autobuild_startbuilding.352}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
								IF = {
									limit = {
										has_building = no_wrestling_3 
										NOT = { has_building = no_wrestling_4 has_building = no_ab_ph_no_wrestling_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_4 
										location = { province_event = { id = autobuild_startbuilding.489}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_preq_ca_town_2 = yes}
								IF = {
									limit = { ab_pot_ca_desert_stable_6 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												has_building = ca_desert_stable_1 
												NOT = { has_building = ca_desert_stable_2 has_building = ca_ab_ph_ca_desert_stable_2}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_desert_stable_2 
												location = { province_event = { id = autobuild_startbuilding.145}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_steppe_stable_6 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												has_building = ca_steppe_stable_1 
												NOT = { has_building = ca_steppe_stable_2 has_building = ca_ab_ph_ca_steppe_stable_2}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_steppe_stable_2 
												location = { province_event = { id = autobuild_startbuilding.189}} 
												break = yes 
												}
											}
										IF = {
											limit = {
												has_building = ca_steppe_barracks_1 
												NOT = { has_building = ca_steppe_barracks_2 has_building = ca_ab_ph_ca_steppe_barracks_2}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_steppe_barracks_2 
												location = { province_event = { id = autobuild_startbuilding.183}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_stable_1 
											NOT = {has_building = ca_steppe_stable_2
												has_building = ca_desert_stable_2
												}
											NOT = {AND = {
													location = {
														terrain = steppe 
														event_target:abet_owner = {
															OR = {
																culture_group = altaic 
																culture_group = magyar 
																culture = alan 
																culture_group = iranian 
																}
															}
														}
													ab_preq_ca_town_2 = yes 
													}
												AND = {
													location = {
														terrain = desert 
														event_target:abet_owner = {
															OR = {
																culture_group = east_african 
																culture_group = west_african 
																culture_group = arabic 
																}
															}
														}
													ab_preq_ca_town_2 = yes 
													}
												}
											NOT = { has_building = ca_stable_2 has_building = ca_ab_ph_ca_stable_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_stable_2 
											location = { province_event = { id = autobuild_startbuilding.177}} 
											break = yes 
											}
										}
									IF = {
										limit = {
											has_building = ca_barracks_1 
											NOT = {has_building = ca_steppe_barracks_2
												}
											NOT = {AND = {
													location = {
														terrain = steppe 
														event_target:abet_owner = {
															OR = {
																culture_group = altaic 
																culture_group = magyar 
																culture = alan 
																culture_group = iranian 
																}
															}
														}
													ab_preq_ca_town_2 = yes 
													}
												}
											NOT = { has_building = ca_barracks_2 has_building = ca_ab_ph_ca_barracks_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_barracks_2 
											location = { province_event = { id = autobuild_startbuilding.2}} 
											break = yes 
											}
										}
									IF = {
										limit = { has_building = ca_town_1 NOT = { has_building = ca_town_2 has_building = ca_ab_ph_ca_town_2}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_town_2 
											location = { province_event = { id = autobuild_startbuilding.195}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_militia_barracks_1 
											NOT = { has_building = ca_militia_barracks_2 has_building = ca_ab_ph_ca_militia_barracks_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_militia_barracks_2 
											location = { province_event = { id = autobuild_startbuilding.161}} 
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0125 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ct_planned_infrastructure_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = ct_planned_infrastructure_1 has_building = ct_ab_ph_ct_planned_infrastructure_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_planned_infrastructure_1 
											location = { province_event = { id = autobuild_startbuilding.230}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_pot_tp_monumental_shrines_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tp_monumental_shrines_1 has_building = tp_ab_ph_tp_monumental_shrines_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_monumental_shrines_1 
											location = { province_event = { id = autobuild_startbuilding.521}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = no_cattle_pens_3 
										NOT = { has_building = no_cattle_pens_4 has_building = no_ab_ph_no_cattle_pens_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_4 
										location = { province_event = { id = autobuild_startbuilding.345}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_special_fortifications_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_1 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = ca_special_fortifications_1 has_building = ca_ab_ph_ca_special_fortifications_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_special_fortifications_1 
											location = { province_event = { id = autobuild_startbuilding.172}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_oppressive_fortifications_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											NOT = {
												has_building = ca_oppressive_fortifications_1 
												has_building = ca_ab_ph_ca_oppressive_fortifications_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_oppressive_fortifications_1 
											location = { province_event = { id = autobuild_startbuilding.164}} 
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0130 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_airag_producer_3 
											NOT = { has_building = no_airag_producer_4 has_building = no_ab_ph_no_airag_producer_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_4 
											location = { province_event = { id = autobuild_startbuilding.313}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_port_2 = yes}} 
								IF = {
									limit = { has_building = no_yam_3 NOT = { has_building = no_yam_4 has_building = no_ab_ph_no_yam_4}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_4 
										location = { province_event = { id = autobuild_startbuilding.497}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0140 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_5 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_meat_preserver_4 
											NOT = { has_building = no_meat_preserver_5 has_building = no_ab_ph_no_meat_preserver_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_5 
											location = { province_event = { id = autobuild_startbuilding.434}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = no_lamellar_armor_crafter_2 
										NOT = { has_building = no_lamellar_armor_crafter_3 has_building = no_ab_ph_no_lamellar_armor_crafter_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_3 
										location = { province_event = { id = autobuild_startbuilding.424}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0150 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = ct_training_grounds_1 has_building = ct_ab_ph_ct_training_grounds_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_training_grounds_1 
										location = { province_event = { id = autobuild_startbuilding.246}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_6 = yes}} 
								IF = {
									limit = { has_building = ct_wall_4 NOT = { has_building = ct_wall_5 has_building = ct_ab_ph_ct_wall_5}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_wall_5 
										location = { province_event = { id = autobuild_startbuilding.259}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_pot_tp_saint_shrine = yes}
								IF = {
									limit = { NOT = { has_building = tp_saint_shrine has_building = tp_ab_ph_tp_saint_shrine}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_saint_shrine 
										location = { province_event = { id = autobuild_startbuilding.525}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_6 = yes}} 
								IF = {
									limit = { has_building = tp_wall_4 NOT = { has_building = tp_wall_5 has_building = tp_ab_ph_tp_wall_5}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_wall_5 
										location = { province_event = { id = autobuild_startbuilding.554}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = tp_monastery_1 has_building = tp_ab_ph_tp_monastery_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_monastery_1 
										location = { province_event = { id = autobuild_startbuilding.515}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = no_riding_contests_3 
											NOT = { has_building = no_riding_contests_4 has_building = no_ab_ph_no_riding_contests_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_4 
											location = { province_event = { id = autobuild_startbuilding.465}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_felt_crafter_5 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_felt_crafter_4 
											NOT = { has_building = no_felt_crafter_5 has_building = no_ab_ph_no_felt_crafter_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_5 
											location = { province_event = { id = autobuild_startbuilding.370}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_ger_crafter_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = no_ger_crafter_5 
											NOT = { has_building = no_ger_crafter_6 has_building = no_ab_ph_no_ger_crafter_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_6 
											location = { province_event = { id = autobuild_startbuilding.395}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_3 = yes}} 
									IF = {
										limit = {
											has_building = no_harbor_3 
											NOT = { has_building = no_harbor_4 has_building = no_ab_ph_no_harbor_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_4 
											location = { province_event = { id = autobuild_startbuilding.401}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_fishing_village_6 
											NOT = { has_building = no_fishing_village_7 has_building = no_ab_ph_no_fishing_village_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_7 
											location = { province_event = { id = autobuild_startbuilding.380}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_tr_sahara_2 = yes}} 
									IF = {
										limit = {
											has_building = no_minter_2 
											NOT = { has_building = no_minter_3 has_building = no_ab_ph_no_minter_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_3 
											location = { province_event = { id = autobuild_startbuilding.448}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = no_camel_breeder_3 
											NOT = { has_building = no_camel_breeder_4 has_building = no_ab_ph_no_camel_breeder_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_4 
											location = { province_event = { id = autobuild_startbuilding.329}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = no_elephant_camp_3 
											NOT = { has_building = no_elephant_camp_4 has_building = no_ab_ph_no_elephant_camp_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_4 
											location = { province_event = { id = autobuild_startbuilding.361}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = {
										has_building = no_gathering_hall_4 
										NOT = { has_building = no_gathering_hall_5 has_building = no_ab_ph_no_gathering_hall_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_5 
										location = { province_event = { id = autobuild_startbuilding.386}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_cattle_pens_4 
										NOT = { has_building = no_cattle_pens_5 has_building = no_ab_ph_no_cattle_pens_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_5 
										location = { province_event = { id = autobuild_startbuilding.346}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_shrine_3 
										NOT = { has_building = no_shrine_4 has_building = no_ab_ph_no_shrine_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_4 
										location = { province_event = { id = autobuild_startbuilding.481}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_3 = yes}} 
								IF = {
									limit = {
										has_building = no_camp_fortifications_4 
										NOT = { has_building = no_camp_fortifications_5 has_building = no_ab_ph_no_camp_fortifications_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_5 
										location = { province_event = { id = autobuild_startbuilding.338}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_4 = yes}} 
								IF = {
									limit = {
										has_building = no_wrestling_4 
										NOT = { has_building = no_wrestling_5 has_building = no_ab_ph_no_wrestling_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_5 
										location = { province_event = { id = autobuild_startbuilding.490}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
								IF = {
									limit = {
										has_building = no_composite_bow_crafter_3 
										NOT = { has_building = no_composite_bow_crafter_4 has_building = no_ab_ph_no_composite_bow_crafter_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_4 
										location = { province_event = { id = autobuild_startbuilding.353}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_con_wall_6 = yes}
								IF = {
									limit = {
										has_building = ca_wall_5 
										NOT = { has_building = ca_con_wall_6 has_building = ca_ab_ph_ca_con_wall_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_con_wall_6 
										location = { province_event = { id = autobuild_startbuilding.7}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_government_monastery_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = ca_government_monastery_1 has_building = ca_ab_ph_ca_government_monastery_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_government_monastery_1 
											location = { province_event = { id = autobuild_startbuilding.150}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_5 = yes}} 
								IF = {
									limit = { has_building = ca_wall_3 NOT = { has_building = ca_wall_4 has_building = ca_ab_ph_ca_wall_4}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_4 
										location = { province_event = { id = autobuild_startbuilding.206}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = ca_keep_1 has_building = ca_ab_ph_ca_keep_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_keep_1 
										location = { province_event = { id = autobuild_startbuilding.154}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_6 = yes}} 
								IF = {
									limit = { has_building = ca_wall_4 NOT = { has_building = ca_wall_5 has_building = ca_ab_ph_ca_wall_5}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_wall_5 
										location = { province_event = { id = autobuild_startbuilding.207}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0160 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_7 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = no_ox_wagon_6 
											NOT = { has_building = no_ox_wagon_7 has_building = no_ab_ph_no_ox_wagon_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_7 
											location = { province_event = { id = autobuild_startbuilding.460}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_5 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_ox_wagon_4 
											NOT = { has_building = no_ox_wagon_5 has_building = no_ab_ph_no_ox_wagon_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_5 
											location = { province_event = { id = autobuild_startbuilding.458}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_6 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_ox_wagon_5 
											NOT = { has_building = no_ox_wagon_6 has_building = no_ab_ph_no_ox_wagon_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_6 
											location = { province_event = { id = autobuild_startbuilding.459}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = no_ox_wagon_7 
											NOT = { has_building = no_ox_wagon_8 has_building = no_ab_ph_no_ox_wagon_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_8 
											location = { province_event = { id = autobuild_startbuilding.461}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_airag_producer_5 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_airag_producer_4 
											NOT = { has_building = no_airag_producer_5 has_building = no_ab_ph_no_airag_producer_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_5 
											location = { province_event = { id = autobuild_startbuilding.314}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_meat_preserver_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = no_ox_wagon_3 
											NOT = { has_building = no_ox_wagon_4 has_building = no_ab_ph_no_ox_wagon_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ox_wagon_4 
											location = { province_event = { id = autobuild_startbuilding.457}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_baghatur_council_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_3 = yes}} 
									IF = {
										limit = {
											has_building = no_baghatur_council_2 
											NOT = { has_building = no_baghatur_council_3 has_building = no_ab_ph_no_baghatur_council_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_3 
											location = { province_event = { id = autobuild_startbuilding.320}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_4 = yes}} 
								IF = {
									limit = {
										has_building = no_horse_breeder_6 
										NOT = { has_building = no_horse_breeder_7 has_building = no_ab_ph_no_horse_breeder_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_7 
										location = { province_event = { id = autobuild_startbuilding.412}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_hunting_parties_6 
										NOT = { has_building = no_hunting_parties_7 has_building = no_ab_ph_no_hunting_parties_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_7 
										location = { province_event = { id = autobuild_startbuilding.420}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_hunting_parties_7 
										NOT = { has_building = no_hunting_parties_8 has_building = no_ab_ph_no_hunting_parties_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_8 
										location = { province_event = { id = autobuild_startbuilding.421}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_horse_breeder_7 
										NOT = { has_building = no_horse_breeder_8 has_building = no_ab_ph_no_horse_breeder_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_8 
										location = { province_event = { id = autobuild_startbuilding.413}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_3 = yes}} 
								IF = {
									limit = {
										has_building = no_hunting_parties_3 
										NOT = { has_building = no_hunting_parties_4 has_building = no_ab_ph_no_hunting_parties_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_4 
										location = { province_event = { id = autobuild_startbuilding.417}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_horse_breeder_3 
										NOT = { has_building = no_horse_breeder_4 has_building = no_ab_ph_no_horse_breeder_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_4 
										location = { province_event = { id = autobuild_startbuilding.409}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tr_sahara_2 = yes}} 
								IF = {
									limit = { has_building = no_yam_4 NOT = { has_building = no_yam_5 has_building = no_ab_ph_no_yam_5}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_5 
										location = { province_event = { id = autobuild_startbuilding.498}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
								IF = {
									limit = {
										has_building = no_hunting_parties_4 
										NOT = { has_building = no_hunting_parties_5 has_building = no_ab_ph_no_hunting_parties_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_5 
										location = { province_event = { id = autobuild_startbuilding.418}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_horse_breeder_5 
										NOT = { has_building = no_horse_breeder_6 has_building = no_ab_ph_no_horse_breeder_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_6 
										location = { province_event = { id = autobuild_startbuilding.411}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_hunting_parties_5 
										NOT = { has_building = no_hunting_parties_6 has_building = no_ab_ph_no_hunting_parties_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_hunting_parties_6 
										location = { province_event = { id = autobuild_startbuilding.419}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_horse_breeder_4 
										NOT = { has_building = no_horse_breeder_5 has_building = no_ab_ph_no_horse_breeder_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_horse_breeder_5 
										location = { province_event = { id = autobuild_startbuilding.410}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0170 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
								IF = {
									limit = {
										has_building = no_lamellar_armor_crafter_3 
										NOT = { has_building = no_lamellar_armor_crafter_4 has_building = no_ab_ph_no_lamellar_armor_crafter_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_4 
										location = { province_event = { id = autobuild_startbuilding.425}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0175 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = {
										has_building = no_cattle_pens_5 
										NOT = { has_building = no_cattle_pens_6 has_building = no_ab_ph_no_cattle_pens_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_6 
										location = { province_event = { id = autobuild_startbuilding.347}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0180 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_6 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_meat_preserver_5 
											NOT = { has_building = no_meat_preserver_6 has_building = no_ab_ph_no_meat_preserver_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_6 
											location = { province_event = { id = autobuild_startbuilding.435}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_felt_crafter_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = no_felt_crafter_5 
											NOT = { has_building = no_felt_crafter_6 has_building = no_ab_ph_no_felt_crafter_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_6 
											location = { province_event = { id = autobuild_startbuilding.371}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_4 = yes}} 
									IF = {
										limit = {
											has_building = no_harbor_4 
											NOT = { has_building = no_harbor_5 has_building = no_ab_ph_no_harbor_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_5 
											location = { province_event = { id = autobuild_startbuilding.402}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_fishing_village_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = no_fishing_village_7 
											NOT = { has_building = no_fishing_village_8 has_building = no_ab_ph_no_fishing_village_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_fishing_village_8 
											location = { province_event = { id = autobuild_startbuilding.381}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_market_town_4 = yes}} 
								IF = {
									limit = {
										has_building = no_sheep_3 
										NOT = { has_building = no_sheep_4 has_building = no_ab_ph_no_sheep_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_4 
										location = { province_event = { id = autobuild_startbuilding.473}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
								IF = {
									limit = {
										has_building = no_composite_bow_crafter_4 
										NOT = { has_building = no_composite_bow_crafter_5 has_building = no_ab_ph_no_composite_bow_crafter_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_5 
										location = { province_event = { id = autobuild_startbuilding.354}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_wrestling_5 
										NOT = { has_building = no_wrestling_6 has_building = no_ab_ph_no_wrestling_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_6 
										location = { province_event = { id = autobuild_startbuilding.491}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0190 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = no_airag_producer_5 
											NOT = { has_building = no_airag_producer_6 has_building = no_ab_ph_no_airag_producer_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_6 
											location = { province_event = { id = autobuild_startbuilding.315}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_4 = yes}} 
									IF = {
										limit = {
											has_building = no_camel_breeder_4 
											NOT = { has_building = no_camel_breeder_5 has_building = no_ab_ph_no_camel_breeder_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_5 
											location = { province_event = { id = autobuild_startbuilding.330}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_4 = yes}} 
									IF = {
										limit = {
											has_building = no_elephant_camp_4 
											NOT = { has_building = no_elephant_camp_5 has_building = no_ab_ph_no_elephant_camp_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_5 
											location = { province_event = { id = autobuild_startbuilding.362}} 
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0200 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_preq_ct_port_3 = yes}
								IF = {
									limit = { ab_pot_ca_shipyard_4 = yes}
									IF = {
										limit = { location = { ab_tech_ct_port_3 = yes}} 
										IF = {
											limit = { has_building = ct_port_2 NOT = { has_building = ct_port_3 has_building = ct_ab_ph_ct_port_3}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ct_ab_ph_workers_camp 
												add_building = ct_ab_ph_ct_port_3 
												location = { province_event = { id = autobuild_startbuilding.236}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = {
											has_building = ct_barracks_2 
											NOT = { has_building = ct_barracks_3 has_building = ct_ab_ph_ct_barracks_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_barracks_3 
											location = { province_event = { id = autobuild_startbuilding.215}} 
											break = yes 
											}
										}
									IF = {
										limit = {
											has_building = ct_marketplace_2 
											NOT = { has_building = ct_marketplace_3 has_building = ct_ab_ph_ct_marketplace_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_marketplace_3 
											location = { province_event = { id = autobuild_startbuilding.226}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = ct_guard_2 
											NOT = { has_building = ct_guard_3 has_building = ct_ab_ph_ct_guard_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_guard_3 
											location = { province_event = { id = autobuild_startbuilding.221}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_ct_port_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_2 = yes}} 
									IF = {
										limit = {
											has_building = ct_training_grounds_1 
											NOT = { has_building = ct_training_grounds_2 has_building = ct_ab_ph_ct_training_grounds_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_training_grounds_2 
											location = { province_event = { id = autobuild_startbuilding.247}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ct_rep_arsenal_3 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = ct_rep_arsenal_1 has_building = ct_ab_ph_ct_rep_arsenal_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_rep_arsenal_1 
											location = { province_event = { id = autobuild_startbuilding.239}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_preq_tp_school_2 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_4 = yes}} 
									IF = {
										limit = { has_building = tp_town_2 NOT = { has_building = tp_town_3 has_building = tp_ab_ph_tp_town_3}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_town_3 
											location = { province_event = { id = autobuild_startbuilding.546}} 
											break = yes 
											}
										}
									IF = {
										limit = {
											has_building = tp_barracks_2 
											NOT = { has_building = tp_barracks_3 has_building = tp_ab_ph_tp_barracks_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_barracks_3 
											location = { province_event = { id = autobuild_startbuilding.504}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = tp_elite_barracks_2 
											NOT = { has_building = tp_elite_barracks_3 has_building = tp_ab_ph_tp_elite_barracks_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_elite_barracks_3 
											location = { province_event = { id = autobuild_startbuilding.510}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_tp_school_1 = yes}
								IF = {
									limit = { location = { ab_tech_tb_market_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tp_monastery_1 
											NOT = { has_building = tp_monastery_2 has_building = tp_ab_ph_tp_monastery_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_monastery_2 
											location = { province_event = { id = autobuild_startbuilding.516}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_5 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = no_riding_contests_4 
											NOT = { has_building = no_riding_contests_5 has_building = no_ab_ph_no_riding_contests_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_5 
											location = { province_event = { id = autobuild_startbuilding.466}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_ger_crafter_7 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
									IF = {
										limit = {
											has_building = no_ger_crafter_6 
											NOT = { has_building = no_ger_crafter_7 has_building = no_ab_ph_no_ger_crafter_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_7 
											location = { province_event = { id = autobuild_startbuilding.396}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_tr_sahara_2 = yes}} 
									IF = {
										limit = {
											has_building = no_minter_3 
											NOT = { has_building = no_minter_4 has_building = no_ab_ph_no_minter_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_4 
											location = { province_event = { id = autobuild_startbuilding.449}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_baghatur_council_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = no_baghatur_council_3 
											NOT = { has_building = no_baghatur_council_4 has_building = no_ab_ph_no_baghatur_council_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_4 
											location = { province_event = { id = autobuild_startbuilding.321}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_2 = yes}} 
								IF = {
									limit = {
										has_building = no_camp_fortifications_5 
										NOT = { has_building = no_camp_fortifications_6 has_building = no_ab_ph_no_camp_fortifications_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_6 
										location = { province_event = { id = autobuild_startbuilding.339}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = {
										has_building = no_gathering_hall_5 
										NOT = { has_building = no_gathering_hall_6 has_building = no_ab_ph_no_gathering_hall_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_6 
										location = { province_event = { id = autobuild_startbuilding.387}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = no_shrine_4 
										NOT = { has_building = no_shrine_5 has_building = no_ab_ph_no_shrine_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_5 
										location = { province_event = { id = autobuild_startbuilding.482}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = no_cattle_pens_6 
										NOT = { has_building = no_cattle_pens_7 has_building = no_ab_ph_no_cattle_pens_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_7 
										location = { province_event = { id = autobuild_startbuilding.348}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_4 = yes}} 
								IF = {
									limit = {
										has_building = no_lamellar_armor_crafter_4 
										NOT = { has_building = no_lamellar_armor_crafter_5 has_building = no_ab_ph_no_lamellar_armor_crafter_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_5 
										location = { province_event = { id = autobuild_startbuilding.426}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tr_sahara_2 = yes}} 
								IF = {
									limit = { has_building = no_yam_5 NOT = { has_building = no_yam_6 has_building = no_ab_ph_no_yam_6}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_6 
										location = { province_event = { id = autobuild_startbuilding.499}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_preq_ca_town_3 = yes}
								IF = {
									limit = { ab_pot_ca_culture_west_african_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_west_african_1 has_building = ca_ab_ph_ca_culture_west_african_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_west_african_1 
												location = { province_event = { id = autobuild_startbuilding.140}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_desert_stable_6 = yes}
									IF = {
										limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
										IF = {
											limit = {
												has_building = ca_desert_stable_2 
												NOT = { has_building = ca_desert_stable_3 has_building = ca_ab_ph_ca_desert_stable_3}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_desert_stable_3 
												location = { province_event = { id = autobuild_startbuilding.146}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_indian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_indian_1 has_building = ca_ab_ph_ca_culture_indian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_indian_1 
												location = { province_event = { id = autobuild_startbuilding.76}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_group_altaic_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_group_altaic_1 has_building = ca_ab_ph_ca_culture_group_altaic_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_group_altaic_1 
												location = { province_event = { id = autobuild_startbuilding.44}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_steppe_stable_6 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												has_building = ca_steppe_barracks_2 
												NOT = { has_building = ca_steppe_barracks_3 has_building = ca_ab_ph_ca_steppe_barracks_3}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_steppe_barracks_3 
												location = { province_event = { id = autobuild_startbuilding.184}} 
												break = yes 
												}
											}
										}
									IF = {
										limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
										IF = {
											limit = {
												has_building = ca_steppe_stable_2 
												NOT = { has_building = ca_steppe_stable_3 has_building = ca_ab_ph_ca_steppe_stable_3}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_steppe_stable_3 
												location = { province_event = { id = autobuild_startbuilding.190}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_jewish_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_jewish_1 has_building = ca_ab_ph_ca_culture_jewish_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_jewish_1 
												location = { province_event = { id = autobuild_startbuilding.88}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_irish_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_irish_1 has_building = ca_ab_ph_ca_culture_irish_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_irish_1 
												location = { province_event = { id = autobuild_startbuilding.80}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_nubian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_nubian_1 has_building = ca_ab_ph_ca_culture_nubian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_nubian_1 
												location = { province_event = { id = autobuild_startbuilding.100}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_group_arabic_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_group_arabic_1 has_building = ca_ab_ph_ca_culture_group_arabic_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_group_arabic_1 
												location = { province_event = { id = autobuild_startbuilding.48}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_nahuatl_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_nahuatl_1 has_building = ca_ab_ph_ca_culture_nahuatl_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_nahuatl_1 
												location = { province_event = { id = autobuild_startbuilding.96}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_group_baltic_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_group_baltic_1 has_building = ca_ab_ph_ca_culture_group_baltic_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_group_baltic_1 
												location = { province_event = { id = autobuild_startbuilding.52}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_pictish_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_pictish_1 has_building = ca_ab_ph_ca_culture_pictish_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_pictish_1 
												location = { province_event = { id = autobuild_startbuilding.104}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_germanic_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_germanic_1 has_building = ca_ab_ph_ca_culture_germanic_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_germanic_1 
												location = { province_event = { id = autobuild_startbuilding.40}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_frank_norman_german_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = {
													has_building = ca_culture_frank_norman_german_1 
													has_building = ca_ab_ph_ca_culture_frank_norman_german_1 
													}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_frank_norman_german_1 
												location = { province_event = { id = autobuild_startbuilding.36}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_dutch_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_dutch_1 has_building = ca_ab_ph_ca_culture_dutch_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_dutch_1 
												location = { province_event = { id = autobuild_startbuilding.28}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_scottish_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_scottish_1 has_building = ca_ab_ph_ca_culture_scottish_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_scottish_1 
												location = { province_event = { id = autobuild_startbuilding.124}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_suebi_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_suebi_1 has_building = ca_ab_ph_ca_culture_suebi_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_suebi_1 
												location = { province_event = { id = autobuild_startbuilding.132}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_group_byzantine_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_group_byzantine_1 has_building = ca_ab_ph_ca_culture_group_byzantine_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_group_byzantine_1 
												location = { province_event = { id = autobuild_startbuilding.56}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_group_south_slavic_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = {
													has_building = ca_culture_group_south_slavic_1 
													has_building = ca_ab_ph_ca_culture_group_south_slavic_1 
													}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_group_south_slavic_1 
												location = { province_event = { id = autobuild_startbuilding.68}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_chinese_han_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_chinese_han_1 has_building = ca_ab_ph_ca_culture_chinese_han_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_chinese_han_1 
												location = { province_event = { id = autobuild_startbuilding.20}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_roman_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_roman_1 has_building = ca_ab_ph_ca_culture_roman_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_roman_1 
												location = { province_event = { id = autobuild_startbuilding.108}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_arberian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_arberian_1 has_building = ca_ab_ph_ca_culture_arberian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_arberian_1 
												location = { province_event = { id = autobuild_startbuilding.16}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_russian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_russian_1 has_building = ca_ab_ph_ca_culture_russian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_russian_1 
												location = { province_event = { id = autobuild_startbuilding.112}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_somali_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_somali_1 has_building = ca_ab_ph_ca_culture_somali_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_somali_1 
												location = { province_event = { id = autobuild_startbuilding.128}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_group_iberian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_group_iberian_1 has_building = ca_ab_ph_ca_culture_group_iberian_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_group_iberian_1 
												location = { province_event = { id = autobuild_startbuilding.60}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_hungarian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_hungarian_1 has_building = ca_ab_ph_ca_culture_hungarian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_hungarian_1 
												location = { province_event = { id = autobuild_startbuilding.72}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_animal_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_animal_1 has_building = ca_ab_ph_ca_culture_animal_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_animal_1 
												location = { province_event = { id = autobuild_startbuilding.12}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_group_north_germanic_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = {
													has_building = ca_culture_group_north_germanic_1 
													has_building = ca_ab_ph_ca_culture_group_north_germanic_1 
													}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_group_north_germanic_1 
												location = { province_event = { id = autobuild_startbuilding.64}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_sardinian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_sardinian_1 has_building = ca_ab_ph_ca_culture_sardinian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_sardinian_1 
												location = { province_event = { id = autobuild_startbuilding.116}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_italian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_italian_1 has_building = ca_ab_ph_ca_culture_italian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_italian_1 
												location = { province_event = { id = autobuild_startbuilding.84}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_ethiopian_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_ethiopian_1 has_building = ca_ab_ph_ca_culture_ethiopian_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_ethiopian_1 
												location = { province_event = { id = autobuild_startbuilding.32}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_saxon_english_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_saxon_english_1 has_building = ca_ab_ph_ca_culture_saxon_english_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_saxon_english_1 
												location = { province_event = { id = autobuild_startbuilding.120}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_altaic_jurchen_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = {
												NOT = { has_building = ca_culture_altaic_jurchen_1 has_building = ca_ab_ph_ca_culture_altaic_jurchen_1}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_altaic_jurchen_1 
												location = { province_event = { id = autobuild_startbuilding.8}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_coptic_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_coptic_1 has_building = ca_ab_ph_ca_culture_coptic_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_coptic_1 
												location = { province_event = { id = autobuild_startbuilding.24}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { ab_pot_ca_culture_moors_1 = yes}
									IF = {
										limit = { location = { ab_tech_ca_town_2 = yes}} 
										IF = {
											limit = { NOT = { has_building = ca_culture_moors_1 has_building = ca_ab_ph_ca_culture_moors_1}} 
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_culture_moors_1 
												location = { province_event = { id = autobuild_startbuilding.92}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = ca_training_grounds_1 has_building = ca_ab_ph_ca_training_grounds_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_training_grounds_1 
											location = { province_event = { id = autobuild_startbuilding.200}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_barracks_2 
											NOT = {has_building = ca_steppe_barracks_3
												}
											NOT = {AND = {
													location = {
														terrain = steppe 
														event_target:abet_owner = {
															OR = {
																culture_group = altaic 
																culture_group = magyar 
																culture = alan 
																culture_group = iranian 
																}
															}
														}
													ab_preq_ca_town_3 = yes 
													}
												}
											NOT = { has_building = ca_barracks_3 has_building = ca_ab_ph_ca_barracks_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_barracks_3 
											location = { province_event = { id = autobuild_startbuilding.3}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_stable_2 
											NOT = {has_building = ca_steppe_stable_3
												has_building = ca_desert_stable_3
												}
											NOT = {AND = {
													location = {
														terrain = steppe 
														event_target:abet_owner = {
															OR = {
																culture_group = altaic 
																culture_group = magyar 
																culture = alan 
																culture_group = iranian 
																}
															}
														}
													ab_preq_ca_town_3 = yes 
													}
												AND = {
													location = {
														terrain = desert 
														event_target:abet_owner = {
															OR = {
																culture_group = east_african 
																culture_group = west_african 
																culture_group = arabic 
																}
															}
														}
													ab_preq_ca_town_3 = yes 
													}
												}
											NOT = { has_building = ca_stable_3 has_building = ca_ab_ph_ca_stable_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_stable_3 
											location = { province_event = { id = autobuild_startbuilding.178}} 
											break = yes 
											}
										}
									IF = {
										limit = { has_building = ca_town_2 NOT = { has_building = ca_town_3 has_building = ca_ab_ph_ca_town_3}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_town_3 
											location = { province_event = { id = autobuild_startbuilding.196}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_ca_town_2 = yes}
								IF = {
									limit = { ab_pot_ca_government_monastery_2 = yes}
									IF = {
										limit = { location = { ab_tech_tb_market_town_4 = yes}} 
										IF = {
											limit = {
												has_building = ca_government_monastery_1 
												NOT = { has_building = ca_government_monastery_2 has_building = ca_ab_ph_ca_government_monastery_2}
												}
											IF = {
												limit = { autobuild_not_selected_building = yes}
												autobuild_select_building = yes 
												add_building = ca_ab_ph_workers_camp 
												add_building = ca_ab_ph_ca_government_monastery_2 
												location = { province_event = { id = autobuild_startbuilding.151}} 
												break = yes 
												}
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_keep_2 = yes}} 
									IF = {
										limit = { has_building = ca_keep_1 NOT = { has_building = ca_keep_2 has_building = ca_ab_ph_ca_keep_2}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_keep_2 
											location = { province_event = { id = autobuild_startbuilding.155}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_tibetan_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = ca_culture_tibetan_1 has_building = ca_ab_ph_ca_culture_tibetan_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_tibetan_1 
											location = { province_event = { id = autobuild_startbuilding.136}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_5 = yes}} 
								IF = {
									limit = {
										has_building = ca_militia_barracks_2 
										NOT = { has_building = ca_militia_barracks_3 has_building = ca_ab_ph_ca_militia_barracks_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_militia_barracks_3 
										location = { province_event = { id = autobuild_startbuilding.162}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0210 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_felt_crafter_7 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
									IF = {
										limit = {
											has_building = no_felt_crafter_6 
											NOT = { has_building = no_felt_crafter_7 has_building = no_ab_ph_no_felt_crafter_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_7 
											location = { province_event = { id = autobuild_startbuilding.372}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_5 = yes}} 
								IF = {
									limit = {
										has_building = no_wrestling_6 
										NOT = { has_building = no_wrestling_7 has_building = no_ab_ph_no_wrestling_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_7 
										location = { province_event = { id = autobuild_startbuilding.492}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0220 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_7 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
									IF = {
										limit = {
											has_building = no_airag_producer_6 
											NOT = { has_building = no_airag_producer_7 has_building = no_ab_ph_no_airag_producer_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_7 
											location = { province_event = { id = autobuild_startbuilding.316}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_no_harbor_6 = yes}} 
									IF = {
										limit = {
											has_building = no_harbor_5 
											NOT = { has_building = no_harbor_6 has_building = no_ab_ph_no_harbor_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_6 
											location = { province_event = { id = autobuild_startbuilding.403}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_5 = yes}} 
								IF = {
									limit = {
										has_building = no_composite_bow_crafter_5 
										NOT = { has_building = no_composite_bow_crafter_6 has_building = no_ab_ph_no_composite_bow_crafter_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_6 
										location = { province_event = { id = autobuild_startbuilding.355}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0230 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_7 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = no_meat_preserver_6 
											NOT = { has_building = no_meat_preserver_7 has_building = no_ab_ph_no_meat_preserver_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_7 
											location = { province_event = { id = autobuild_startbuilding.436}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = no_camel_breeder_5 
											NOT = { has_building = no_camel_breeder_6 has_building = no_ab_ph_no_camel_breeder_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_6 
											location = { province_event = { id = autobuild_startbuilding.331}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = no_elephant_camp_5 
											NOT = { has_building = no_elephant_camp_6 has_building = no_ab_ph_no_elephant_camp_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_6 
											location = { province_event = { id = autobuild_startbuilding.363}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = no_cattle_pens_7 
										NOT = { has_building = no_cattle_pens_8 has_building = no_ab_ph_no_cattle_pens_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_cattle_pens_8 
										location = { province_event = { id = autobuild_startbuilding.349}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0240 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = {
										has_building = no_sheep_4 
										NOT = { has_building = no_sheep_5 has_building = no_ab_ph_no_sheep_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_5 
										location = { province_event = { id = autobuild_startbuilding.474}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_port_3 = yes}} 
								IF = {
									limit = { has_building = no_yam_6 NOT = { has_building = no_yam_7 has_building = no_ab_ph_no_yam_7}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_7 
										location = { province_event = { id = autobuild_startbuilding.500}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0250 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ct_planned_infrastructure_4 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = ct_planned_infrastructure_1 
											NOT = { has_building = ct_planned_infrastructure_2 has_building = ct_ab_ph_ct_planned_infrastructure_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_planned_infrastructure_2 
											location = { province_event = { id = autobuild_startbuilding.231}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_pot_tp_monumental_shrines_4 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_4 = yes}} 
									IF = {
										limit = {
											has_building = tp_monumental_shrines_3 
											NOT = { has_building = tp_monumental_shrines_4 has_building = tp_ab_ph_tp_monumental_shrines_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_monumental_shrines_4 
											location = { province_event = { id = autobuild_startbuilding.524}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
									IF = {
										limit = {
											has_building = tp_monumental_shrines_1 
											NOT = { has_building = tp_monumental_shrines_2 has_building = tp_ab_ph_tp_monumental_shrines_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_monumental_shrines_2 
											location = { province_event = { id = autobuild_startbuilding.522}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
									IF = {
										limit = {
											has_building = tp_monumental_shrines_2 
											NOT = { has_building = tp_monumental_shrines_3 has_building = tp_ab_ph_tp_monumental_shrines_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tp_ab_ph_workers_camp 
											add_building = tp_ab_ph_tp_monumental_shrines_3 
											location = { province_event = { id = autobuild_startbuilding.523}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_ger_crafter_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_guard_4 = yes}} 
									IF = {
										limit = {
											has_building = no_ger_crafter_7 
											NOT = { has_building = no_ger_crafter_8 has_building = no_ab_ph_no_ger_crafter_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_ger_crafter_8 
											location = { province_event = { id = autobuild_startbuilding.397}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_airag_producer_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_4 = yes}} 
									IF = {
										limit = {
											has_building = no_riding_contests_5 
											NOT = { has_building = no_riding_contests_6 has_building = no_ab_ph_no_riding_contests_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_6 
											location = { province_event = { id = autobuild_startbuilding.467}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_felt_crafter_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_guard_4 = yes}} 
									IF = {
										limit = {
											has_building = no_felt_crafter_7 
											NOT = { has_building = no_felt_crafter_8 has_building = no_ab_ph_no_felt_crafter_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_felt_crafter_8 
											location = { province_event = { id = autobuild_startbuilding.373}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_airag_producer_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_guard_4 = yes}} 
									IF = {
										limit = {
											has_building = no_airag_producer_7 
											NOT = { has_building = no_airag_producer_8 has_building = no_ab_ph_no_airag_producer_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_airag_producer_8 
											location = { province_event = { id = autobuild_startbuilding.317}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_port_3 = yes}} 
									IF = {
										limit = {
											has_building = no_minter_4 
											NOT = { has_building = no_minter_5 has_building = no_ab_ph_no_minter_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_5 
											location = { province_event = { id = autobuild_startbuilding.450}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_baghatur_council_5 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = no_baghatur_council_4 
											NOT = { has_building = no_baghatur_council_5 has_building = no_ab_ph_no_baghatur_council_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_5 
											location = { province_event = { id = autobuild_startbuilding.322}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = no_wrestling_7 
										NOT = { has_building = no_wrestling_8 has_building = no_ab_ph_no_wrestling_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_wrestling_8 
										location = { province_event = { id = autobuild_startbuilding.493}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
								IF = {
									limit = {
										has_building = no_shrine_5 
										NOT = { has_building = no_shrine_6 has_building = no_ab_ph_no_shrine_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_6 
										location = { province_event = { id = autobuild_startbuilding.483}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = no_gathering_hall_6 
										NOT = { has_building = no_gathering_hall_7 has_building = no_ab_ph_no_gathering_hall_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_7 
										location = { province_event = { id = autobuild_startbuilding.388}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
								IF = {
									limit = {
										has_building = no_lamellar_armor_crafter_5 
										NOT = { has_building = no_lamellar_armor_crafter_6 has_building = no_ab_ph_no_lamellar_armor_crafter_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_6 
										location = { province_event = { id = autobuild_startbuilding.427}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_special_fortifications_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_special_fortifications_1 
											NOT = { has_building = ca_special_fortifications_2 has_building = ca_ab_ph_ca_special_fortifications_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_special_fortifications_2 
											location = { province_event = { id = autobuild_startbuilding.173}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_oppressive_fortifications_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_oppressive_fortifications_1 
											NOT = {
												has_building = ca_oppressive_fortifications_2 
												has_building = ca_ab_ph_ca_oppressive_fortifications_2 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_oppressive_fortifications_2 
											location = { province_event = { id = autobuild_startbuilding.165}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_4 = yes}} 
								IF = {
									limit = {
										has_building = ca_training_grounds_1 
										NOT = { has_building = ca_training_grounds_2 has_building = ca_ab_ph_ca_training_grounds_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_training_grounds_2 
										location = { province_event = { id = autobuild_startbuilding.201}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0260 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_no_harbor_7 = yes}} 
									IF = {
										limit = {
											has_building = no_harbor_6 
											NOT = { has_building = no_harbor_7 has_building = no_ab_ph_no_harbor_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_7 
											location = { province_event = { id = autobuild_startbuilding.404}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = no_composite_bow_crafter_6 
										NOT = { has_building = no_composite_bow_crafter_7 has_building = no_ab_ph_no_composite_bow_crafter_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_7 
										location = { province_event = { id = autobuild_startbuilding.356}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0280 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_5 = yes}} 
									IF = {
										limit = {
											has_building = no_camel_breeder_6 
											NOT = { has_building = no_camel_breeder_7 has_building = no_ab_ph_no_camel_breeder_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_7 
											location = { province_event = { id = autobuild_startbuilding.332}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_5 = yes}} 
									IF = {
										limit = {
											has_building = no_elephant_camp_6 
											NOT = { has_building = no_elephant_camp_7 has_building = no_ab_ph_no_elephant_camp_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_7 
											location = { province_event = { id = autobuild_startbuilding.364}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_port_4 = yes}} 
								IF = {
									limit = { has_building = no_yam_7 NOT = { has_building = no_yam_8 has_building = no_ab_ph_no_yam_8}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_yam_8 
										location = { province_event = { id = autobuild_startbuilding.501}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0300 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ct_port_4 = yes}} 
									IF = {
										limit = { has_building = ct_port_3 NOT = { has_building = ct_port_4 has_building = ct_ab_ph_ct_port_4}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_port_4 
											location = { province_event = { id = autobuild_startbuilding.237}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_3 = yes}} 
								IF = {
									limit = {
										has_building = ct_training_grounds_2 
										NOT = { has_building = ct_training_grounds_3 has_building = ct_ab_ph_ct_training_grounds_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_training_grounds_3 
										location = { province_event = { id = autobuild_startbuilding.248}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = ct_marketplace_3 
										NOT = { has_building = ct_marketplace_4 has_building = ct_ab_ph_ct_marketplace_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_marketplace_4 
										location = { province_event = { id = autobuild_startbuilding.227}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = ct_barracks_3 
										NOT = { has_building = ct_barracks_4 has_building = ct_ab_ph_ct_barracks_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_barracks_4 
										location = { province_event = { id = autobuild_startbuilding.216}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_guard_4 = yes}} 
								IF = {
									limit = {
										has_building = ct_guard_3 
										NOT = { has_building = ct_guard_4 has_building = ct_ab_ph_ct_guard_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_guard_4 
										location = { province_event = { id = autobuild_startbuilding.222}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = {
										has_building = tp_monastery_2 
										NOT = { has_building = tp_monastery_3 has_building = tp_ab_ph_tp_monastery_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_monastery_3 
										location = { province_event = { id = autobuild_startbuilding.517}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
								IF = {
									limit = {
										has_building = tp_elite_barracks_3 
										NOT = { has_building = tp_elite_barracks_4 has_building = tp_ab_ph_tp_elite_barracks_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_elite_barracks_4 
										location = { province_event = { id = autobuild_startbuilding.511}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = tp_barracks_3 
										NOT = { has_building = tp_barracks_4 has_building = tp_ab_ph_tp_barracks_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_barracks_4 
										location = { province_event = { id = autobuild_startbuilding.505}} 
										break = yes 
										}
									}
								IF = {
									limit = { has_building = tp_town_3 NOT = { has_building = tp_town_4 has_building = tp_ab_ph_tp_town_4}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_town_4 
										location = { province_event = { id = autobuild_startbuilding.547}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_meat_preserver_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
									IF = {
										limit = {
											has_building = no_meat_preserver_7 
											NOT = { has_building = no_meat_preserver_8 has_building = no_ab_ph_no_meat_preserver_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_meat_preserver_8 
											location = { province_event = { id = autobuild_startbuilding.437}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_preq_no_airag_producer_7 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = no_riding_contests_6 
											NOT = { has_building = no_riding_contests_7 has_building = no_ab_ph_no_riding_contests_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_7 
											location = { province_event = { id = autobuild_startbuilding.468}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_baghatur_council_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_4 = yes}} 
									IF = {
										limit = {
											has_building = no_baghatur_council_5 
											NOT = { has_building = no_baghatur_council_6 has_building = no_ab_ph_no_baghatur_council_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_6 
											location = { province_event = { id = autobuild_startbuilding.323}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_harbor_8 = yes}
								IF = {
									limit = { location = { ab_tech_no_harbor_8 = yes}} 
									IF = {
										limit = {
											has_building = no_harbor_7 
											NOT = { has_building = no_harbor_8 has_building = no_ab_ph_no_harbor_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_harbor_8 
											location = { province_event = { id = autobuild_startbuilding.405}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_6 = yes}} 
								IF = {
									limit = {
										has_building = no_composite_bow_crafter_7 
										NOT = { has_building = no_composite_bow_crafter_8 has_building = no_ab_ph_no_composite_bow_crafter_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_composite_bow_crafter_8 
										location = { province_event = { id = autobuild_startbuilding.357}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_4 = yes}} 
								IF = {
									limit = {
										has_building = no_camp_fortifications_6 
										NOT = { has_building = no_camp_fortifications_7 has_building = no_ab_ph_no_camp_fortifications_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_7 
										location = { province_event = { id = autobuild_startbuilding.340}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
								IF = {
									limit = {
										has_building = no_shrine_6 
										NOT = { has_building = no_shrine_7 has_building = no_ab_ph_no_shrine_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_7 
										location = { province_event = { id = autobuild_startbuilding.484}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_preq_ca_town_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_3 = yes}} 
									IF = {
										limit = { has_building = ca_keep_2 NOT = { has_building = ca_keep_3 has_building = ca_ab_ph_ca_keep_3}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_keep_3 
											location = { province_event = { id = autobuild_startbuilding.156}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_altaic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_altaic_1 
											NOT = { has_building = ca_culture_group_altaic_2 has_building = ca_ab_ph_ca_culture_group_altaic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_altaic_2 
											location = { province_event = { id = autobuild_startbuilding.45}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_desert_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_desert_stable_3 
											NOT = { has_building = ca_desert_stable_4 has_building = ca_ab_ph_ca_desert_stable_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_desert_stable_4 
											location = { province_event = { id = autobuild_startbuilding.147}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_steppe_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_steppe_stable_3 
											NOT = { has_building = ca_steppe_stable_4 has_building = ca_ab_ph_ca_steppe_stable_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_stable_4 
											location = { province_event = { id = autobuild_startbuilding.191}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_steppe_barracks_3 
											NOT = { has_building = ca_steppe_barracks_4 has_building = ca_ab_ph_ca_steppe_barracks_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_barracks_4 
											location = { province_event = { id = autobuild_startbuilding.185}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_nahuatl_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_nahuatl_1 
											NOT = { has_building = ca_culture_nahuatl_2 has_building = ca_ab_ph_ca_culture_nahuatl_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_nahuatl_2 
											location = { province_event = { id = autobuild_startbuilding.97}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_iberian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_iberian_1 
											NOT = { has_building = ca_culture_group_iberian_2 has_building = ca_ab_ph_ca_culture_group_iberian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_iberian_2 
											location = { province_event = { id = autobuild_startbuilding.61}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_suebi_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_suebi_1 
											NOT = { has_building = ca_culture_suebi_2 has_building = ca_ab_ph_ca_culture_suebi_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_suebi_2 
											location = { province_event = { id = autobuild_startbuilding.133}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_nubian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_nubian_1 
											NOT = { has_building = ca_culture_nubian_2 has_building = ca_ab_ph_ca_culture_nubian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_nubian_2 
											location = { province_event = { id = autobuild_startbuilding.101}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_moors_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_moors_1 
											NOT = { has_building = ca_culture_moors_2 has_building = ca_ab_ph_ca_culture_moors_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_moors_2 
											location = { province_event = { id = autobuild_startbuilding.93}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_russian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_russian_1 
											NOT = { has_building = ca_culture_russian_2 has_building = ca_ab_ph_ca_culture_russian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_russian_2 
											location = { province_event = { id = autobuild_startbuilding.113}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_saxon_english_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_saxon_english_1 
											NOT = { has_building = ca_culture_saxon_english_2 has_building = ca_ab_ph_ca_culture_saxon_english_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_saxon_english_2 
											location = { province_event = { id = autobuild_startbuilding.121}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_ethiopian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_ethiopian_1 
											NOT = { has_building = ca_culture_ethiopian_2 has_building = ca_ab_ph_ca_culture_ethiopian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_ethiopian_2 
											location = { province_event = { id = autobuild_startbuilding.33}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_sardinian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_sardinian_1 
											NOT = { has_building = ca_culture_sardinian_2 has_building = ca_ab_ph_ca_culture_sardinian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_sardinian_2 
											location = { province_event = { id = autobuild_startbuilding.117}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_oppressive_fortifications_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_oppressive_fortifications_2 
											NOT = {
												has_building = ca_oppressive_fortifications_3 
												has_building = ca_ab_ph_ca_oppressive_fortifications_3 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_oppressive_fortifications_3 
											location = { province_event = { id = autobuild_startbuilding.166}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_animal_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_animal_1 
											NOT = { has_building = ca_culture_animal_2 has_building = ca_ab_ph_ca_culture_animal_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_animal_2 
											location = { province_event = { id = autobuild_startbuilding.13}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_hungarian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_hungarian_1 
											NOT = { has_building = ca_culture_hungarian_2 has_building = ca_ab_ph_ca_culture_hungarian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_hungarian_2 
											location = { province_event = { id = autobuild_startbuilding.73}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_jewish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_jewish_1 
											NOT = { has_building = ca_culture_jewish_2 has_building = ca_ab_ph_ca_culture_jewish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_jewish_2 
											location = { province_event = { id = autobuild_startbuilding.89}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_pictish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_pictish_1 
											NOT = { has_building = ca_culture_pictish_2 has_building = ca_ab_ph_ca_culture_pictish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_pictish_2 
											location = { province_event = { id = autobuild_startbuilding.105}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_south_slavic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_south_slavic_1 
											NOT = {
												has_building = ca_culture_group_south_slavic_2 
												has_building = ca_ab_ph_ca_culture_group_south_slavic_2 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_south_slavic_2 
											location = { province_event = { id = autobuild_startbuilding.69}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_chinese_han_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_chinese_han_1 
											NOT = { has_building = ca_culture_chinese_han_2 has_building = ca_ab_ph_ca_culture_chinese_han_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_chinese_han_2 
											location = { province_event = { id = autobuild_startbuilding.21}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_scottish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_scottish_1 
											NOT = { has_building = ca_culture_scottish_2 has_building = ca_ab_ph_ca_culture_scottish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_scottish_2 
											location = { province_event = { id = autobuild_startbuilding.125}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_italian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_italian_1 
											NOT = { has_building = ca_culture_italian_2 has_building = ca_ab_ph_ca_culture_italian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_italian_2 
											location = { province_event = { id = autobuild_startbuilding.85}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_irish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_irish_1 
											NOT = { has_building = ca_culture_irish_2 has_building = ca_ab_ph_ca_culture_irish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_irish_2 
											location = { province_event = { id = autobuild_startbuilding.81}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_frank_norman_german_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_frank_norman_german_1 
											NOT = {
												has_building = ca_culture_frank_norman_german_2 
												has_building = ca_ab_ph_ca_culture_frank_norman_german_2 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_frank_norman_german_2 
											location = { province_event = { id = autobuild_startbuilding.37}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_germanic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_germanic_1 
											NOT = { has_building = ca_culture_germanic_2 has_building = ca_ab_ph_ca_culture_germanic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_germanic_2 
											location = { province_event = { id = autobuild_startbuilding.41}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_altaic_jurchen_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_altaic_jurchen_1 
											NOT = { has_building = ca_culture_altaic_jurchen_2 has_building = ca_ab_ph_ca_culture_altaic_jurchen_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_altaic_jurchen_2 
											location = { province_event = { id = autobuild_startbuilding.9}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_roman_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_roman_1 
											NOT = { has_building = ca_culture_roman_2 has_building = ca_ab_ph_ca_culture_roman_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_roman_2 
											location = { province_event = { id = autobuild_startbuilding.109}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_government_monastery_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_government_monastery_2 
											NOT = { has_building = ca_government_monastery_3 has_building = ca_ab_ph_ca_government_monastery_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_government_monastery_3 
											location = { province_event = { id = autobuild_startbuilding.152}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_dutch_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_dutch_1 
											NOT = { has_building = ca_culture_dutch_2 has_building = ca_ab_ph_ca_culture_dutch_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_dutch_2 
											location = { province_event = { id = autobuild_startbuilding.29}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_west_african_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_west_african_1 
											NOT = { has_building = ca_culture_west_african_2 has_building = ca_ab_ph_ca_culture_west_african_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_west_african_2 
											location = { province_event = { id = autobuild_startbuilding.141}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_somali_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_somali_1 
											NOT = { has_building = ca_culture_somali_2 has_building = ca_ab_ph_ca_culture_somali_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_somali_2 
											location = { province_event = { id = autobuild_startbuilding.129}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_arberian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_arberian_1 
											NOT = { has_building = ca_culture_arberian_2 has_building = ca_ab_ph_ca_culture_arberian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_arberian_2 
											location = { province_event = { id = autobuild_startbuilding.17}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_arabic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_arabic_1 
											NOT = { has_building = ca_culture_group_arabic_2 has_building = ca_ab_ph_ca_culture_group_arabic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_arabic_2 
											location = { province_event = { id = autobuild_startbuilding.49}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_north_germanic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_north_germanic_1 
											NOT = {
												has_building = ca_culture_group_north_germanic_2 
												has_building = ca_ab_ph_ca_culture_group_north_germanic_2 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_north_germanic_2 
											location = { province_event = { id = autobuild_startbuilding.65}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_indian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_indian_1 
											NOT = { has_building = ca_culture_indian_2 has_building = ca_ab_ph_ca_culture_indian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_indian_2 
											location = { province_event = { id = autobuild_startbuilding.77}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_baltic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_baltic_1 
											NOT = { has_building = ca_culture_group_baltic_2 has_building = ca_ab_ph_ca_culture_group_baltic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_baltic_2 
											location = { province_event = { id = autobuild_startbuilding.53}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_coptic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_coptic_1 
											NOT = { has_building = ca_culture_coptic_2 has_building = ca_ab_ph_ca_culture_coptic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_coptic_2 
											location = { province_event = { id = autobuild_startbuilding.25}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_tibetan_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_tibetan_1 
											NOT = { has_building = ca_culture_tibetan_2 has_building = ca_ab_ph_ca_culture_tibetan_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_tibetan_2 
											location = { province_event = { id = autobuild_startbuilding.137}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_byzantine_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_byzantine_1 
											NOT = { has_building = ca_culture_group_byzantine_2 has_building = ca_ab_ph_ca_culture_group_byzantine_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_byzantine_2 
											location = { province_event = { id = autobuild_startbuilding.57}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_6 = yes}} 
								IF = {
									limit = {
										has_building = ca_militia_barracks_3 
										NOT = { has_building = ca_militia_barracks_4 has_building = ca_ab_ph_ca_militia_barracks_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_militia_barracks_4 
										location = { province_event = { id = autobuild_startbuilding.163}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = ca_training_grounds_2 
										NOT = { has_building = ca_training_grounds_3 has_building = ca_ab_ph_ca_training_grounds_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_training_grounds_3 
										location = { province_event = { id = autobuild_startbuilding.202}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_4 = yes}} 
								IF = {
									limit = {
										has_building = ca_barracks_3 
										NOT = {has_building = ca_steppe_barracks_4
											}
										NOT = {location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = ca_barracks_4 has_building = ca_ab_ph_ca_barracks_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_barracks_4 
										location = { province_event = { id = autobuild_startbuilding.4}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
								IF = {
									limit = { has_building = ca_town_3 NOT = { has_building = ca_town_4 has_building = ca_ab_ph_ca_town_4}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_town_4 
										location = { province_event = { id = autobuild_startbuilding.197}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = ca_stable_3 
										NOT = {has_building = ca_desert_stable_4
											has_building = ca_steppe_stable_4
											}
										NOT = {location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														}
													}
												}
											location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = ca_stable_4 has_building = ca_ab_ph_ca_stable_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_stable_4 
										location = { province_event = { id = autobuild_startbuilding.179}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0320 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { location = { ab_tech_ca_barracks_5 = yes}} 
								IF = {
									limit = {
										has_building = no_lamellar_armor_crafter_6 
										NOT = { has_building = no_lamellar_armor_crafter_7 has_building = no_ab_ph_no_lamellar_armor_crafter_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_7 
										location = { province_event = { id = autobuild_startbuilding.428}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = {
										has_building = no_sheep_5 
										NOT = { has_building = no_sheep_6 has_building = no_ab_ph_no_sheep_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_6 
										location = { province_event = { id = autobuild_startbuilding.475}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0350 = yes}} 
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_pot_tp_great_pillar_norse = yes}
								IF = {
									limit = { NOT = { has_building = tp_great_pillar_norse has_building = tp_ab_ph_tp_great_pillar_norse}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_great_pillar_norse 
										location = { province_event = { id = autobuild_startbuilding.514}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_preq_no_airag_producer_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_5 = yes}} 
									IF = {
										limit = {
											has_building = no_riding_contests_7 
											NOT = { has_building = no_riding_contests_8 has_building = no_ab_ph_no_riding_contests_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_riding_contests_8 
											location = { province_event = { id = autobuild_startbuilding.469}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_port_4 = yes}} 
									IF = {
										limit = {
											has_building = no_minter_5 
											NOT = { has_building = no_minter_6 has_building = no_ab_ph_no_minter_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_6 
											location = { province_event = { id = autobuild_startbuilding.451}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_baghatur_council_7 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_3 = yes}} 
									IF = {
										limit = {
											has_building = no_baghatur_council_6 
											NOT = { has_building = no_baghatur_council_7 has_building = no_ab_ph_no_baghatur_council_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_7 
											location = { province_event = { id = autobuild_startbuilding.324}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_camel_breeder_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
									IF = {
										limit = {
											has_building = no_camel_breeder_7 
											NOT = { has_building = no_camel_breeder_8 has_building = no_ab_ph_no_camel_breeder_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_camel_breeder_8 
											location = { province_event = { id = autobuild_startbuilding.333}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_no_elephant_camp_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
									IF = {
										limit = {
											has_building = no_elephant_camp_7 
											NOT = { has_building = no_elephant_camp_8 has_building = no_ab_ph_no_elephant_camp_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_elephant_camp_8 
											location = { province_event = { id = autobuild_startbuilding.365}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
								IF = {
									limit = {
										has_building = no_gathering_hall_7 
										NOT = { has_building = no_gathering_hall_8 has_building = no_ab_ph_no_gathering_hall_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_gathering_hall_8 
										location = { province_event = { id = autobuild_startbuilding.389}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { ab_pot_tb_great_pillar_zun = yes}
								IF = {
									limit = { NOT = { has_building = tb_great_pillar_zun has_building = tb_ab_ph_tb_great_pillar_zun}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_zun 
										location = { province_event = { id = autobuild_startbuilding.742}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_baltic = yes}
								IF = {
									limit = { NOT = { has_building = tb_great_pillar_baltic has_building = tb_ab_ph_tb_great_pillar_baltic}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_baltic 
										location = { province_event = { id = autobuild_startbuilding.734}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_finnish = yes}
								IF = {
									limit = {
										NOT = { has_building = tb_great_pillar_finnish has_building = tb_ab_ph_tb_great_pillar_finnish}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_finnish 
										location = { province_event = { id = autobuild_startbuilding.736}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_tengri = yes}
								IF = {
									limit = { NOT = { has_building = tb_great_pillar_tengri has_building = tb_ab_ph_tb_great_pillar_tengri}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_tengri 
										location = { province_event = { id = autobuild_startbuilding.740}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_aztec = yes}
								IF = {
									limit = { NOT = { has_building = tb_great_pillar_aztec has_building = tb_ab_ph_tb_great_pillar_aztec}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_aztec 
										location = { province_event = { id = autobuild_startbuilding.733}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_norse = yes}
								IF = {
									limit = { NOT = { has_building = tb_great_pillar_norse has_building = tb_ab_ph_tb_great_pillar_norse}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_norse 
										location = { province_event = { id = autobuild_startbuilding.738}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_slavic = yes}
								IF = {
									limit = { NOT = { has_building = tb_great_pillar_slavic has_building = tb_ab_ph_tb_great_pillar_slavic}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_slavic 
										location = { province_event = { id = autobuild_startbuilding.739}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_bon = yes}
								IF = {
									limit = { NOT = { has_building = tb_great_pillar_bon has_building = tb_ab_ph_tb_great_pillar_bon}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_bon 
										location = { province_event = { id = autobuild_startbuilding.735}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_west_african = yes}
								IF = {
									limit = {
										NOT = { has_building = tb_great_pillar_west_african has_building = tb_ab_ph_tb_great_pillar_west_african}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_west_african 
										location = { province_event = { id = autobuild_startbuilding.741}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_great_pillar_hellenic = yes}
								IF = {
									limit = {
										NOT = { has_building = tb_great_pillar_hellenic has_building = tb_ab_ph_tb_great_pillar_hellenic}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_great_pillar_hellenic 
										location = { province_event = { id = autobuild_startbuilding.737}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0400 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ct_port_5 = yes}} 
									IF = {
										limit = { has_building = ct_port_4 NOT = { has_building = ct_port_5 has_building = ct_ab_ph_ct_port_5}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_port_5 
											location = { province_event = { id = autobuild_startbuilding.238}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ct_rep_arsenal_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = ct_rep_arsenal_1 
											NOT = { has_building = ct_rep_arsenal_2 has_building = ct_ab_ph_ct_rep_arsenal_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_rep_arsenal_2 
											location = { province_event = { id = autobuild_startbuilding.240}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_4 = yes}} 
								IF = {
									limit = {
										has_building = ct_training_grounds_3 
										NOT = { has_building = ct_training_grounds_4 has_building = ct_ab_ph_ct_training_grounds_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_training_grounds_4 
										location = { province_event = { id = autobuild_startbuilding.249}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_university_3 = yes}} 
								IF = {
									limit = {
										has_building = ct_guard_4 
										NOT = { has_building = ct_guard_5 has_building = ct_ab_ph_ct_guard_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_guard_5 
										location = { province_event = { id = autobuild_startbuilding.223}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
								IF = {
									limit = {
										has_building = ct_marketplace_4 
										NOT = { has_building = ct_marketplace_5 has_building = ct_ab_ph_ct_marketplace_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_marketplace_5 
										location = { province_event = { id = autobuild_startbuilding.228}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = ct_barracks_4 
										NOT = { has_building = ct_barracks_5 has_building = ct_ab_ph_ct_barracks_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_barracks_5 
										location = { province_event = { id = autobuild_startbuilding.217}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
								IF = {
									limit = {
										has_building = tp_monastery_3 
										NOT = { has_building = tp_monastery_4 has_building = tp_ab_ph_tp_monastery_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_monastery_4 
										location = { province_event = { id = autobuild_startbuilding.518}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_guard_4 = yes}} 
								IF = {
									limit = {
										has_building = tp_elite_barracks_4 
										NOT = { has_building = tp_elite_barracks_5 has_building = tp_ab_ph_tp_elite_barracks_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_elite_barracks_5 
										location = { province_event = { id = autobuild_startbuilding.512}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
								IF = {
									limit = { has_building = tp_town_4 NOT = { has_building = tp_town_5 has_building = tp_ab_ph_tp_town_5}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_town_5 
										location = { province_event = { id = autobuild_startbuilding.548}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = tp_barracks_4 
										NOT = { has_building = tp_barracks_5 has_building = tp_ab_ph_tp_barracks_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_barracks_5 
										location = { province_event = { id = autobuild_startbuilding.506}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_pot_no_baghatur_council_8 = yes}
								IF = {
									limit = { location = { ab_tech_ca_keep_5 = yes}} 
									IF = {
										limit = {
											has_building = no_baghatur_council_7 
											NOT = { has_building = no_baghatur_council_8 has_building = no_ab_ph_no_baghatur_council_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_baghatur_council_8 
											location = { province_event = { id = autobuild_startbuilding.325}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = no_lamellar_armor_crafter_7 
										NOT = { has_building = no_lamellar_armor_crafter_8 has_building = no_ab_ph_no_lamellar_armor_crafter_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_lamellar_armor_crafter_8 
										location = { province_event = { id = autobuild_startbuilding.429}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_special_fortifications_3 = yes}} 
								IF = {
									limit = {
										has_building = no_camp_fortifications_7 
										NOT = { has_building = no_camp_fortifications_8 has_building = no_ab_ph_no_camp_fortifications_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_camp_fortifications_8 
										location = { province_event = { id = autobuild_startbuilding.341}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = no_sheep_6 
										NOT = { has_building = no_sheep_7 has_building = no_ab_ph_no_sheep_7}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_7 
										location = { province_event = { id = autobuild_startbuilding.476}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
								IF = {
									limit = {
										has_building = no_shrine_7 
										NOT = { has_building = no_shrine_8 has_building = no_ab_ph_no_shrine_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_shrine_8 
										location = { province_event = { id = autobuild_startbuilding.485}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_culture_group_altaic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_altaic_2 
											NOT = { has_building = ca_culture_group_altaic_3 has_building = ca_ab_ph_ca_culture_group_altaic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_altaic_3 
											location = { province_event = { id = autobuild_startbuilding.46}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_nahuatl_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_nahuatl_2 
											NOT = { has_building = ca_culture_nahuatl_3 has_building = ca_ab_ph_ca_culture_nahuatl_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_nahuatl_3 
											location = { province_event = { id = autobuild_startbuilding.98}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_dutch_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_dutch_2 
											NOT = { has_building = ca_culture_dutch_3 has_building = ca_ab_ph_ca_culture_dutch_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_dutch_3 
											location = { province_event = { id = autobuild_startbuilding.30}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_animal_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_animal_2 
											NOT = { has_building = ca_culture_animal_3 has_building = ca_ab_ph_ca_culture_animal_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_animal_3 
											location = { province_event = { id = autobuild_startbuilding.14}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_desert_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_desert_stable_4 
											NOT = { has_building = ca_desert_stable_5 has_building = ca_ab_ph_ca_desert_stable_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_desert_stable_5 
											location = { province_event = { id = autobuild_startbuilding.148}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_south_slavic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_south_slavic_2 
											NOT = {
												has_building = ca_culture_group_south_slavic_3 
												has_building = ca_ab_ph_ca_culture_group_south_slavic_3 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_south_slavic_3 
											location = { province_event = { id = autobuild_startbuilding.70}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_saxon_english_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_saxon_english_2 
											NOT = { has_building = ca_culture_saxon_english_3 has_building = ca_ab_ph_ca_culture_saxon_english_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_saxon_english_3 
											location = { province_event = { id = autobuild_startbuilding.122}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_steppe_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_steppe_stable_4 
											NOT = { has_building = ca_steppe_stable_5 has_building = ca_ab_ph_ca_steppe_stable_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_stable_5 
											location = { province_event = { id = autobuild_startbuilding.192}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_barracks_4 = yes}} 
									IF = {
										limit = {
											has_building = ca_steppe_barracks_4 
											NOT = { has_building = ca_steppe_barracks_5 has_building = ca_ab_ph_ca_steppe_barracks_5}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_barracks_5 
											location = { province_event = { id = autobuild_startbuilding.186}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_government_monastery_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
									IF = {
										limit = {
											has_building = ca_government_monastery_3 
											NOT = { has_building = ca_government_monastery_4 has_building = ca_ab_ph_ca_government_monastery_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_government_monastery_4 
											location = { province_event = { id = autobuild_startbuilding.153}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_germanic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_germanic_2 
											NOT = { has_building = ca_culture_germanic_3 has_building = ca_ab_ph_ca_culture_germanic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_germanic_3 
											location = { province_event = { id = autobuild_startbuilding.42}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_jewish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_jewish_2 
											NOT = { has_building = ca_culture_jewish_3 has_building = ca_ab_ph_ca_culture_jewish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_jewish_3 
											location = { province_event = { id = autobuild_startbuilding.90}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_irish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_irish_2 
											NOT = { has_building = ca_culture_irish_3 has_building = ca_ab_ph_ca_culture_irish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_irish_3 
											location = { province_event = { id = autobuild_startbuilding.82}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_frank_norman_german_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_frank_norman_german_2 
											NOT = {
												has_building = ca_culture_frank_norman_german_3 
												has_building = ca_ab_ph_ca_culture_frank_norman_german_3 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_frank_norman_german_3 
											location = { province_event = { id = autobuild_startbuilding.38}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_italian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_italian_2 
											NOT = { has_building = ca_culture_italian_3 has_building = ca_ab_ph_ca_culture_italian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_italian_3 
											location = { province_event = { id = autobuild_startbuilding.86}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_chinese_han_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_chinese_han_2 
											NOT = { has_building = ca_culture_chinese_han_3 has_building = ca_ab_ph_ca_culture_chinese_han_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_chinese_han_3 
											location = { province_event = { id = autobuild_startbuilding.22}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_byzantine_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_byzantine_2 
											NOT = { has_building = ca_culture_group_byzantine_3 has_building = ca_ab_ph_ca_culture_group_byzantine_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_byzantine_3 
											location = { province_event = { id = autobuild_startbuilding.58}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_arabic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_arabic_2 
											NOT = { has_building = ca_culture_group_arabic_3 has_building = ca_ab_ph_ca_culture_group_arabic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_arabic_3 
											location = { province_event = { id = autobuild_startbuilding.50}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_coptic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_coptic_2 
											NOT = { has_building = ca_culture_coptic_3 has_building = ca_ab_ph_ca_culture_coptic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_coptic_3 
											location = { province_event = { id = autobuild_startbuilding.26}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_sardinian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_sardinian_2 
											NOT = { has_building = ca_culture_sardinian_3 has_building = ca_ab_ph_ca_culture_sardinian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_sardinian_3 
											location = { province_event = { id = autobuild_startbuilding.118}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_roman_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_roman_2 
											NOT = { has_building = ca_culture_roman_3 has_building = ca_ab_ph_ca_culture_roman_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_roman_3 
											location = { province_event = { id = autobuild_startbuilding.110}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_iberian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_iberian_2 
											NOT = { has_building = ca_culture_group_iberian_3 has_building = ca_ab_ph_ca_culture_group_iberian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_iberian_3 
											location = { province_event = { id = autobuild_startbuilding.62}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_indian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_indian_2 
											NOT = { has_building = ca_culture_indian_3 has_building = ca_ab_ph_ca_culture_indian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_indian_3 
											location = { province_event = { id = autobuild_startbuilding.78}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_ethiopian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_ethiopian_2 
											NOT = { has_building = ca_culture_ethiopian_3 has_building = ca_ab_ph_ca_culture_ethiopian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_ethiopian_3 
											location = { province_event = { id = autobuild_startbuilding.34}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_tibetan_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_tibetan_2 
											NOT = { has_building = ca_culture_tibetan_3 has_building = ca_ab_ph_ca_culture_tibetan_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_tibetan_3 
											location = { province_event = { id = autobuild_startbuilding.138}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_altaic_jurchen_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_altaic_jurchen_2 
											NOT = { has_building = ca_culture_altaic_jurchen_3 has_building = ca_ab_ph_ca_culture_altaic_jurchen_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_altaic_jurchen_3 
											location = { province_event = { id = autobuild_startbuilding.10}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_west_african_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_west_african_2 
											NOT = { has_building = ca_culture_west_african_3 has_building = ca_ab_ph_ca_culture_west_african_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_west_african_3 
											location = { province_event = { id = autobuild_startbuilding.142}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_pictish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_pictish_2 
											NOT = { has_building = ca_culture_pictish_3 has_building = ca_ab_ph_ca_culture_pictish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_pictish_3 
											location = { province_event = { id = autobuild_startbuilding.106}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_russian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_russian_2 
											NOT = { has_building = ca_culture_russian_3 has_building = ca_ab_ph_ca_culture_russian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_russian_3 
											location = { province_event = { id = autobuild_startbuilding.114}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_arberian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_arberian_2 
											NOT = { has_building = ca_culture_arberian_3 has_building = ca_ab_ph_ca_culture_arberian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_arberian_3 
											location = { province_event = { id = autobuild_startbuilding.18}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_suebi_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_suebi_2 
											NOT = { has_building = ca_culture_suebi_3 has_building = ca_ab_ph_ca_culture_suebi_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_suebi_3 
											location = { province_event = { id = autobuild_startbuilding.134}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_scottish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_scottish_2 
											NOT = { has_building = ca_culture_scottish_3 has_building = ca_ab_ph_ca_culture_scottish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_scottish_3 
											location = { province_event = { id = autobuild_startbuilding.126}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_nubian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_nubian_2 
											NOT = { has_building = ca_culture_nubian_3 has_building = ca_ab_ph_ca_culture_nubian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_nubian_3 
											location = { province_event = { id = autobuild_startbuilding.102}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_baltic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_baltic_2 
											NOT = { has_building = ca_culture_group_baltic_3 has_building = ca_ab_ph_ca_culture_group_baltic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_baltic_3 
											location = { province_event = { id = autobuild_startbuilding.54}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_moors_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_moors_2 
											NOT = { has_building = ca_culture_moors_3 has_building = ca_ab_ph_ca_culture_moors_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_moors_3 
											location = { province_event = { id = autobuild_startbuilding.94}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_somali_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_somali_2 
											NOT = { has_building = ca_culture_somali_3 has_building = ca_ab_ph_ca_culture_somali_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_somali_3 
											location = { province_event = { id = autobuild_startbuilding.130}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_hungarian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_hungarian_2 
											NOT = { has_building = ca_culture_hungarian_3 has_building = ca_ab_ph_ca_culture_hungarian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_hungarian_3 
											location = { province_event = { id = autobuild_startbuilding.74}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_north_germanic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_1 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_north_germanic_2 
											NOT = {
												has_building = ca_culture_group_north_germanic_3 
												has_building = ca_ab_ph_ca_culture_group_north_germanic_3 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_north_germanic_3 
											location = { province_event = { id = autobuild_startbuilding.66}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_5 = yes}} 
								IF = {
									limit = {
										has_building = ca_barracks_4 
										NOT = {has_building = ca_steppe_barracks_5
											}
										NOT = {location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = ca_barracks_5 has_building = ca_ab_ph_ca_barracks_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_barracks_5 
										location = { province_event = { id = autobuild_startbuilding.5}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_3 = yes}} 
								IF = {
									limit = { has_building = ca_town_4 NOT = { has_building = ca_town_5 has_building = ca_ab_ph_ca_town_5}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_town_5 
										location = { province_event = { id = autobuild_startbuilding.198}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = ca_stable_4 
										NOT = {has_building = ca_desert_stable_5
											has_building = ca_steppe_stable_5
											}
										NOT = {location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														}
													}
												}
											location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = ca_stable_5 has_building = ca_ab_ph_ca_stable_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_stable_5 
										location = { province_event = { id = autobuild_startbuilding.180}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_4 = yes}} 
								IF = {
									limit = { has_building = ca_keep_3 NOT = { has_building = ca_keep_4 has_building = ca_ab_ph_ca_keep_4}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_keep_4 
										location = { province_event = { id = autobuild_startbuilding.157}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0450 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ct_planned_infrastructure_4 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_3 = yes}} 
									IF = {
										limit = {
											has_building = ct_planned_infrastructure_2 
											NOT = { has_building = ct_planned_infrastructure_3 has_building = ct_ab_ph_ct_planned_infrastructure_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_planned_infrastructure_3 
											location = { province_event = { id = autobuild_startbuilding.232}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_special_fortifications_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_3 = yes}} 
									IF = {
										limit = {
											has_building = ca_special_fortifications_2 
											NOT = { has_building = ca_special_fortifications_3 has_building = ca_ab_ph_ca_special_fortifications_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_special_fortifications_3 
											location = { province_event = { id = autobuild_startbuilding.174}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_oppressive_fortifications_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_4 = yes}} 
									IF = {
										limit = {
											has_building = ca_oppressive_fortifications_3 
											NOT = {
												has_building = ca_oppressive_fortifications_4 
												has_building = ca_ab_ph_ca_oppressive_fortifications_4 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_oppressive_fortifications_4 
											location = { province_event = { id = autobuild_startbuilding.167}} 
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0500 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_4 = yes}} 
								IF = {
									limit = {
										has_building = ct_marketplace_5 
										NOT = { has_building = ct_marketplace_6 has_building = ct_ab_ph_ct_marketplace_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_marketplace_6 
										location = { province_event = { id = autobuild_startbuilding.229}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = ct_barracks_5 
										NOT = { has_building = ct_barracks_6 has_building = ct_ab_ph_ct_barracks_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_barracks_6 
										location = { province_event = { id = autobuild_startbuilding.218}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_5 = yes}} 
								IF = {
									limit = {
										has_building = ct_training_grounds_4 
										NOT = { has_building = ct_training_grounds_5 has_building = ct_ab_ph_ct_training_grounds_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_training_grounds_5 
										location = { province_event = { id = autobuild_startbuilding.250}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_6 = yes}} 
								IF = {
									limit = {
										has_building = ct_training_grounds_5 
										NOT = { has_building = ct_training_grounds_6 has_building = ct_ab_ph_ct_training_grounds_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_training_grounds_6 
										location = { province_event = { id = autobuild_startbuilding.251}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = temple}
							IF = {
								limit = { ab_pot_tp_shrine_poseidon = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_poseidon has_building = tp_ab_ph_tp_shrine_poseidon}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_poseidon 
										location = { province_event = { id = autobuild_startbuilding.542}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_athena = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_athena has_building = tp_ab_ph_tp_shrine_athena}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_athena 
										location = { province_event = { id = autobuild_startbuilding.536}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_ephaestus = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_ephaestus has_building = tp_ab_ph_tp_shrine_ephaestus}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_ephaestus 
										location = { province_event = { id = autobuild_startbuilding.538}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_hades = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_hades has_building = tp_ab_ph_tp_shrine_hades}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_hades 
										location = { province_event = { id = autobuild_startbuilding.539}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_demeter = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_demeter has_building = tp_ab_ph_tp_shrine_demeter}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_demeter 
										location = { province_event = { id = autobuild_startbuilding.537}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_zeus = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_zeus has_building = tp_ab_ph_tp_shrine_zeus}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_zeus 
										location = { province_event = { id = autobuild_startbuilding.543}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_arthemis = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_arthemis has_building = tp_ab_ph_tp_shrine_arthemis}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_arthemis 
										location = { province_event = { id = autobuild_startbuilding.535}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_ares = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_ares has_building = tp_ab_ph_tp_shrine_ares}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_ares 
										location = { province_event = { id = autobuild_startbuilding.534}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_hestia = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_hestia has_building = tp_ab_ph_tp_shrine_hestia}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_hestia 
										location = { province_event = { id = autobuild_startbuilding.541}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_aphrodite = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_aphrodite has_building = tp_ab_ph_tp_shrine_aphrodite}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_aphrodite 
										location = { province_event = { id = autobuild_startbuilding.532}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_hermes = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_hermes has_building = tp_ab_ph_tp_shrine_hermes}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_hermes 
										location = { province_event = { id = autobuild_startbuilding.540}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_pot_tp_shrine_apollo = yes}
								IF = {
									limit = { NOT = { has_building = tp_shrine_apollo has_building = tp_ab_ph_tp_shrine_apollo}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_shrine_apollo 
										location = { province_event = { id = autobuild_startbuilding.533}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_4 = yes}} 
								IF = {
									limit = {
										has_building = tp_barracks_5 
										NOT = { has_building = tp_barracks_6 has_building = tp_ab_ph_tp_barracks_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_barracks_6 
										location = { province_event = { id = autobuild_startbuilding.507}} 
										break = yes 
										}
									}
								IF = {
									limit = { has_building = tp_town_5 NOT = { has_building = tp_town_6 has_building = tp_ab_ph_tp_town_6}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_town_6 
										location = { province_event = { id = autobuild_startbuilding.549}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_university_3 = yes}} 
								IF = {
									limit = {
										has_building = tp_monastery_5 
										NOT = { has_building = tp_monastery_6 has_building = tp_ab_ph_tp_monastery_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_monastery_6 
										location = { province_event = { id = autobuild_startbuilding.520}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = tp_elite_barracks_5 
										NOT = { has_building = tp_elite_barracks_6 has_building = tp_ab_ph_tp_elite_barracks_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_elite_barracks_6 
										location = { province_event = { id = autobuild_startbuilding.513}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_guard_4 = yes}} 
								IF = {
									limit = {
										has_building = tp_monastery_4 
										NOT = { has_building = tp_monastery_5 has_building = tp_ab_ph_tp_monastery_5}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tp_ab_ph_workers_camp 
										add_building = tp_ab_ph_tp_monastery_5 
										location = { province_event = { id = autobuild_startbuilding.519}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_no_minter_7 = yes}} 
									IF = {
										limit = {
											has_building = no_minter_6 
											NOT = { has_building = no_minter_7 has_building = no_ab_ph_no_minter_7}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_7 
											location = { province_event = { id = autobuild_startbuilding.452}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ct_planned_infrastructure_2 = yes}} 
								IF = {
									limit = {
										has_building = no_sheep_7 
										NOT = { has_building = no_sheep_8 has_building = no_ab_ph_no_sheep_8}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = no_ab_ph_workers_camp 
										add_building = no_ab_ph_no_sheep_8 
										location = { province_event = { id = autobuild_startbuilding.477}} 
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_culture_tibetan_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_tibetan_3 
											NOT = { has_building = ca_culture_tibetan_4 has_building = ca_ab_ph_ca_culture_tibetan_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_tibetan_4 
											location = { province_event = { id = autobuild_startbuilding.139}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_desert_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_4 = yes}} 
									IF = {
										limit = {
											has_building = ca_desert_stable_5 
											NOT = { has_building = ca_desert_stable_6 has_building = ca_ab_ph_ca_desert_stable_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_desert_stable_6 
											location = { province_event = { id = autobuild_startbuilding.149}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_pictish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_pictish_3 
											NOT = { has_building = ca_culture_pictish_4 has_building = ca_ab_ph_ca_culture_pictish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_pictish_4 
											location = { province_event = { id = autobuild_startbuilding.107}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_frank_norman_german_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_frank_norman_german_3 
											NOT = {
												has_building = ca_culture_frank_norman_german_4 
												has_building = ca_ab_ph_ca_culture_frank_norman_german_4 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_frank_norman_german_4 
											location = { province_event = { id = autobuild_startbuilding.39}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_steppe_stable_6 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_5 = yes}} 
									IF = {
										limit = {
											has_building = ca_steppe_barracks_5 
											NOT = { has_building = ca_steppe_barracks_6 has_building = ca_ab_ph_ca_steppe_barracks_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_barracks_6 
											location = { province_event = { id = autobuild_startbuilding.187}} 
											break = yes 
											}
										}
									}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_4 = yes}} 
									IF = {
										limit = {
											has_building = ca_steppe_stable_5 
											NOT = { has_building = ca_steppe_stable_6 has_building = ca_ab_ph_ca_steppe_stable_6}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_steppe_stable_6 
											location = { province_event = { id = autobuild_startbuilding.193}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_indian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_indian_3 
											NOT = { has_building = ca_culture_indian_4 has_building = ca_ab_ph_ca_culture_indian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_indian_4 
											location = { province_event = { id = autobuild_startbuilding.79}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_jewish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_jewish_3 
											NOT = { has_building = ca_culture_jewish_4 has_building = ca_ab_ph_ca_culture_jewish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_jewish_4 
											location = { province_event = { id = autobuild_startbuilding.91}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_ethiopian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_ethiopian_3 
											NOT = { has_building = ca_culture_ethiopian_4 has_building = ca_ab_ph_ca_culture_ethiopian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_ethiopian_4 
											location = { province_event = { id = autobuild_startbuilding.35}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_nubian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_nubian_3 
											NOT = { has_building = ca_culture_nubian_4 has_building = ca_ab_ph_ca_culture_nubian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_nubian_4 
											location = { province_event = { id = autobuild_startbuilding.103}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_hungarian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_hungarian_3 
											NOT = { has_building = ca_culture_hungarian_4 has_building = ca_ab_ph_ca_culture_hungarian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_hungarian_4 
											location = { province_event = { id = autobuild_startbuilding.75}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_nahuatl_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_nahuatl_3 
											NOT = { has_building = ca_culture_nahuatl_4 has_building = ca_ab_ph_ca_culture_nahuatl_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_nahuatl_4 
											location = { province_event = { id = autobuild_startbuilding.99}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_irish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_irish_3 
											NOT = { has_building = ca_culture_irish_4 has_building = ca_ab_ph_ca_culture_irish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_irish_4 
											location = { province_event = { id = autobuild_startbuilding.83}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_roman_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_roman_3 
											NOT = { has_building = ca_culture_roman_4 has_building = ca_ab_ph_ca_culture_roman_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_roman_4 
											location = { province_event = { id = autobuild_startbuilding.111}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_suebi_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_suebi_3 
											NOT = { has_building = ca_culture_suebi_4 has_building = ca_ab_ph_ca_culture_suebi_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_suebi_4 
											location = { province_event = { id = autobuild_startbuilding.135}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_scottish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_scottish_3 
											NOT = { has_building = ca_culture_scottish_4 has_building = ca_ab_ph_ca_culture_scottish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_scottish_4 
											location = { province_event = { id = autobuild_startbuilding.127}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_chinese_han_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_chinese_han_3 
											NOT = { has_building = ca_culture_chinese_han_4 has_building = ca_ab_ph_ca_culture_chinese_han_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_chinese_han_4 
											location = { province_event = { id = autobuild_startbuilding.23}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_saxon_english_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_saxon_english_3 
											NOT = { has_building = ca_culture_saxon_english_4 has_building = ca_ab_ph_ca_culture_saxon_english_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_saxon_english_4 
											location = { province_event = { id = autobuild_startbuilding.123}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_sardinian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_sardinian_3 
											NOT = { has_building = ca_culture_sardinian_4 has_building = ca_ab_ph_ca_culture_sardinian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_sardinian_4 
											location = { province_event = { id = autobuild_startbuilding.119}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_germanic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_germanic_3 
											NOT = { has_building = ca_culture_germanic_4 has_building = ca_ab_ph_ca_culture_germanic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_germanic_4 
											location = { province_event = { id = autobuild_startbuilding.43}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_dutch_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_dutch_3 
											NOT = { has_building = ca_culture_dutch_4 has_building = ca_ab_ph_ca_culture_dutch_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_dutch_4 
											location = { province_event = { id = autobuild_startbuilding.31}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_arabic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_arabic_3 
											NOT = { has_building = ca_culture_group_arabic_4 has_building = ca_ab_ph_ca_culture_group_arabic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_arabic_4 
											location = { province_event = { id = autobuild_startbuilding.51}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_north_germanic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_north_germanic_3 
											NOT = {
												has_building = ca_culture_group_north_germanic_4 
												has_building = ca_ab_ph_ca_culture_group_north_germanic_4 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_north_germanic_4 
											location = { province_event = { id = autobuild_startbuilding.67}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_iberian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_iberian_3 
											NOT = { has_building = ca_culture_group_iberian_4 has_building = ca_ab_ph_ca_culture_group_iberian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_iberian_4 
											location = { province_event = { id = autobuild_startbuilding.63}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_animal_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_animal_3 
											NOT = { has_building = ca_culture_animal_4 has_building = ca_ab_ph_ca_culture_animal_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_animal_4 
											location = { province_event = { id = autobuild_startbuilding.15}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_moors_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_moors_3 
											NOT = { has_building = ca_culture_moors_4 has_building = ca_ab_ph_ca_culture_moors_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_moors_4 
											location = { province_event = { id = autobuild_startbuilding.95}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_russian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_russian_3 
											NOT = { has_building = ca_culture_russian_4 has_building = ca_ab_ph_ca_culture_russian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_russian_4 
											location = { province_event = { id = autobuild_startbuilding.115}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_altaic_jurchen_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_altaic_jurchen_3 
											NOT = { has_building = ca_culture_altaic_jurchen_4 has_building = ca_ab_ph_ca_culture_altaic_jurchen_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_altaic_jurchen_4 
											location = { province_event = { id = autobuild_startbuilding.11}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_italian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_italian_3 
											NOT = { has_building = ca_culture_italian_4 has_building = ca_ab_ph_ca_culture_italian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_italian_4 
											location = { province_event = { id = autobuild_startbuilding.87}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_west_african_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_west_african_3 
											NOT = { has_building = ca_culture_west_african_4 has_building = ca_ab_ph_ca_culture_west_african_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_west_african_4 
											location = { province_event = { id = autobuild_startbuilding.143}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_coptic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_coptic_3 
											NOT = { has_building = ca_culture_coptic_4 has_building = ca_ab_ph_ca_culture_coptic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_coptic_4 
											location = { province_event = { id = autobuild_startbuilding.27}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_baltic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_baltic_3 
											NOT = { has_building = ca_culture_group_baltic_4 has_building = ca_ab_ph_ca_culture_group_baltic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_baltic_4 
											location = { province_event = { id = autobuild_startbuilding.55}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_somali_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_somali_3 
											NOT = { has_building = ca_culture_somali_4 has_building = ca_ab_ph_ca_culture_somali_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_somali_4 
											location = { province_event = { id = autobuild_startbuilding.131}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_arberian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_arberian_3 
											NOT = { has_building = ca_culture_arberian_4 has_building = ca_ab_ph_ca_culture_arberian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_arberian_4 
											location = { province_event = { id = autobuild_startbuilding.19}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_byzantine_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_byzantine_3 
											NOT = { has_building = ca_culture_group_byzantine_4 has_building = ca_ab_ph_ca_culture_group_byzantine_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_byzantine_4 
											location = { province_event = { id = autobuild_startbuilding.59}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_altaic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_altaic_3 
											NOT = { has_building = ca_culture_group_altaic_4 has_building = ca_ab_ph_ca_culture_group_altaic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_altaic_4 
											location = { province_event = { id = autobuild_startbuilding.47}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_group_south_slavic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_oppressive_fortifications_2 = yes}} 
									IF = {
										limit = {
											has_building = ca_culture_group_south_slavic_3 
											NOT = {
												has_building = ca_culture_group_south_slavic_4 
												has_building = ca_ab_ph_ca_culture_group_south_slavic_4 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_culture_group_south_slavic_4 
											location = { province_event = { id = autobuild_startbuilding.71}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_barracks_6 = yes}} 
								IF = {
									limit = {
										has_building = ca_barracks_5 
										NOT = {has_building = ca_steppe_barracks_6
											}
										NOT = {location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = ca_barracks_6 has_building = ca_ab_ph_ca_barracks_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_barracks_6 
										location = { province_event = { id = autobuild_startbuilding.6}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_5 = yes}} 
								IF = {
									limit = { has_building = ca_keep_4 NOT = { has_building = ca_keep_5 has_building = ca_ab_ph_ca_keep_5}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_keep_5 
										location = { province_event = { id = autobuild_startbuilding.158}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_oppressive_fortifications_4 = yes}} 
								IF = {
									limit = { has_building = ca_town_5 NOT = { has_building = ca_town_6 has_building = ca_ab_ph_ca_town_6}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_town_6 
										location = { province_event = { id = autobuild_startbuilding.199}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = ca_stable_5 
										NOT = {has_building = ca_desert_stable_6
											has_building = ca_steppe_stable_6
											}
										NOT = {location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														}
													}
												}
											location = {
												terrain = steppe 
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = ca_stable_6 has_building = ca_ab_ph_ca_stable_6}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_stable_6 
										location = { province_event = { id = autobuild_startbuilding.181}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_6 = yes}} 
								IF = {
									limit = { has_building = ca_keep_5 NOT = { has_building = ca_keep_6 has_building = ca_ab_ph_ca_keep_6}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ca_ab_ph_workers_camp 
										add_building = ca_ab_ph_ca_keep_6 
										location = { province_event = { id = autobuild_startbuilding.159}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0600 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ct_rep_arsenal_3 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_4 = yes}} 
									IF = {
										limit = {
											has_building = ct_rep_arsenal_2 
											NOT = { has_building = ct_rep_arsenal_3 has_building = ct_ab_ph_ct_rep_arsenal_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_rep_arsenal_3 
											location = { province_event = { id = autobuild_startbuilding.241}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_3 = yes}} 
								IF = {
									limit = { NOT = { has_building = ct_university_1 has_building = ct_ab_ph_ct_university_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_university_1 
										location = { province_event = { id = autobuild_startbuilding.252}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0650 = yes}} 
						IF = {
							limit = { holding_type = nomad}
							IF = {
								limit = { ab_pot_no_minter_8 = yes}
								IF = {
									limit = { location = { ab_tech_ct_port_5 = yes}} 
									IF = {
										limit = {
											has_building = no_minter_7 
											NOT = { has_building = no_minter_8 has_building = no_ab_ph_no_minter_8}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = no_ab_ph_workers_camp 
											add_building = no_ab_ph_no_minter_8 
											location = { province_event = { id = autobuild_startbuilding.453}} 
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0750 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { ab_pot_ct_planned_infrastructure_4 = yes}
								IF = {
									limit = { location = { ab_tech_ct_planned_infrastructure_4 = yes}} 
									IF = {
										limit = {
											has_building = ct_planned_infrastructure_3 
											NOT = { has_building = ct_planned_infrastructure_4 has_building = ct_ab_ph_ct_planned_infrastructure_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ct_ab_ph_workers_camp 
											add_building = ct_ab_ph_ct_planned_infrastructure_4 
											location = { province_event = { id = autobuild_startbuilding.233}} 
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { holding_type = castle}
							IF = {
								limit = { ab_pot_ca_special_fortifications_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_special_fortifications_4 = yes}} 
									IF = {
										limit = {
											has_building = ca_special_fortifications_3 
											NOT = { has_building = ca_special_fortifications_4 has_building = ca_ab_ph_ca_special_fortifications_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = ca_ab_ph_workers_camp 
											add_building = ca_ab_ph_ca_special_fortifications_4 
											location = { province_event = { id = autobuild_startbuilding.175}} 
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0800 = yes}} 
						IF = {
							limit = { holding_type = city}
							IF = {
								limit = { location = { ab_tech_ct_university_3 = yes}} 
								IF = {
									limit = {
										has_building = ct_university_2 
										NOT = { has_building = ct_university_3 has_building = ct_ab_ph_ct_university_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_university_3 
										location = { province_event = { id = autobuild_startbuilding.254}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_government_monastery_4 = yes}} 
								IF = {
									limit = {
										has_building = ct_university_1 
										NOT = { has_building = ct_university_2 has_building = ct_ab_ph_ct_university_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = ct_ab_ph_workers_camp 
										add_building = ct_ab_ph_ct_university_2 
										location = { province_event = { id = autobuild_startbuilding.253}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_prestige_at_least_0100 = yes}} 
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { ab_pot_tb_culture_group_altaic_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_group_altaic_1 has_building = tb_ab_ph_tb_culture_group_altaic_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_altaic_1 
											location = { province_event = { id = autobuild_startbuilding.629}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_jewish_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_jewish_1 has_building = tb_ab_ph_tb_culture_jewish_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_jewish_1 
											location = { province_event = { id = autobuild_startbuilding.673}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nubian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_nubian_1 has_building = tb_ab_ph_tb_culture_nubian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nubian_1 
											location = { province_event = { id = autobuild_startbuilding.685}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_irish_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_irish_1 has_building = tb_ab_ph_tb_culture_irish_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_irish_1 
											location = { province_event = { id = autobuild_startbuilding.665}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_animal_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_animal_1 has_building = tb_ab_ph_tb_culture_animal_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_animal_1 
											location = { province_event = { id = autobuild_startbuilding.597}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_germanic_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_germanic_1 has_building = tb_ab_ph_tb_culture_germanic_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_germanic_1 
											location = { province_event = { id = autobuild_startbuilding.625}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_ethiopian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_ethiopian_1 has_building = tb_ab_ph_tb_culture_ethiopian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_ethiopian_1 
											location = { province_event = { id = autobuild_startbuilding.617}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_moors_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_moors_1 has_building = tb_ab_ph_tb_culture_moors_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_moors_1 
											location = { province_event = { id = autobuild_startbuilding.677}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_steppe_stable_1 has_building = tb_ab_ph_tb_steppe_stable_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_stable_1 
											location = { province_event = { id = autobuild_startbuilding.763}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_1 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_shipyard_1 has_building = tb_ab_ph_tb_shipyard_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_shipyard_1 
											location = { province_event = { id = autobuild_startbuilding.755}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_italian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_italian_1 has_building = tb_ab_ph_tb_culture_italian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_italian_1 
											location = { province_event = { id = autobuild_startbuilding.669}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_scottish_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_scottish_1 has_building = tb_ab_ph_tb_culture_scottish_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_scottish_1 
											location = { province_event = { id = autobuild_startbuilding.705}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_dutch_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_dutch_1 has_building = tb_ab_ph_tb_culture_dutch_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_dutch_1 
											location = { province_event = { id = autobuild_startbuilding.613}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_frank_norman_german_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = {
												has_building = tb_culture_frank_norman_german_1 
												has_building = tb_ab_ph_tb_culture_frank_norman_german_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_frank_norman_german_1 
											location = { province_event = { id = autobuild_startbuilding.621}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_baltic_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_group_baltic_1 has_building = tb_ab_ph_tb_culture_group_baltic_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_baltic_1 
											location = { province_event = { id = autobuild_startbuilding.637}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_russian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_russian_1 has_building = tb_ab_ph_tb_culture_russian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_russian_1 
											location = { province_event = { id = autobuild_startbuilding.693}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_barracks_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_steppe_barracks_1 has_building = tb_ab_ph_tb_steppe_barracks_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_barracks_1 
											location = { province_event = { id = autobuild_startbuilding.759}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_somali_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_somali_1 has_building = tb_ab_ph_tb_culture_somali_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_somali_1 
											location = { province_event = { id = autobuild_startbuilding.709}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_byzantine_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_group_byzantine_1 has_building = tb_ab_ph_tb_culture_group_byzantine_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_byzantine_1 
											location = { province_event = { id = autobuild_startbuilding.641}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_pictish_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_pictish_1 has_building = tb_ab_ph_tb_culture_pictish_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_pictish_1 
											location = { province_event = { id = autobuild_startbuilding.689}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_north_germanic_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = {
												has_building = tb_culture_group_north_germanic_1 
												has_building = tb_ab_ph_tb_culture_group_north_germanic_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_north_germanic_1 
											location = { province_event = { id = autobuild_startbuilding.649}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_saxon_english_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_saxon_english_1 has_building = tb_ab_ph_tb_culture_saxon_english_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_saxon_english_1 
											location = { province_event = { id = autobuild_startbuilding.701}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_hungarian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_hungarian_1 has_building = tb_ab_ph_tb_culture_hungarian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_hungarian_1 
											location = { province_event = { id = autobuild_startbuilding.657}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_indian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_indian_1 has_building = tb_ab_ph_tb_culture_indian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_indian_1 
											location = { province_event = { id = autobuild_startbuilding.661}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_suebi_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_suebi_1 has_building = tb_ab_ph_tb_culture_suebi_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_suebi_1 
											location = { province_event = { id = autobuild_startbuilding.713}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_chinese_han_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_chinese_han_1 has_building = tb_ab_ph_tb_culture_chinese_han_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_chinese_han_1 
											location = { province_event = { id = autobuild_startbuilding.605}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_arabic_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_group_arabic_1 has_building = tb_ab_ph_tb_culture_group_arabic_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_arabic_1 
											location = { province_event = { id = autobuild_startbuilding.633}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_south_slavic_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = {
												has_building = tb_culture_group_south_slavic_1 
												has_building = tb_ab_ph_tb_culture_group_south_slavic_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_south_slavic_1 
											location = { province_event = { id = autobuild_startbuilding.653}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_desert_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_desert_stable_1 has_building = tb_ab_ph_tb_desert_stable_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_desert_stable_1 
											location = { province_event = { id = autobuild_startbuilding.729}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_tibetan_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_tibetan_1 has_building = tb_ab_ph_tb_culture_tibetan_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_tibetan_1 
											location = { province_event = { id = autobuild_startbuilding.717}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_sardinian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_sardinian_1 has_building = tb_ab_ph_tb_culture_sardinian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_sardinian_1 
											location = { province_event = { id = autobuild_startbuilding.697}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_west_african_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_west_african_1 has_building = tb_ab_ph_tb_culture_west_african_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_west_african_1 
											location = { province_event = { id = autobuild_startbuilding.721}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_iberian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_group_iberian_1 has_building = tb_ab_ph_tb_culture_group_iberian_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_iberian_1 
											location = { province_event = { id = autobuild_startbuilding.645}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_coptic_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_coptic_1 has_building = tb_ab_ph_tb_culture_coptic_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_coptic_1 
											location = { province_event = { id = autobuild_startbuilding.609}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nahuatl_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_nahuatl_1 has_building = tb_ab_ph_tb_culture_nahuatl_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nahuatl_1 
											location = { province_event = { id = autobuild_startbuilding.681}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_altaic_jurchen_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											NOT = { has_building = tb_culture_altaic_jurchen_1 has_building = tb_ab_ph_tb_culture_altaic_jurchen_1}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_altaic_jurchen_1 
											location = { province_event = { id = autobuild_startbuilding.593}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_arberian_1 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = { NOT = { has_building = tb_culture_arberian_1 has_building = tb_ab_ph_tb_culture_arberian_1}} 
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_arberian_1 
											location = { province_event = { id = autobuild_startbuilding.601}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_arsenal_4 = yes}} 
								IF = {
									limit = { NOT = { has_building = tb_arsenal_1 has_building = tb_ab_ph_tb_arsenal_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_arsenal_1 
										location = { province_event = { id = autobuild_startbuilding.589}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = { NOT = { has_building = tb_training_grounds_1 has_building = tb_ab_ph_tb_training_grounds_1}} 
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_training_grounds_1 
										location = { province_event = { id = autobuild_startbuilding.767}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_practice_range_4 = yes}} 
								IF = {
									limit = {
										NOT = {has_building = tb_steppe_barracks_1
											}
										NOT = {location = { terrain = steppe event_target:abet_owner = { OR = { culture_group = altaic culture_group = magyar } }}
											}
										NOT = { has_building = tb_war_camp_1 has_building = tb_ab_ph_tb_war_camp_1}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_war_camp_1 
										location = { province_event = { id = autobuild_startbuilding.771}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										NOT = {has_building = tb_desert_stable_1
											has_building = tb_steppe_stable_1
											}
										NOT = {location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														culture_group = iranian 
														}
													}
												}
											location = {
												OR = {
													terrain = plains 
													terrain = steppe 
													}
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														}
													}
												}
											}
										NOT = { has_building = tb_practice_range_1 has_building = tb_ab_ph_tb_practice_range_1}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_practice_range_1 
										location = { province_event = { id = autobuild_startbuilding.751}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_prestige_at_least_0200 = yes}} 
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { ab_pot_tb_culture_hungarian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_hungarian_1 
											NOT = { has_building = tb_culture_hungarian_2 has_building = tb_ab_ph_tb_culture_hungarian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_hungarian_2 
											location = { province_event = { id = autobuild_startbuilding.658}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_saxon_english_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_saxon_english_1 
											NOT = { has_building = tb_culture_saxon_english_2 has_building = tb_ab_ph_tb_culture_saxon_english_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_saxon_english_2 
											location = { province_event = { id = autobuild_startbuilding.702}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nahuatl_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_nahuatl_1 
											NOT = { has_building = tb_culture_nahuatl_2 has_building = tb_ab_ph_tb_culture_nahuatl_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nahuatl_2 
											location = { province_event = { id = autobuild_startbuilding.682}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_indian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_indian_1 
											NOT = { has_building = tb_culture_indian_2 has_building = tb_ab_ph_tb_culture_indian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_indian_2 
											location = { province_event = { id = autobuild_startbuilding.662}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_arabic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_arabic_1 
											NOT = { has_building = tb_culture_group_arabic_2 has_building = tb_ab_ph_tb_culture_group_arabic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_arabic_2 
											location = { province_event = { id = autobuild_startbuilding.634}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_altaic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_altaic_1 
											NOT = { has_building = tb_culture_group_altaic_2 has_building = tb_ab_ph_tb_culture_group_altaic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_altaic_2 
											location = { province_event = { id = autobuild_startbuilding.630}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_north_germanic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_north_germanic_1 
											NOT = {
												has_building = tb_culture_group_north_germanic_2 
												has_building = tb_ab_ph_tb_culture_group_north_germanic_2 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_north_germanic_2 
											location = { province_event = { id = autobuild_startbuilding.650}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_steppe_stable_1 
											NOT = { has_building = tb_steppe_stable_2 has_building = tb_ab_ph_tb_steppe_stable_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_stable_2 
											location = { province_event = { id = autobuild_startbuilding.764}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_suebi_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_suebi_1 
											NOT = { has_building = tb_culture_suebi_2 has_building = tb_ab_ph_tb_culture_suebi_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_suebi_2 
											location = { province_event = { id = autobuild_startbuilding.714}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_shipyard_1 
											NOT = { has_building = tb_shipyard_2 has_building = tb_ab_ph_tb_shipyard_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_shipyard_2 
											location = { province_event = { id = autobuild_startbuilding.756}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_tibetan_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_tibetan_1 
											NOT = { has_building = tb_culture_tibetan_2 has_building = tb_ab_ph_tb_culture_tibetan_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_tibetan_2 
											location = { province_event = { id = autobuild_startbuilding.718}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_frank_norman_german_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_frank_norman_german_1 
											NOT = {
												has_building = tb_culture_frank_norman_german_2 
												has_building = tb_ab_ph_tb_culture_frank_norman_german_2 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_frank_norman_german_2 
											location = { province_event = { id = autobuild_startbuilding.622}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_iberian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_iberian_1 
											NOT = { has_building = tb_culture_group_iberian_2 has_building = tb_ab_ph_tb_culture_group_iberian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_iberian_2 
											location = { province_event = { id = autobuild_startbuilding.646}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_scottish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_scottish_1 
											NOT = { has_building = tb_culture_scottish_2 has_building = tb_ab_ph_tb_culture_scottish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_scottish_2 
											location = { province_event = { id = autobuild_startbuilding.706}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_dutch_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_dutch_1 
											NOT = { has_building = tb_culture_dutch_2 has_building = tb_ab_ph_tb_culture_dutch_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_dutch_2 
											location = { province_event = { id = autobuild_startbuilding.614}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_italian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_italian_1 
											NOT = { has_building = tb_culture_italian_2 has_building = tb_ab_ph_tb_culture_italian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_italian_2 
											location = { province_event = { id = autobuild_startbuilding.670}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_byzantine_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_byzantine_1 
											NOT = { has_building = tb_culture_group_byzantine_2 has_building = tb_ab_ph_tb_culture_group_byzantine_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_byzantine_2 
											location = { province_event = { id = autobuild_startbuilding.642}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_moors_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_moors_1 
											NOT = { has_building = tb_culture_moors_2 has_building = tb_ab_ph_tb_culture_moors_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_moors_2 
											location = { province_event = { id = autobuild_startbuilding.678}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_west_african_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_west_african_1 
											NOT = { has_building = tb_culture_west_african_2 has_building = tb_ab_ph_tb_culture_west_african_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_west_african_2 
											location = { province_event = { id = autobuild_startbuilding.722}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_sardinian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_sardinian_1 
											NOT = { has_building = tb_culture_sardinian_2 has_building = tb_ab_ph_tb_culture_sardinian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_sardinian_2 
											location = { province_event = { id = autobuild_startbuilding.698}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_south_slavic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_south_slavic_1 
											NOT = {
												has_building = tb_culture_group_south_slavic_2 
												has_building = tb_ab_ph_tb_culture_group_south_slavic_2 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_south_slavic_2 
											location = { province_event = { id = autobuild_startbuilding.654}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_barracks_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_steppe_barracks_1 
											NOT = { has_building = tb_steppe_barracks_2 has_building = tb_ab_ph_tb_steppe_barracks_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_barracks_2 
											location = { province_event = { id = autobuild_startbuilding.760}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_chinese_han_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_chinese_han_1 
											NOT = { has_building = tb_culture_chinese_han_2 has_building = tb_ab_ph_tb_culture_chinese_han_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_chinese_han_2 
											location = { province_event = { id = autobuild_startbuilding.606}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nubian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_nubian_1 
											NOT = { has_building = tb_culture_nubian_2 has_building = tb_ab_ph_tb_culture_nubian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nubian_2 
											location = { province_event = { id = autobuild_startbuilding.686}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_animal_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_animal_1 
											NOT = { has_building = tb_culture_animal_2 has_building = tb_ab_ph_tb_culture_animal_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_animal_2 
											location = { province_event = { id = autobuild_startbuilding.598}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_baltic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_baltic_1 
											NOT = { has_building = tb_culture_group_baltic_2 has_building = tb_ab_ph_tb_culture_group_baltic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_baltic_2 
											location = { province_event = { id = autobuild_startbuilding.638}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_irish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_irish_1 
											NOT = { has_building = tb_culture_irish_2 has_building = tb_ab_ph_tb_culture_irish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_irish_2 
											location = { province_event = { id = autobuild_startbuilding.666}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_germanic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_germanic_1 
											NOT = { has_building = tb_culture_germanic_2 has_building = tb_ab_ph_tb_culture_germanic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_germanic_2 
											location = { province_event = { id = autobuild_startbuilding.626}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_desert_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_desert_stable_1 
											NOT = { has_building = tb_desert_stable_2 has_building = tb_ab_ph_tb_desert_stable_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_desert_stable_2 
											location = { province_event = { id = autobuild_startbuilding.730}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_ethiopian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_ethiopian_1 
											NOT = { has_building = tb_culture_ethiopian_2 has_building = tb_ab_ph_tb_culture_ethiopian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_ethiopian_2 
											location = { province_event = { id = autobuild_startbuilding.618}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_altaic_jurchen_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_altaic_jurchen_1 
											NOT = { has_building = tb_culture_altaic_jurchen_2 has_building = tb_ab_ph_tb_culture_altaic_jurchen_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_altaic_jurchen_2 
											location = { province_event = { id = autobuild_startbuilding.594}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_jewish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_jewish_1 
											NOT = { has_building = tb_culture_jewish_2 has_building = tb_ab_ph_tb_culture_jewish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_jewish_2 
											location = { province_event = { id = autobuild_startbuilding.674}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_somali_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_somali_1 
											NOT = { has_building = tb_culture_somali_2 has_building = tb_ab_ph_tb_culture_somali_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_somali_2 
											location = { province_event = { id = autobuild_startbuilding.710}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_arberian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_arberian_1 
											NOT = { has_building = tb_culture_arberian_2 has_building = tb_ab_ph_tb_culture_arberian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_arberian_2 
											location = { province_event = { id = autobuild_startbuilding.602}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_russian_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_russian_1 
											NOT = { has_building = tb_culture_russian_2 has_building = tb_ab_ph_tb_culture_russian_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_russian_2 
											location = { province_event = { id = autobuild_startbuilding.694}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_pictish_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_pictish_1 
											NOT = { has_building = tb_culture_pictish_2 has_building = tb_ab_ph_tb_culture_pictish_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_pictish_2 
											location = { province_event = { id = autobuild_startbuilding.690}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_coptic_2 = yes}
								IF = {
									limit = { location = { ab_tech_ca_town_2 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_coptic_1 
											NOT = { has_building = tb_culture_coptic_2 has_building = tb_ab_ph_tb_culture_coptic_2}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_coptic_2 
											location = { province_event = { id = autobuild_startbuilding.610}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_arsenal_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_arsenal_1 
										NOT = { has_building = tb_arsenal_2 has_building = tb_ab_ph_tb_arsenal_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_arsenal_2 
										location = { province_event = { id = autobuild_startbuilding.590}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = {
										has_building = tb_training_grounds_1 
										NOT = { has_building = tb_training_grounds_2 has_building = tb_ab_ph_tb_training_grounds_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_training_grounds_2 
										location = { province_event = { id = autobuild_startbuilding.768}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_practice_range_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_practice_range_1 
										NOT = {has_building = tb_desert_stable_2
											has_building = tb_steppe_stable_2
											}
										NOT = {location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														culture_group = iranian 
														}
													}
												}
											location = {
												OR = {
													terrain = plains 
													terrain = steppe 
													}
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														}
													}
												}
											}
										NOT = { has_building = tb_practice_range_2 has_building = tb_ab_ph_tb_practice_range_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_practice_range_2 
										location = { province_event = { id = autobuild_startbuilding.752}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = tb_war_camp_1 
										NOT = {has_building = tb_steppe_barracks_2
											}
										NOT = {location = { terrain = steppe event_target:abet_owner = { OR = { culture_group = altaic culture_group = magyar } }}
											}
										NOT = { has_building = tb_war_camp_2 has_building = tb_ab_ph_tb_war_camp_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_war_camp_2 
										location = { province_event = { id = autobuild_startbuilding.772}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_prestige_at_least_0300 = yes}} 
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { ab_pot_tb_culture_moors_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_moors_2 
											NOT = { has_building = tb_culture_moors_3 has_building = tb_ab_ph_tb_culture_moors_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_moors_3 
											location = { province_event = { id = autobuild_startbuilding.679}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_hungarian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_hungarian_2 
											NOT = { has_building = tb_culture_hungarian_3 has_building = tb_ab_ph_tb_culture_hungarian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_hungarian_3 
											location = { province_event = { id = autobuild_startbuilding.659}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_germanic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_germanic_2 
											NOT = { has_building = tb_culture_germanic_3 has_building = tb_ab_ph_tb_culture_germanic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_germanic_3 
											location = { province_event = { id = autobuild_startbuilding.627}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nubian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_nubian_2 
											NOT = { has_building = tb_culture_nubian_3 has_building = tb_ab_ph_tb_culture_nubian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nubian_3 
											location = { province_event = { id = autobuild_startbuilding.687}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_baltic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_baltic_2 
											NOT = { has_building = tb_culture_group_baltic_3 has_building = tb_ab_ph_tb_culture_group_baltic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_baltic_3 
											location = { province_event = { id = autobuild_startbuilding.639}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_iberian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_iberian_2 
											NOT = { has_building = tb_culture_group_iberian_3 has_building = tb_ab_ph_tb_culture_group_iberian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_iberian_3 
											location = { province_event = { id = autobuild_startbuilding.647}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_italian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_italian_2 
											NOT = { has_building = tb_culture_italian_3 has_building = tb_ab_ph_tb_culture_italian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_italian_3 
											location = { province_event = { id = autobuild_startbuilding.671}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_russian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_russian_2 
											NOT = { has_building = tb_culture_russian_3 has_building = tb_ab_ph_tb_culture_russian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_russian_3 
											location = { province_event = { id = autobuild_startbuilding.695}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_suebi_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_suebi_2 
											NOT = { has_building = tb_culture_suebi_3 has_building = tb_ab_ph_tb_culture_suebi_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_suebi_3 
											location = { province_event = { id = autobuild_startbuilding.715}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_altaic_jurchen_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_altaic_jurchen_2 
											NOT = { has_building = tb_culture_altaic_jurchen_3 has_building = tb_ab_ph_tb_culture_altaic_jurchen_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_altaic_jurchen_3 
											location = { province_event = { id = autobuild_startbuilding.595}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_byzantine_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_byzantine_2 
											NOT = { has_building = tb_culture_group_byzantine_3 has_building = tb_ab_ph_tb_culture_group_byzantine_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_byzantine_3 
											location = { province_event = { id = autobuild_startbuilding.643}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nahuatl_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_nahuatl_2 
											NOT = { has_building = tb_culture_nahuatl_3 has_building = tb_ab_ph_tb_culture_nahuatl_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nahuatl_3 
											location = { province_event = { id = autobuild_startbuilding.683}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_scottish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_scottish_2 
											NOT = { has_building = tb_culture_scottish_3 has_building = tb_ab_ph_tb_culture_scottish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_scottish_3 
											location = { province_event = { id = autobuild_startbuilding.707}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_west_african_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_west_african_2 
											NOT = { has_building = tb_culture_west_african_3 has_building = tb_ab_ph_tb_culture_west_african_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_west_african_3 
											location = { province_event = { id = autobuild_startbuilding.723}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_steppe_stable_2 
											NOT = { has_building = tb_steppe_stable_3 has_building = tb_ab_ph_tb_steppe_stable_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_stable_3 
											location = { province_event = { id = autobuild_startbuilding.765}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_pictish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_pictish_2 
											NOT = { has_building = tb_culture_pictish_3 has_building = tb_ab_ph_tb_culture_pictish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_pictish_3 
											location = { province_event = { id = autobuild_startbuilding.691}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_shipyard_2 
											NOT = { has_building = tb_shipyard_3 has_building = tb_ab_ph_tb_shipyard_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_shipyard_3 
											location = { province_event = { id = autobuild_startbuilding.757}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_irish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_irish_2 
											NOT = { has_building = tb_culture_irish_3 has_building = tb_ab_ph_tb_culture_irish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_irish_3 
											location = { province_event = { id = autobuild_startbuilding.667}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_coptic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_coptic_2 
											NOT = { has_building = tb_culture_coptic_3 has_building = tb_ab_ph_tb_culture_coptic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_coptic_3 
											location = { province_event = { id = autobuild_startbuilding.611}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_jewish_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_jewish_2 
											NOT = { has_building = tb_culture_jewish_3 has_building = tb_ab_ph_tb_culture_jewish_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_jewish_3 
											location = { province_event = { id = autobuild_startbuilding.675}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_north_germanic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_north_germanic_2 
											NOT = {
												has_building = tb_culture_group_north_germanic_3 
												has_building = tb_ab_ph_tb_culture_group_north_germanic_3 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_north_germanic_3 
											location = { province_event = { id = autobuild_startbuilding.651}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_frank_norman_german_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_frank_norman_german_2 
											NOT = {
												has_building = tb_culture_frank_norman_german_3 
												has_building = tb_ab_ph_tb_culture_frank_norman_german_3 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_frank_norman_german_3 
											location = { province_event = { id = autobuild_startbuilding.623}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_altaic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_altaic_2 
											NOT = { has_building = tb_culture_group_altaic_3 has_building = tb_ab_ph_tb_culture_group_altaic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_altaic_3 
											location = { province_event = { id = autobuild_startbuilding.631}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_animal_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_animal_2 
											NOT = { has_building = tb_culture_animal_3 has_building = tb_ab_ph_tb_culture_animal_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_animal_3 
											location = { province_event = { id = autobuild_startbuilding.599}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_dutch_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_dutch_2 
											NOT = { has_building = tb_culture_dutch_3 has_building = tb_ab_ph_tb_culture_dutch_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_dutch_3 
											location = { province_event = { id = autobuild_startbuilding.615}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_ethiopian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_ethiopian_2 
											NOT = { has_building = tb_culture_ethiopian_3 has_building = tb_ab_ph_tb_culture_ethiopian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_ethiopian_3 
											location = { province_event = { id = autobuild_startbuilding.619}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_saxon_english_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_saxon_english_2 
											NOT = { has_building = tb_culture_saxon_english_3 has_building = tb_ab_ph_tb_culture_saxon_english_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_saxon_english_3 
											location = { province_event = { id = autobuild_startbuilding.703}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_arberian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_arberian_2 
											NOT = { has_building = tb_culture_arberian_3 has_building = tb_ab_ph_tb_culture_arberian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_arberian_3 
											location = { province_event = { id = autobuild_startbuilding.603}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_indian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_indian_2 
											NOT = { has_building = tb_culture_indian_3 has_building = tb_ab_ph_tb_culture_indian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_indian_3 
											location = { province_event = { id = autobuild_startbuilding.663}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_barracks_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_steppe_barracks_2 
											NOT = { has_building = tb_steppe_barracks_3 has_building = tb_ab_ph_tb_steppe_barracks_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_barracks_3 
											location = { province_event = { id = autobuild_startbuilding.761}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_sardinian_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_sardinian_2 
											NOT = { has_building = tb_culture_sardinian_3 has_building = tb_ab_ph_tb_culture_sardinian_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_sardinian_3 
											location = { province_event = { id = autobuild_startbuilding.699}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_arabic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_arabic_2 
											NOT = { has_building = tb_culture_group_arabic_3 has_building = tb_ab_ph_tb_culture_group_arabic_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_arabic_3 
											location = { province_event = { id = autobuild_startbuilding.635}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_somali_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_somali_2 
											NOT = { has_building = tb_culture_somali_3 has_building = tb_ab_ph_tb_culture_somali_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_somali_3 
											location = { province_event = { id = autobuild_startbuilding.711}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_tibetan_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_tibetan_2 
											NOT = { has_building = tb_culture_tibetan_3 has_building = tb_ab_ph_tb_culture_tibetan_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_tibetan_3 
											location = { province_event = { id = autobuild_startbuilding.719}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_desert_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_desert_stable_2 
											NOT = { has_building = tb_desert_stable_3 has_building = tb_ab_ph_tb_desert_stable_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_desert_stable_3 
											location = { province_event = { id = autobuild_startbuilding.731}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_chinese_han_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_chinese_han_2 
											NOT = { has_building = tb_culture_chinese_han_3 has_building = tb_ab_ph_tb_culture_chinese_han_3}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_chinese_han_3 
											location = { province_event = { id = autobuild_startbuilding.607}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_south_slavic_3 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_south_slavic_2 
											NOT = {
												has_building = tb_culture_group_south_slavic_3 
												has_building = tb_ab_ph_tb_culture_group_south_slavic_3 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_south_slavic_3 
											location = { province_event = { id = autobuild_startbuilding.655}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_arsenal_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_arsenal_2 
										NOT = { has_building = tb_arsenal_3 has_building = tb_ab_ph_tb_arsenal_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_arsenal_3 
										location = { province_event = { id = autobuild_startbuilding.591}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = {
										has_building = tb_training_grounds_2 
										NOT = { has_building = tb_training_grounds_3 has_building = tb_ab_ph_tb_training_grounds_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_training_grounds_3 
										location = { province_event = { id = autobuild_startbuilding.769}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_practice_range_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_war_camp_2 
										NOT = {has_building = tb_steppe_barracks_3
											}
										NOT = {location = { terrain = steppe event_target:abet_owner = { OR = { culture_group = altaic culture_group = magyar } }}
											}
										NOT = { has_building = tb_war_camp_3 has_building = tb_ab_ph_tb_war_camp_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_war_camp_3 
										location = { province_event = { id = autobuild_startbuilding.773}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = tb_practice_range_2 
										NOT = {has_building = tb_desert_stable_3
											has_building = tb_steppe_stable_3
											}
										NOT = {location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														culture_group = iranian 
														}
													}
												}
											location = {
												OR = {
													terrain = plains 
													terrain = steppe 
													}
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														}
													}
												}
											}
										NOT = { has_building = tb_practice_range_3 has_building = tb_ab_ph_tb_practice_range_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_practice_range_3 
										location = { province_event = { id = autobuild_startbuilding.753}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_prestige_at_least_0400 = yes}} 
						IF = {
							limit = { holding_type = tribal}
							IF = {
								limit = { ab_pot_tb_culture_arberian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_arberian_3 
											NOT = { has_building = tb_culture_arberian_4 has_building = tb_ab_ph_tb_culture_arberian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_arberian_4 
											location = { province_event = { id = autobuild_startbuilding.604}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_scottish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_scottish_3 
											NOT = { has_building = tb_culture_scottish_4 has_building = tb_ab_ph_tb_culture_scottish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_scottish_4 
											location = { province_event = { id = autobuild_startbuilding.708}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nubian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_nubian_3 
											NOT = { has_building = tb_culture_nubian_4 has_building = tb_ab_ph_tb_culture_nubian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nubian_4 
											location = { province_event = { id = autobuild_startbuilding.688}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_sardinian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_sardinian_3 
											NOT = { has_building = tb_culture_sardinian_4 has_building = tb_ab_ph_tb_culture_sardinian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_sardinian_4 
											location = { province_event = { id = autobuild_startbuilding.700}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_byzantine_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_byzantine_3 
											NOT = { has_building = tb_culture_group_byzantine_4 has_building = tb_ab_ph_tb_culture_group_byzantine_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_byzantine_4 
											location = { province_event = { id = autobuild_startbuilding.644}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_hungarian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_hungarian_3 
											NOT = { has_building = tb_culture_hungarian_4 has_building = tb_ab_ph_tb_culture_hungarian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_hungarian_4 
											location = { province_event = { id = autobuild_startbuilding.660}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_pictish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_pictish_3 
											NOT = { has_building = tb_culture_pictish_4 has_building = tb_ab_ph_tb_culture_pictish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_pictish_4 
											location = { province_event = { id = autobuild_startbuilding.692}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_iberian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_iberian_3 
											NOT = { has_building = tb_culture_group_iberian_4 has_building = tb_ab_ph_tb_culture_group_iberian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_iberian_4 
											location = { province_event = { id = autobuild_startbuilding.648}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_moors_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_moors_3 
											NOT = { has_building = tb_culture_moors_4 has_building = tb_ab_ph_tb_culture_moors_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_moors_4 
											location = { province_event = { id = autobuild_startbuilding.680}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_steppe_stable_3 
											NOT = { has_building = tb_steppe_stable_4 has_building = tb_ab_ph_tb_steppe_stable_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_stable_4 
											location = { province_event = { id = autobuild_startbuilding.766}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_shipyard_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_shipyard_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_shipyard_3 
											NOT = { has_building = tb_shipyard_4 has_building = tb_ab_ph_tb_shipyard_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_shipyard_4 
											location = { province_event = { id = autobuild_startbuilding.758}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_frank_norman_german_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_frank_norman_german_3 
											NOT = {
												has_building = tb_culture_frank_norman_german_4 
												has_building = tb_ab_ph_tb_culture_frank_norman_german_4 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_frank_norman_german_4 
											location = { province_event = { id = autobuild_startbuilding.624}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_somali_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_somali_3 
											NOT = { has_building = tb_culture_somali_4 has_building = tb_ab_ph_tb_culture_somali_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_somali_4 
											location = { province_event = { id = autobuild_startbuilding.712}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_baltic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_baltic_3 
											NOT = { has_building = tb_culture_group_baltic_4 has_building = tb_ab_ph_tb_culture_group_baltic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_baltic_4 
											location = { province_event = { id = autobuild_startbuilding.640}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_altaic_jurchen_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_altaic_jurchen_3 
											NOT = { has_building = tb_culture_altaic_jurchen_4 has_building = tb_ab_ph_tb_culture_altaic_jurchen_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_altaic_jurchen_4 
											location = { province_event = { id = autobuild_startbuilding.596}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_animal_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_animal_3 
											NOT = { has_building = tb_culture_animal_4 has_building = tb_ab_ph_tb_culture_animal_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_animal_4 
											location = { province_event = { id = autobuild_startbuilding.600}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_saxon_english_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_saxon_english_3 
											NOT = { has_building = tb_culture_saxon_english_4 has_building = tb_ab_ph_tb_culture_saxon_english_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_saxon_english_4 
											location = { province_event = { id = autobuild_startbuilding.704}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_ethiopian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_ethiopian_3 
											NOT = { has_building = tb_culture_ethiopian_4 has_building = tb_ab_ph_tb_culture_ethiopian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_ethiopian_4 
											location = { province_event = { id = autobuild_startbuilding.620}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_jewish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_jewish_3 
											NOT = { has_building = tb_culture_jewish_4 has_building = tb_ab_ph_tb_culture_jewish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_jewish_4 
											location = { province_event = { id = autobuild_startbuilding.676}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_indian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_indian_3 
											NOT = { has_building = tb_culture_indian_4 has_building = tb_ab_ph_tb_culture_indian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_indian_4 
											location = { province_event = { id = autobuild_startbuilding.664}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_suebi_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_suebi_3 
											NOT = { has_building = tb_culture_suebi_4 has_building = tb_ab_ph_tb_culture_suebi_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_suebi_4 
											location = { province_event = { id = autobuild_startbuilding.716}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_south_slavic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_south_slavic_3 
											NOT = {
												has_building = tb_culture_group_south_slavic_4 
												has_building = tb_ab_ph_tb_culture_group_south_slavic_4 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_south_slavic_4 
											location = { province_event = { id = autobuild_startbuilding.656}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_west_african_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_west_african_3 
											NOT = { has_building = tb_culture_west_african_4 has_building = tb_ab_ph_tb_culture_west_african_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_west_african_4 
											location = { province_event = { id = autobuild_startbuilding.724}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_steppe_barracks_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_steppe_barracks_3 
											NOT = { has_building = tb_steppe_barracks_4 has_building = tb_ab_ph_tb_steppe_barracks_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_steppe_barracks_4 
											location = { province_event = { id = autobuild_startbuilding.762}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_ca_culture_coptic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_coptic_3 
											NOT = { has_building = tb_culture_coptic_4 has_building = tb_ab_ph_tb_culture_coptic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_coptic_4 
											location = { province_event = { id = autobuild_startbuilding.612}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_irish_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_irish_3 
											NOT = { has_building = tb_culture_irish_4 has_building = tb_ab_ph_tb_culture_irish_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_irish_4 
											location = { province_event = { id = autobuild_startbuilding.668}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_altaic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_altaic_3 
											NOT = { has_building = tb_culture_group_altaic_4 has_building = tb_ab_ph_tb_culture_group_altaic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_altaic_4 
											location = { province_event = { id = autobuild_startbuilding.632}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_chinese_han_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_chinese_han_3 
											NOT = { has_building = tb_culture_chinese_han_4 has_building = tb_ab_ph_tb_culture_chinese_han_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_chinese_han_4 
											location = { province_event = { id = autobuild_startbuilding.608}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_italian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_italian_3 
											NOT = { has_building = tb_culture_italian_4 has_building = tb_ab_ph_tb_culture_italian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_italian_4 
											location = { province_event = { id = autobuild_startbuilding.672}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_dutch_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_dutch_3 
											NOT = { has_building = tb_culture_dutch_4 has_building = tb_ab_ph_tb_culture_dutch_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_dutch_4 
											location = { province_event = { id = autobuild_startbuilding.616}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_desert_stable_4 = yes}
								IF = {
									limit = { location = { ab_tech_tb_desert_stable_4 = yes}} 
									IF = {
										limit = {
											has_building = tb_desert_stable_3 
											NOT = { has_building = tb_desert_stable_4 has_building = tb_ab_ph_tb_desert_stable_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_desert_stable_4 
											location = { province_event = { id = autobuild_startbuilding.732}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_arabic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_arabic_3 
											NOT = { has_building = tb_culture_group_arabic_4 has_building = tb_ab_ph_tb_culture_group_arabic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_arabic_4 
											location = { province_event = { id = autobuild_startbuilding.636}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_germanic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_germanic_3 
											NOT = { has_building = tb_culture_germanic_4 has_building = tb_ab_ph_tb_culture_germanic_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_germanic_4 
											location = { province_event = { id = autobuild_startbuilding.628}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_group_north_germanic_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_group_north_germanic_3 
											NOT = {
												has_building = tb_culture_group_north_germanic_4 
												has_building = tb_ab_ph_tb_culture_group_north_germanic_4 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_group_north_germanic_4 
											location = { province_event = { id = autobuild_startbuilding.652}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_russian_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_russian_3 
											NOT = { has_building = tb_culture_russian_4 has_building = tb_ab_ph_tb_culture_russian_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_russian_4 
											location = { province_event = { id = autobuild_startbuilding.696}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_nahuatl_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_nahuatl_3 
											NOT = { has_building = tb_culture_nahuatl_4 has_building = tb_ab_ph_tb_culture_nahuatl_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_nahuatl_4 
											location = { province_event = { id = autobuild_startbuilding.684}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { ab_pot_tb_culture_tibetan_4 = yes}
								IF = {
									limit = { location = { ab_tech_ca_barracks_3 = yes}} 
									IF = {
										limit = {
											has_building = tb_culture_tibetan_3 
											NOT = { has_building = tb_culture_tibetan_4 has_building = tb_ab_ph_tb_culture_tibetan_4}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_building = tb_ab_ph_workers_camp 
											add_building = tb_ab_ph_tb_culture_tibetan_4 
											location = { province_event = { id = autobuild_startbuilding.720}} 
											break = yes 
											}
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_arsenal_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_arsenal_3 
										NOT = { has_building = tb_arsenal_4 has_building = tb_ab_ph_tb_arsenal_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_arsenal_4 
										location = { province_event = { id = autobuild_startbuilding.592}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_ca_keep_2 = yes}} 
								IF = {
									limit = {
										has_building = tb_training_grounds_3 
										NOT = { has_building = tb_training_grounds_4 has_building = tb_ab_ph_tb_training_grounds_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_training_grounds_4 
										location = { province_event = { id = autobuild_startbuilding.770}} 
										break = yes 
										}
									}
								}
							IF = {
								limit = { location = { ab_tech_tb_practice_range_4 = yes}} 
								IF = {
									limit = {
										has_building = tb_practice_range_3 
										NOT = {has_building = tb_steppe_stable_4
											has_building = tb_desert_stable_4
											}
										NOT = {location = {
												OR = {
													terrain = plains 
													terrain = steppe 
													}
												event_target:abet_owner = {
													OR = {
														culture_group = altaic 
														culture_group = magyar 
														culture = alan 
														}
													}
												}
											location = {
												terrain = desert 
												event_target:abet_owner = {
													OR = {
														culture_group = east_african 
														culture_group = west_african 
														culture_group = arabic 
														culture_group = iranian 
														}
													}
												}
											}
										NOT = { has_building = tb_practice_range_4 has_building = tb_ab_ph_tb_practice_range_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_practice_range_4 
										location = { province_event = { id = autobuild_startbuilding.754}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = tb_war_camp_3 
										NOT = {has_building = tb_steppe_barracks_4
											}
										NOT = {location = { terrain = steppe event_target:abet_owner = { OR = { culture_group = altaic culture_group = magyar } }}
											}
										NOT = { has_building = tb_war_camp_4 has_building = tb_ab_ph_tb_war_camp_4}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = tb_ab_ph_workers_camp 
										add_building = tb_ab_ph_tb_war_camp_4 
										location = { province_event = { id = autobuild_startbuilding.774}} 
										break = yes 
										}
									}
								}
							}
						}
					}
				}
			any_hospital = {
				IF = {
					limit = { ab_has_no_camp_hospital = yes}
					county = { owner = { save_event_target_as = abet_owner}} 
					ab_flag_province_tech = yes 
					save_event_target_as = abet_location 
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0250 = yes}} 
						IF = {
							limit = { ab_preq_library_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_soup_kitchen_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = soup_kitchen_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_soup_kitchen_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_soup_kitchen_1}
											province_event = { id = autobuild_startbuilding.308}
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_hospital_building_1 = yes}
							IF = {
								limit = { ab_tech_soup_kitchen_1 = yes}
								IF = {
									limit = {
										NOT = {
											hospital_has_building = hospital_building_1 
											hospital_has_building = ho_ab_ph_workers_camp 
											hospital_has_building = ho_ab_ph_hospital_building_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
										add_to_extra_holding = { type = hospital building = ho_ab_ph_hospital_building_1}
										province_event = { id = autobuild_startbuilding.297}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0300 = yes}} 
						IF = {
							limit = { ab_preq_library_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_soup_kitchen_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = leper_colony_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_leper_colony_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_leper_colony_1}
											province_event = { id = autobuild_startbuilding.302}
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0400 = yes}} 
						IF = {
							limit = { ab_preq_translation_house_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_library_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = translation_house_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_translation_house_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_translation_house_1}
											province_event = { id = autobuild_startbuilding.309}
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { ab_preq_observatory_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_observatory_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = observatory_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_observatory_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_observatory_1}
											province_event = { id = autobuild_startbuilding.305}
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { ab_preq_library_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_library_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = pilgrims_inn_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_pilgrims_inn_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_pilgrims_inn_1}
											province_event = { id = autobuild_startbuilding.307}
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0450 = yes}} 
						IF = {
							limit = { ab_preq_library_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_library_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = library_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_library_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_library_1}
											province_event = { id = autobuild_startbuilding.303}
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { ab_preq_pharmacology_laboratory_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_observatory_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = pharmacology_laboratory_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_pharmacology_laboratory_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_pharmacology_laboratory_1}
											province_event = { id = autobuild_startbuilding.306}
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0500 = yes}} 
						IF = {
							limit = { ab_preq_medical_academy_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_observatory_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = medical_academy_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_medical_academy_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_medical_academy_1}
											province_event = { id = autobuild_startbuilding.304}
											break = yes 
											}
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_observatory_1 = yes}
							IF = {
								limit = { ab_tech_library_1 = yes}
								IF = {
									limit = {
										hospital_has_building = hospital_building_1 
										NOT = {
											hospital_has_building = hospital_building_2 
											hospital_has_building = ho_ab_ph_workers_camp 
											hospital_has_building = ho_ab_ph_hospital_building_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
										add_to_extra_holding = { type = hospital building = ho_ab_ph_hospital_building_2}
										province_event = { id = autobuild_startbuilding.298}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0600 = yes}} 
						IF = {
							limit = { ab_preq_library_1 = yes}
							IF = {
								limit = { ab_pot_observatory_1 = yes}
								IF = {
									limit = { ab_tech_library_1 = yes}
									IF = {
										limit = {
											NOT = {
												hospital_has_building = chapel_1 
												hospital_has_building = ho_ab_ph_workers_camp 
												hospital_has_building = ho_ab_ph_chapel_1 
												}
											}
										IF = {
											limit = { autobuild_not_selected_building = yes}
											autobuild_select_building = yes 
											add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
											add_to_extra_holding = { type = hospital building = ho_ab_ph_chapel_1}
											province_event = { id = autobuild_startbuilding.296}
											break = yes 
											}
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_1000 = yes}} 
						IF = {
							limit = { ab_pot_observatory_1 = yes}
							IF = {
								limit = { ab_tech_observatory_1 = yes}
								IF = {
									limit = {
										hospital_has_building = hospital_building_2 
										NOT = {
											hospital_has_building = hospital_building_3 
											hospital_has_building = ho_ab_ph_workers_camp 
											hospital_has_building = ho_ab_ph_hospital_building_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
										add_to_extra_holding = { type = hospital building = ho_ab_ph_hospital_building_3}
										province_event = { id = autobuild_startbuilding.299}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_2000 = yes}} 
						IF = {
							limit = { ab_pot_observatory_1 = yes}
							IF = {
								limit = { ab_tech_hospital_building_4 = yes}
								IF = {
									limit = {
										hospital_has_building = hospital_building_3 
										NOT = {
											hospital_has_building = hospital_building_4 
											hospital_has_building = ho_ab_ph_workers_camp 
											hospital_has_building = ho_ab_ph_hospital_building_4 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
										add_to_extra_holding = { type = hospital building = ho_ab_ph_hospital_building_4}
										province_event = { id = autobuild_startbuilding.300}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_4000 = yes}} 
						IF = {
							limit = { ab_pot_observatory_1 = yes}
							IF = {
								limit = { ab_tech_hospital_building_5 = yes}
								IF = {
									limit = {
										hospital_has_building = hospital_building_4 
										NOT = {
											hospital_has_building = hospital_building_5 
											hospital_has_building = ho_ab_ph_workers_camp 
											hospital_has_building = ho_ab_ph_hospital_building_5 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = hospital building = ho_ab_ph_workers_camp}
										add_to_extra_holding = { type = hospital building = ho_ab_ph_hospital_building_5}
										province_event = { id = autobuild_startbuilding.301}
										break = yes 
										}
									}
								}
							}
						}
					}
				}
			any_trade_post = {
				IF = {
					limit = { ab_has_no_camp_trade_post = yes}
					trade_post_owner = { save_event_target_as = abet_owner}
					ab_flag_province_tech = yes 
					save_event_target_as = abet_location 
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0100 = yes}} 
						IF = {
							limit = { ab_pot_tr_garrison_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_1 = yes}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = tr_enclave_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_enclave_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_enclave_1}
										province_event = { id = autobuild_startbuilding.567}
										break = yes 
										}
									}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = tr_garrison_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_garrison_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_garrison_1}
										province_event = { id = autobuild_startbuilding.570}
										break = yes 
										}
									}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = tr_port_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_port_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_port_1}
										province_event = { id = autobuild_startbuilding.576}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_gold_mine_1 = yes}
							IF = {
								limit = {
									NOT = {
										trade_post_has_building = tr_gold_mine_1 
										trade_post_has_building = tr_ab_ph_workers_camp 
										trade_post_has_building = tr_ab_ph_tr_gold_mine_1 
										}
									}
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
									add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_gold_mine_1}
									province_event = { id = autobuild_startbuilding.573}
									break = yes 
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0150 = yes}} 
						IF = {
							limit = { ab_pot_radhanite_quarter_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_2 = yes}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = radhanite_quarter_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_radhanite_quarter_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_radhanite_quarter_1}
										province_event = { id = autobuild_startbuilding.563}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_garrison_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_1 = yes}
								IF = {
									limit = {
										trade_post_has_building = tr_garrison_1 
										NOT = {
											trade_post_has_building = tr_garrison_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_garrison_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_garrison_2}
										province_event = { id = autobuild_startbuilding.571}
										break = yes 
										}
									}
								IF = {
									limit = {
										trade_post_has_building = tr_enclave_1 
										NOT = {
											trade_post_has_building = tr_enclave_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_enclave_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_enclave_2}
										province_event = { id = autobuild_startbuilding.568}
										break = yes 
										}
									}
								IF = {
									limit = {
										trade_post_has_building = tr_port_1 
										NOT = {
											trade_post_has_building = tr_port_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_port_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_port_2}
										province_event = { id = autobuild_startbuilding.577}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0200 = yes}} 
						IF = {
							limit = { ab_pot_mercenary_garrison_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_2 = yes}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = mercenary_garrison_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_mercenary_garrison_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_mercenary_garrison_1}
										province_event = { id = autobuild_startbuilding.560}
										break = yes 
										}
									}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = tr_silk_road_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_silk_road_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_silk_road_1}
										province_event = { id = autobuild_startbuilding.583}
										break = yes 
										}
									}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = trade_offices_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_trade_offices_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_trade_offices_1}
										province_event = { id = autobuild_startbuilding.586}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_garrison_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_1 = yes}
								IF = {
									limit = {
										trade_post_has_building = tr_garrison_2 
										NOT = {
											trade_post_has_building = tr_garrison_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_garrison_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_garrison_3}
										province_event = { id = autobuild_startbuilding.572}
										break = yes 
										}
									}
								IF = {
									limit = {
										trade_post_has_building = tr_enclave_2 
										NOT = {
											trade_post_has_building = tr_enclave_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_enclave_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_enclave_3}
										province_event = { id = autobuild_startbuilding.569}
										break = yes 
										}
									}
								IF = {
									limit = {
										trade_post_has_building = tr_port_2 
										NOT = {
											trade_post_has_building = tr_port_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_port_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_port_3}
										province_event = { id = autobuild_startbuilding.578}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_cloth_production_1 = yes}
							IF = {
								limit = { ab_tech_ct_port_2 = yes}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = tr_cloth_production_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_cloth_production_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_cloth_production_1}
										province_event = { id = autobuild_startbuilding.566}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_sahara_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_2 = yes}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = tr_sahara_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_sahara_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_sahara_1}
										province_event = { id = autobuild_startbuilding.579}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0250 = yes}} 
						IF = {
							limit = { ab_pot_radhanite_quarter_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_3 = yes}
								IF = {
									limit = {
										trade_post_has_building = radhanite_quarter_1 
										NOT = {
											trade_post_has_building = radhanite_quarter_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_radhanite_quarter_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_radhanite_quarter_2}
										province_event = { id = autobuild_startbuilding.564}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_salt_mine_1 = yes}
							IF = {
								limit = { ab_tech_tr_salt_mine_1 = yes}
								IF = {
									limit = {
										NOT = {
											trade_post_has_building = tr_salt_mine_1 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_salt_mine_1 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_salt_mine_1}
										province_event = { id = autobuild_startbuilding.582}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0350 = yes}} 
						IF = {
							limit = { ab_pot_radhanite_quarter_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_4 = yes}
								IF = {
									limit = {
										trade_post_has_building = radhanite_quarter_2 
										NOT = {
											trade_post_has_building = radhanite_quarter_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_radhanite_quarter_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_radhanite_quarter_3}
										province_event = { id = autobuild_startbuilding.565}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0400 = yes}} 
						IF = {
							limit = { ab_pot_mercenary_garrison_3 = yes}
							IF = {
								limit = { ab_tech_tr_sahara_2 = yes}
								IF = {
									limit = {
										trade_post_has_building = mercenary_garrison_1 
										NOT = {
											trade_post_has_building = mercenary_garrison_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_mercenary_garrison_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_mercenary_garrison_2}
										province_event = { id = autobuild_startbuilding.561}
										break = yes 
										}
									}
								IF = {
									limit = {
										trade_post_has_building = tr_silk_road_1 
										NOT = {
											trade_post_has_building = tr_silk_road_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_silk_road_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_silk_road_2}
										province_event = { id = autobuild_startbuilding.584}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_gold_mine_3 = yes}
							IF = {
								limit = { ab_tech_tr_gold_mine_2 = yes}
								IF = {
									limit = {
										trade_post_has_building = tr_gold_mine_1 
										NOT = {
											trade_post_has_building = tr_gold_mine_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_gold_mine_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_gold_mine_2}
										province_event = { id = autobuild_startbuilding.574}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_sahara_3 = yes}
							IF = {
								limit = { ab_tech_tr_sahara_2 = yes}
								IF = {
									limit = {
										trade_post_has_building = tr_sahara_1 
										NOT = {
											trade_post_has_building = tr_sahara_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_sahara_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_sahara_2}
										province_event = { id = autobuild_startbuilding.580}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0600 = yes}} 
						IF = {
							limit = { ab_pot_mercenary_garrison_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_4 = yes}
								IF = {
									limit = {
										trade_post_has_building = mercenary_garrison_2 
										NOT = {
											trade_post_has_building = mercenary_garrison_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_mercenary_garrison_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_mercenary_garrison_3}
										province_event = { id = autobuild_startbuilding.562}
										break = yes 
										}
									}
								}
							IF = {
								limit = { ab_tech_tr_sahara_2 = yes}
								IF = {
									limit = {
										trade_post_has_building = trade_offices_1 
										NOT = {
											trade_post_has_building = trade_offices_2 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_trade_offices_2 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_trade_offices_2}
										province_event = { id = autobuild_startbuilding.587}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0800 = yes}} 
						IF = {
							limit = { ab_pot_mercenary_garrison_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_4 = yes}
								IF = {
									limit = {
										trade_post_has_building = tr_silk_road_2 
										NOT = {
											trade_post_has_building = tr_silk_road_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_silk_road_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_silk_road_3}
										province_event = { id = autobuild_startbuilding.585}
										break = yes 
										}
									}
								}
							}
						IF = {
							limit = { ab_pot_tr_sahara_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_4 = yes}
								IF = {
									limit = {
										trade_post_has_building = tr_sahara_2 
										NOT = {
											trade_post_has_building = tr_sahara_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_sahara_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_sahara_3}
										province_event = { id = autobuild_startbuilding.581}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_1000 = yes}} 
						IF = {
							limit = { ab_pot_tr_gold_mine_3 = yes}
							IF = {
								limit = { ab_tech_tr_gold_mine_3 = yes}
								IF = {
									limit = {
										trade_post_has_building = tr_gold_mine_2 
										NOT = {
											trade_post_has_building = tr_gold_mine_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_tr_gold_mine_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_tr_gold_mine_3}
										province_event = { id = autobuild_startbuilding.575}
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_1200 = yes}} 
						IF = {
							limit = { ab_pot_mercenary_garrison_3 = yes}
							IF = {
								limit = { ab_tech_ct_port_4 = yes}
								IF = {
									limit = {
										trade_post_has_building = trade_offices_2 
										NOT = {
											trade_post_has_building = trade_offices_3 
											trade_post_has_building = tr_ab_ph_workers_camp 
											trade_post_has_building = tr_ab_ph_trade_offices_3 
											}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_workers_camp}
										add_to_extra_holding = { type = trade_post building = tr_ab_ph_trade_offices_3}
										province_event = { id = autobuild_startbuilding.588}
										break = yes 
										}
									}
								}
							}
						}
					}
				}
			save_event_target_as = abet_owner 
			family_palace = {
				IF = {
					limit = { ab_has_no_camp_family_palace = yes}
					save_event_target_as = abet_holding 
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0150 = yes}} 
						IF = {
							limit = { location = { ab_tech_ca_town_2 = yes}} 
							IF = {
								limit = { NOT = { has_building = fp_warehouse_1 has_building = fp_ab_ph_fp_warehouse_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_warehouse_1 
									location = { province_event = { id = autobuild_startbuilding.293}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_garden_1 has_building = fp_ab_ph_fp_garden_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_garden_1 
									location = { province_event = { id = autobuild_startbuilding.274}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_vault_1 has_building = fp_ab_ph_fp_vault_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_vault_1 
									location = { province_event = { id = autobuild_startbuilding.290}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_barracks_1 has_building = fp_ab_ph_fp_barracks_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_barracks_1 
									location = { province_event = { id = autobuild_startbuilding.265}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_stable_1 has_building = fp_ab_ph_fp_stable_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_stable_1 
									location = { province_event = { id = autobuild_startbuilding.287}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_cellar_1 has_building = fp_ab_ph_fp_cellar_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_cellar_1 
									location = { province_event = { id = autobuild_startbuilding.271}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_bowyer_1 has_building = fp_ab_ph_fp_bowyer_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_bowyer_1 
									location = { province_event = { id = autobuild_startbuilding.268}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_shrine_1 has_building = fp_ab_ph_fp_shrine_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_shrine_1 
									location = { province_event = { id = autobuild_startbuilding.284}} 
									break = yes 
									}
								}
							IF = {
								limit = { NOT = { has_building = fp_shipyard_1 has_building = fp_ab_ph_fp_shipyard_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_shipyard_1 
									location = { province_event = { id = autobuild_startbuilding.281}} 
									break = yes 
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0200 = yes}} 
						IF = {
							limit = { location = { ab_tech_ca_town_2 = yes}} 
							IF = {
								limit = { NOT = { has_building = fp_mansion_1 has_building = fp_ab_ph_fp_mansion_1}} 
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_mansion_1 
									location = { province_event = { id = autobuild_startbuilding.277}} 
									break = yes 
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0250 = yes}} 
						IF = {
							limit = { ab_preq_fp_vault_2 = yes}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = {
										has_building = fp_warehouse_1 
										NOT = { has_building = fp_warehouse_2 has_building = fp_ab_ph_fp_warehouse_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_warehouse_2 
										location = { province_event = { id = autobuild_startbuilding.294}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_garden_1 
										NOT = { has_building = fp_garden_2 has_building = fp_ab_ph_fp_garden_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_garden_2 
										location = { province_event = { id = autobuild_startbuilding.275}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_vault_1 
										NOT = { has_building = fp_vault_2 has_building = fp_ab_ph_fp_vault_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_vault_2 
										location = { province_event = { id = autobuild_startbuilding.291}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_stable_1 
										NOT = { has_building = fp_stable_2 has_building = fp_ab_ph_fp_stable_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_stable_2 
										location = { province_event = { id = autobuild_startbuilding.288}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_cellar_1 
										NOT = { has_building = fp_cellar_2 has_building = fp_ab_ph_fp_cellar_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_cellar_2 
										location = { province_event = { id = autobuild_startbuilding.272}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_shipyard_1 
										NOT = { has_building = fp_shipyard_2 has_building = fp_ab_ph_fp_shipyard_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_shipyard_2 
										location = { province_event = { id = autobuild_startbuilding.282}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_shrine_1 
										NOT = { has_building = fp_shrine_2 has_building = fp_ab_ph_fp_shrine_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_shrine_2 
										location = { province_event = { id = autobuild_startbuilding.285}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_bowyer_1 
										NOT = { has_building = fp_bowyer_2 has_building = fp_ab_ph_fp_bowyer_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_bowyer_2 
										location = { province_event = { id = autobuild_startbuilding.269}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_barracks_1 
										NOT = { has_building = fp_barracks_2 has_building = fp_ab_ph_fp_barracks_2}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_barracks_2 
										location = { province_event = { id = autobuild_startbuilding.266}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0300 = yes}} 
						IF = {
							limit = { location = { ab_tech_ca_town_2 = yes}} 
							IF = {
								limit = {
									has_building = fp_mansion_1 
									NOT = { has_building = fp_mansion_2 has_building = fp_ab_ph_fp_mansion_2}
									}
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_mansion_2 
									location = { province_event = { id = autobuild_startbuilding.278}} 
									break = yes 
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0350 = yes}} 
						IF = {
							limit = { ab_preq_fp_vault_3 = yes}
							IF = {
								limit = { location = { ab_tech_ca_town_2 = yes}} 
								IF = {
									limit = {
										has_building = fp_warehouse_2 
										NOT = { has_building = fp_warehouse_3 has_building = fp_ab_ph_fp_warehouse_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_warehouse_3 
										location = { province_event = { id = autobuild_startbuilding.295}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_garden_2 
										NOT = { has_building = fp_garden_3 has_building = fp_ab_ph_fp_garden_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_garden_3 
										location = { province_event = { id = autobuild_startbuilding.276}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_vault_2 
										NOT = { has_building = fp_vault_3 has_building = fp_ab_ph_fp_vault_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_vault_3 
										location = { province_event = { id = autobuild_startbuilding.292}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_stable_2 
										NOT = { has_building = fp_stable_3 has_building = fp_ab_ph_fp_stable_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_stable_3 
										location = { province_event = { id = autobuild_startbuilding.289}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_shipyard_2 
										NOT = { has_building = fp_shipyard_3 has_building = fp_ab_ph_fp_shipyard_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_shipyard_3 
										location = { province_event = { id = autobuild_startbuilding.283}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_cellar_2 
										NOT = { has_building = fp_cellar_3 has_building = fp_ab_ph_fp_cellar_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_cellar_3 
										location = { province_event = { id = autobuild_startbuilding.273}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_bowyer_2 
										NOT = { has_building = fp_bowyer_3 has_building = fp_ab_ph_fp_bowyer_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_bowyer_3 
										location = { province_event = { id = autobuild_startbuilding.270}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_shrine_2 
										NOT = { has_building = fp_shrine_3 has_building = fp_ab_ph_fp_shrine_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_shrine_3 
										location = { province_event = { id = autobuild_startbuilding.286}} 
										break = yes 
										}
									}
								IF = {
									limit = {
										has_building = fp_barracks_2 
										NOT = { has_building = fp_barracks_3 has_building = fp_ab_ph_fp_barracks_3}
										}
									IF = {
										limit = { autobuild_not_selected_building = yes}
										autobuild_select_building = yes 
										add_building = fp_ab_ph_workers_camp 
										add_building = fp_ab_ph_fp_barracks_3 
										location = { province_event = { id = autobuild_startbuilding.267}} 
										break = yes 
										}
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0400 = yes}} 
						IF = {
							limit = { location = { ab_tech_ca_town_2 = yes}} 
							IF = {
								limit = {
									has_building = fp_mansion_2 
									NOT = { has_building = fp_mansion_3 has_building = fp_ab_ph_fp_mansion_3}
									}
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_mansion_3 
									location = { province_event = { id = autobuild_startbuilding.279}} 
									break = yes 
									}
								}
							}
						}
					IF = {
						limit = { ROOT = { ab_available_gold_at_least_0500 = yes}} 
						IF = {
							limit = { location = { ab_tech_ca_town_2 = yes}} 
							IF = {
								limit = {
									has_building = fp_mansion_3 
									NOT = { has_building = fp_mansion_4 has_building = fp_ab_ph_fp_mansion_4}
									}
								IF = {
									limit = { autobuild_not_selected_building = yes}
									autobuild_select_building = yes 
									add_building = fp_ab_ph_workers_camp 
									add_building = fp_ab_ph_fp_mansion_4 
									location = { province_event = { id = autobuild_startbuilding.280}} 
									break = yes 
									}
								}
							}
						}
					}
				}
			}
		ab_abcf_trigger_repeat = yes 
		}
	option = {}
	}
