bos_underground_construction_decisions = {
	bos_underground_training_boost_decision = {
			icon = GFX_decision_army_helmet
			fire_only_once = no
			days_remove = 100
			custom_cost_trigger = {
				command_power > 24
			}
			custom_cost_text = command_power_more_than_25
			# days_re_enable = 5
			ai_will_do = {
				base = 0 ##temporary
			}
			available = {
				has_completed_focus = bos_nf_filled_with_purpose
				has_manpower > 99
				BOS_has_x_available_administration_capacity = yes
				BOS_has_1_available_paladins = yes
			}
			modifier = {
				bos_administration_capacity_usage = 1
				training_time_army_factor = -0.2
				minimum_training_level = 0.1
			}
			complete_effect = {
				hidden_effect = {
					add_command_power = -25
					add_to_variable = {
						var = bos_paladins_ready
						value = -1
						tooltip = paladin_math_tooltip
					}
				}
				add_manpower = -100

			}
			remove_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				random_list = {
					90 = {
						add_manpower = 100
						modifier = {
							factor = 2
							BOS_has_safety_department = yes
						}
					}
					10 = {
						add_manpower = 95
					}
				}
			}
		}
}
stronger_lost_hills_decisions = {
	bos_create_paladins = {
		icon = GFX_decision_t51
		fire_only_once = no
		days_remove = 5
		# days_re_enable = 5
		ai_will_do = {
			base = 0
			modifier = {
				BOS = {
					check_variable = {
						var = BOS_paladins_ready
						value = 3
						compare = greater_than_or_equals
					}
				} 
				factor = 1
				add = 500
			}
		}
		available = {
			has_manpower > 220
			BOS_has_1_available_paladins = yes
		}
		complete_effect = {
			add_manpower = -220
		}
		modifier = {
		}
		remove_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = -1
			}
			add_to_variable = {
				var = BOS_paladins_deployed
				value = 1
			}
			IF = {
				limit = {
					NOT = {
						has_template_containing_unit = Paladin_unit
					}
				}
				division_template = {
					name = "Brotherhood Paladins"					#CW Tools - False positive? Wiki says that "name" is correct here and not "division name"
					is_locked = yes
					division_names_group = BOS_INF_03
					priority = 2
					template_counter = 0
					regiments = {
						Paladin_unit = {
							x = 0
							y = 0
						}
						Paladin_unit = {
							x = 0
							y = 1
						}
						Paladin_unit = {
							x = 1
							y = 0
						}
						Paladin_unit = {
							x = 1
							y = 1
						}
						Paladin_demo_unit = {
							x = 2
							y = 0
						}
						Paladin_fireteam_unit = {
							x = 2
							y = 1
						}
						Paladin_demo_unit = {
							x = 0
							y = 2
						}
						Paladin_fireteam_unit = {
							x = 1
							y = 2
						}
					}
					support = {
						knight_support_unit = {
							x = 0
							y = 0
						}
						knight_support_unit = {
							x = 1
							y = 0
						}
						scribe_support_unit = {
							x = 2
							y = 0
						}
						scribe_support_unit = {
							x = 3
							y = 0
						}
					}
				}
			}
			random_owned_controlled_state = {
				create_unit = {
					#CW Tools - False positive? "name = \"Infantry Division\" is the correct format given by the wiki.
					division = "division_template = \"Brotherhood Paladins\" start_experience_factor = 0.75 start_equipment_factor = 1" ## 0 doesn't work.
					owner = BOS
				}
			}
		}
	}
	bos_return_paladins = {
			icon = GFX_decision_t51
			fire_only_once = no
			days_remove = 5
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				has_template_containing_unit = Paladin_unit
				has_war = no
				custom_trigger_tooltip = {
					tooltip = bos_sent_volunteers_check
					NOT = {
						any_of_scopes = {
							array = global.bos_ledger_members
							
							has_volunteers_amount_from = {
							tag = BOS
							count > 0
							}
						}
					}
				}
			
				
			}
			visible = {
				has_template_containing_unit = Paladin_unit
			}
			complete_effect = {
			}

			modifier = {
			}
			remove_effect = {
				if = {
					limit = {
						has_global_flag = debug_logs
					}
					log = "[GetDateText]: [Root.GetName] recall paladins entered"
				}
				set_temp_variable = {
					tempready = num_battalions_with_type@paladin_unit
				}
				divide_temp_variable = {
					tempready = 4
				}
				add_to_variable = {
					var = BOS_paladins_ready
					value = tempready
				}
				multiply_temp_variable = {
					var = tempready
					value = 220
				}
				add_manpower = tempready
				delete_unit_template_and_units = {
					division_template = "Brotherhood Paladins"
					disband = no			#would refund equipment and manpower. There is an exploit here to turn pipeguns into plasma rifles.
				}
				set_temp_variable = {
					tempdeplo = BOS_paladins_deployed
				}
				set_temp_variable = {
					tempactual = num_battalions_with_type@Paladin_unit
				}
				divide_temp_variable = {
					tempactual = 4
				}
				subtract_from_temp_variable = {
					tempdelpo = tempactual
				}
				add_to_variable = {
					var = BOS_paladins_casulties
					value = tempdeplo
				}
				set_variable = {
					var = BOS_paladins_deployed
					value = 0
				}
				if = {
					limit = {
						has_global_flag = debug_logs
					}
					log = "[GetDateText]: [Root.GetName] recall paladins  exited"
				}
			}
			ai_will_do = {
				factor = 0
			}
		}
	bos_mercenary_work = {
		days_remove = 90
		# days_re_enable = 5
		allowed = {
		}
		available = {		
			BOS={
				ruler > 0.25
			}
			BOS_has_1_available_paladins = yes	
			country_exists = NCR
			NOT = {
				BOS = {
					has_war_with = NCR
				}
				BOS = {
					has_completed_focus = bos_nf_preparing_for_the_ceasefires_end
				}
				check_variable = {
					bos_tension > 90
				}
			}
		}
		visible = {
			NOT = {
				has_completed_focus = bos_nf_preparing_for_the_ceasefires_end
			}
		}
		cancel_trigger = {
			OR = {
				BOS = {
					ruler < 0.25
				}
				BOS = {
					has_war_with = NCR
				}
				BOS = {
					has_completed_focus = bos_nf_preparing_for_the_ceasefires_end
				}
				check_variable = {
					bos_tension > 90
				}
			}
		}
		cancel_effect = {
			add_to_variable = {
				var = bos_paladins_ready
				value = +1
				tooltip = paladin_math_tooltip
			}
		}
		complete_effect = {
			add_to_variable = {
				var = bos_paladins_ready
				value = -1
			}
			
		}
		remove_effect = {
			set_variable = { pre_caps_to_add = 35}
			set_variable = { mercenary_work_multiplier = 100}
			subtract_from_variable = {
				mercenary_work_multiplier = bos_tension
			}
			divide_variable = {
				var = mercenary_work_multiplier
				value = 100
			}
			multiply_variable = {
				var = pre_caps_to_add
				value = mercenary_work_multiplier
			}

			add_to_variable = {
				var = bos_paladins_ready
				value = +1
				tooltip = paladin_math_tooltip
			}
			set_temp_variable = {caps_to_add = pre_caps_to_add}
			log = "Current value of pre_caps_to_add in [THIS.GetName]: [?pre_caps_to_add]"
			add_caps = yes
			set_temp_variable = {
				BOS_tension_to_add = 4
			}
			bos_change_tension = yes
			NCR = {
				set_temp_variable = {
					BOS_tension_to_add = 4
				}
				bos_change_tension = yes
			}
		}
	}
	bos_open_the_market = {
			icon = GFX_decision_single_cap
			fire_only_once = no
			days_remove = 2000
			#days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {	
				BOS = { has_completed_focus = bos_nf_currency_reform
				num_of_controlled_states > 1}
			}
			visible = {
				NOT = {
					OR = {
						has_completed_focus = bos_nf_high_elder_torni_economic_plan
						has_completed_focus = bos_nf_high_elder_llwyd_economic_plan
					}
				}
			}
			modifier = {
				min_export = 0.1
				caps_country_trade_modifier = 0.1
			}	
			complete_effect = {
			}
			cancel_trigger = {
				BOS = {
				has_decision = bos_close_the_market
				}
				OR = {
					has_completed_focus = bos_nf_high_elder_torni_economic_plan
					has_completed_focus = bos_nf_high_elder_llwyd_economic_plan
				}
			}
			modifier = {
			}
			remove_effect = {

			}
			ai_will_do = {
				base = 0 #ai won't do this
			}
		}
	bos_open_the_market_2 = {
			icon = GFX_decision_caf_trade_profits
			fire_only_once = no
			days_remove = 2000
			#days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {	
				BOS = { has_completed_focus = bos_nf_currency_reform_caps
				num_of_controlled_states > 1}
			}
			visible = {
				NOT = {
					OR = {
						has_completed_focus = bos_nf_high_elder_torni_economic_plan
						has_completed_focus = bos_nf_high_elder_llwyd_economic_plan
					}
				}
			}
			modifier = {
				min_export = 0.25
				caps_country_trade_modifier = 0.20
			}	
			complete_effect = {
			}
			cancel_trigger = {
				BOS = {
				has_decision = bos_close_the_market
				}
				OR = {
					has_completed_focus = bos_nf_high_elder_torni_economic_plan
					has_completed_focus = bos_nf_high_elder_llwyd_economic_plan
				}
			}
			modifier = {
			}
			remove_effect = {

			}
			ai_will_do = {
				base = 5 #ai can do this one
			}
	}
	bos_close_the_market = {
		fire_only_once = no
		days_remove = 2
		# days_re_enable = 5
		allowed = {
			tag = BOS
		}
		available = {	
			BOS = { has_completed_focus = bos_nf_currency_reform }
			OR = {
				has_decision = bos_open_the_market
				has_decision = bos_open_the_market_2
			}
			
		}
		visible = {
			NOT = { 
				OR = {
					has_completed_focus = bos_nf_high_elder_torni_economic_plan
					has_completed_focus = bos_nf_high_elder_llwyd_economic_plan
				}
			}
		}
		ai_will_do = {
		factor = 0.8
		}
	}
}
BOS_circle_of_steel_category = {
	BOS_steel_drought = {
			icon = GFX_decision_dirty_water
			fire_only_once = yes
			days_remove = 45
			cost = 50
			allowed = {
				original_tag = BOS
			}
			visible = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}
			available = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
				has_completed_focus = bos_nf_preparing_for_the_ceasefires_end
			}

			remove_effect = {
				NCR = {
					add_resource = {
						type = water
						amount = -12
						state = 1
					}
					set_temp_variable = {
						BOS_tension_to_add = 8
					}
					bos_change_tension = yes		
					custom_effect_tooltip = spacer_tt
					add_ideas = watercrisis
				}
				custom_effect_tooltip = spacer_tt
				set_temp_variable = {
					BOS_tension_to_add = 20
				}
				bos_change_tension = yes	
			}
	}
	BOS_savage_frontier = {
			icon = GFX_decision_raider
			fire_only_once = yes
			days_remove = 45
			cost = 50
			allowed = {
				original_tag = BOS
			}
			visible = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}
			available = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}

			remove_effect = {
				NCR = {
					add_ideas = raiderattacks
				}
			}
	}
	BOS_broken_road = {
			icon = GFX_decision_settler
			fire_only_once = yes
			days_remove = 45
			cost = 50
			allowed = {
				original_tag = BOS
			}
			visible = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}
			available = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
				MOS = {
					exists = no
					NCR = { sphere_controls_all_core_land_of_prev = yes }
				}
			}

			remove_effect = {
				NCR = {
					release = MOS
					declare_war_on = {
						target = MOS
						type = annex_everything
					}
				}
				MOS = {
					hidden_effect = {
						load_oob = dividerebels
					}
				}
			}
	}
	BOS_shattered_mandate = {
			icon = GFX_decision_political_sway
			fire_only_once = yes
			days_remove = 45
			cost = 50
			allowed = {
				original_tag = BOS
			}
			visible = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}
			available = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}

			remove_effect = {
				NCR = {
					add_ideas = internaldiscontent
				}
			}
	}
	BOS_hollow_ledger = {
			icon = GFX_decision_brahmin
			fire_only_once = yes
			days_remove = 45
			cost = 50
			allowed = {
				original_tag = BOS
			}
			visible = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}
			available = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
				has_completed_focus = bos_nf_preparing_for_the_ceasefires_end
			}

			remove_effect = {
				NCR = {
					add_ideas = caravanraids
				}
			}
	}
	BOS_scorched_earth = {
			icon = GFX_decision_pitchfork
			fire_only_once = yes
			days_remove = 45
			cost = 50
			allowed = {
				original_tag = BOS
			}
			visible = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}
			available = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
				has_completed_focus = bos_nf_preparing_for_the_ceasefires_end
				has_decision = BOS_hollow_ledger
			}

			remove_effect = {
				NCR = {
					add_ideas = farmsteadraids
				}
			}
	}
	BOS_false_census = {
			icon = GFX_decision_papers
			fire_only_once = yes
			days_remove = 45
			cost = 50
			allowed = {
				original_tag = BOS
			}
			visible = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
			}
			available = {
				has_completed_focus = bos_nf_circle_of_steel_ncr_spies
				has_completed_focus = bos_nf_preparing_for_the_ceasefires_end
				has_decision = BOS_scorched_earth
			}

			remove_effect = {
				NCR = {
					add_ideas = falsifiedcensus
				}
			}
	}
}
	# bos_new_tension_system = {

		# BOS_forge_production_reports = { #Repeatable decision to reduce Paranoia
			# priority = 310

			##icon = GFX_decision_eng_trade_unions_support

			# ai_will_do = {
				# base = 0
				# modifier = {
					# add = 1
					# check_variable = { bos_tension > 35 }
				# }
				# modifier = {
					# add = 100
					# check_variable = { bos_tension > 75 }
				# }
				# modifier = {
					# factor = 2
					#SOV_is_opposition = yes ##not sure what this did yet
				# }
			# }

			# allowed = {
				# original_tag = BOS
			# }

			# available = {
			# }

			# visible = {
			# }

			# cost = bos_tension_decision_cost

			# days_re_enable = bos_calm_down_ncr_re_enable_days

			# days_remove = 90

			# modifier = {
				# political_power_factor = -0.2
			# }

			# complete_effect = {
				# SOV_paranoia_medium_decrease_effect = yes

				# custom_effect_tooltip = SOV_paranoia_calm_down_stalin_cd_tt
			# }
		# }
	# }
	##Expeditions ##note that all mission-based Expeditions don't actually check you have Paladins on hand - The focus should ensure that.
	bos_new_expeditions = {

		bos_delayed_expedition_small = {
			fire_only_once = no
			days_mission_timeout = 30
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {		
				always = no
			}
			visible = {
			
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
		}
		bos_delayed_expedition_medium = {
			fire_only_once = no
			days_mission_timeout = 90
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
		}
		bos_delayed_expedition_large = {
			fire_only_once = no
			days_mission_timeout = 180
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
		}
		bos_delayed_expedition2_small = {
			fire_only_once = no
			days_mission_timeout = 30
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {		
				always = no
			}
			visible = {
			
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
		}
		bos_delayed_expedition2_medium = {
			fire_only_once = no
			days_mission_timeout = 90
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
		}
		bos_delayed_expedition2_large = {
			fire_only_once = no
			days_mission_timeout = 180
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
		}
		bos_delayed_scribes_small = {
			fire_only_once = no
			days_mission_timeout = 30
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}
			available = {		
				always = no
			}
			visible = {
			
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}

		}
		bos_delayed_scribes_medium = {
			fire_only_once = no
			days_mission_timeout = 90
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
		}
		bos_delayed_scribes_large = {
			fire_only_once = no
			days_mission_timeout = 180 ##immediately transition to timed out
			is_good = yes
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
		}
		bos_expedition_to_the_glow_paladins = {
			fire_only_once = no
			days_mission_timeout = 0
			days_remove = 30
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = -1
				}
			}
			remove_effect = {
				random_list = {
					70 = {
						add_to_variable = {
							var = bos_paladins_ready
							value = +1
							tooltip = paladin_math_tooltip
						}
						country_event = nf_brotherhood_expeditions.201
					}
					30 = {
						add_to_variable = {
							var = bos_paladins_ready
							value = +0
							tooltip = paladin_math_tooltip
						}
						country_event = nf_brotherhood_expeditions.202
					}
				}
			}
		}
		bos_expedition_to_the_glow_ghoul_paladins = {
			fire_only_once = no
			days_mission_timeout = 0
			days_remove = 30
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = -1
				}
			}
			remove_effect = {
				random_list = {
					100 = {
						add_to_variable = {
							var = bos_paladins_ready
							value = +1
							tooltip = paladin_math_tooltip
						}
						country_event = nf_brotherhood_expeditions.205
					}
				}
			}
		}
		bos_expedition_to_the_glow_knights = {
			fire_only_once = no
			days_mission_timeout = 0
			days_remove = 30
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			timeout_effect = {
				add_manpower = -300
			}
			remove_effect = {
				random_list = {
					30 = {
						country_event = nf_brotherhood_expeditions.201
						set_temp_variable = { BOS_train_paladins_num = 1 }
						bos_train_paladins = yes
						add_manpower = 300
						
					}
					70 = {
						country_event = nf_brotherhood_expeditions.206
					}
				}
			}
		}
		bos_buy_ships_from_hawaii = {
			fire_only_once = yes
			days_remove = 45
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			has_navy_experience > 49
			}
			custom_cost_text = naval_xp_more_than_50
			available = {	
				OR = {
				has_idea = bos_trade_with_hawaii
				is_debug = yes
				}
			}
			visible = {
				OR = {
				#has_idea = bos_trade_with_hawaii
				is_debug = yes
				}

			}
			complete_effect = {
				hidden_effect = {
					navy_experience = -50
				}
				set_temp_variable = { caps_to_add = -155 }
				add_caps = yes
			}
			remove_effect = {
				custom_effect_tooltip = bos_12_ships_hawaii_tt
				#hidden_effect = {
				BOS = {
					create_ship = {
						type = ship_hull_light_4
						equipment_variant = ship_hull_light_4
					}
				#}
				}
			}
		}
		bos_expedition_to_anchorage_alone = {
			fire_only_once = no
			days_mission_timeout = 0
			days_remove = 180
			# days_re_enable = 5
			allowed = {
				always = no #performance for this, is triggered by focus only.
			}

			available = {	
				always = no
			}
			visible = {
			}
			timeout_effect = {
				add_to_variable = {
					var = bos_paladins_ready
					value = -2
				}
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
			}
			remove_effect = {
				random_list = {
					15 = {
						add_to_variable = {
							var = bos_paladins_ready
							value = +2
							tooltip = paladin_math_tooltip
						}
						add_to_variable = {
							var = bos_scribes_ready
							value = +1
							tooltip = scribe_math_tooltip
						}
						country_event = nf_brotherhood_expeditions.1105
					}
					65 = {
						add_to_variable = {
							var = bos_paladins_ready
							value = +1
							tooltip = paladin_math_tooltip
						}
						add_to_variable = {
							var = bos_scribes_ready
							value = +1
							tooltip = scribe_math_tooltip
						}
						country_event = nf_brotherhood_expeditions.1105
						country_event = {id = nf_brotherhood_expeditions.1107 days = 12}
					}
					20 = {
						add_to_variable = {
							var = bos_paladins_ready
							value = +0
							tooltip = paladin_math_tooltip
						}
						add_to_variable = {
							var = bos_scribes_ready
							value = +1
							tooltip = scribe_math_tooltip
						}
						country_event = nf_brotherhood_expeditions.1107
					}
				}
			}
		}
	bos_get_more_vertibirds = {
			icon=GFX_decision_vertibird
			targets = {SHI}
			fire_only_once = no
			days_remove = 60
			custom_cost_trigger = {
			has_air_experience > 24
			}
			
			custom_cost_text = air_xp_more_than_25
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes		
				OR = {
					BOS = {has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing}
					BOS = { is_in_faction_with = SHI}
				}
				date < 2285.06.01
				BOS = { has_manpower > 90}
				custom_trigger_tooltip = {
					tooltip = bos_bsf_exists
					country_exists = SHI
				}
			}
			visible = {
				always = yes
			}
			complete_effect = {
				hidden_effect = {
				air_experience = -25
				}
				
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
				add_manpower = -90
			}

			modifier = {
			
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				BOS = {
					add_equipment_to_stockpile = {
						type = vb_gunship_equipment 
						amount = 20
						producer = USA
					}
					add_equipment_to_stockpile = {
						type = vb_transport_plane_equipment
						amount = 5
						producer = USA
					}
					add_manpower = 90
				}
				SHI = {
					country_event = {
					id = nf_brotherhood_communications.5
					days = 1
					}
				}
				
			}
			ai_will_do = {
				base = 1
			}
		}
	bos_get_plasma_rifles = {
			icon = GFX_decision_t51_vb_armor
			fire_only_once = no
			days_remove = 120
			targets = {GRD}
			custom_cost_trigger = {
			has_army_experience > 10 #army XP is more valuable, this is worth 62.5 air xp imho
			}
			custom_cost_text = army_xp_more_than_10 #this should exist in owb loc
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes		
				GRD = {has_completed_focus = grd_guardians_of_the_world_hole}
				BOS = {has_completed_focus = bos_nf_grd_reach_out_to_the_guardians}		
				custom_trigger_tooltip = {
					tooltip = bos_grd_is_in_ledger
					is_in_array = {
						array = global.bos_ledger_members
						value = GRD
					}
				}
				date < 2285.06.01 #Get your own plasma weapons if it's late!
				country_exists = NCR #If the NCR is dead you don't need them that badly!
				BOS = { has_manpower > 300}
			
			}
			visible = {
				always = yes
			}
			complete_effect = {
				hidden_effect = {
				army_experience = -10
				}
				
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
				add_manpower = -300
			}

			modifier = {
			
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				BOS = {
					add_equipment_to_stockpile = {
						type = plasma_equipment_1
						amount = 300
						producer = USA
					}
					add_manpower = 300
				}
				GRD = {
					country_event = {
					id = nf_brotherhood_communications.6 #make this event to tell the Guardians what's going on
					days = 1
					}
				}
				
			}
			ai_will_do = {
				base = 1
			}
	}
	bos_help_moj = {
		icon = GFX_decision_backpack
		fire_only_once = yes
		days_remove = 200
		cost = 50
		# days_re_enable = 5
		allowed = {
			tag = BOS
		}
		available = {
			bos_has_scribe_teams = yes
			custom_trigger_tooltip = {
				tooltip = bos_2_paladins
					BOS = {
						check_variable = {BOS_paladins_ready > 1}
					}
			}
			MOJ = {has_war_with = MOT
			is_ai = yes}
			MOT = {is_ai = yes}
		}
		visible = {
			MOT = {
			is_ai = yes
			}
			hidden_trigger = {
				country_exists = MOT
			}
		}
		complete_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = -2
			}
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
				tooltip = scribe_math_tooltip
			}
			MOJ = {
				add_to_variable = { MOJ.preperation = 15 }
				calculate_preparation = yes
			}
		}

		cancel_trigger = {
		NOT = {country_exists = MOJ}
		}
		cancel_effect = {
			random_list = {
				75 = {
					add_to_variable = {
						var = BOS_paladins_ready
						value = +1
						tooltip = paladin_math_tooltip
					}
				}
				5 = {
					add_to_variable = {
						var = BOS_paladins_ready
						value = +2
						tooltip = paladin_math_tooltip
					}
				}
				20 = {
					add_to_variable = {
						var = BOS_paladins_ready
						value = +0
						tooltip = paladin_math_tooltip
					}
				}
			}
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
		}
		remove_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = +2
				tooltip = paladin_math_tooltip
			}
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
		}
		ai_will_do = {
			base = 1000
		}
	}
	bos_help_mxc = {
		icon = GFX_decision_backpack
		fire_only_once = no
		days_remove = 200
		cost = 50
		# days_re_enable = 5
		allowed = {
			tag = BOS
		}
		available = {
			bos_has_scribe_teams = yes
			custom_trigger_tooltip = {
				tooltip = bos_1_paladins
					BOS = {
						check_variable = {BOS_paladins_ready > 1}
					}
			}
			OR = {
				AND  = {				
					MXC = {has_war_with = HAN
					is_ai = yes}
					HAN = {is_ai = yes}
				}
				AND = {
					MXC = {has_war_with = ROB
					is_ai = yes}
					ROB = {is_ai = yes}
				}
				AND = {
					MXC = {has_war_with = SCO
					is_ai = yes}
					SCO = {is_ai = yes}
				}
			}
		}
		visible = {
			MXC = {is_ai = yes}
			OR = {
				country_exists = ROB
				country_exists = SCO
				country_exists = HAN
			}
		}
		complete_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = -1
			}
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
				tooltip = scribe_math_tooltip
			}
			MXC = {
				add_timed_idea = {
					idea = bos_mxc_advice
					days = 200
				}
			}
		}

		cancel_trigger = {
		NOT = {country_exists = MXC}
		}
		cancel_effect = {
			random_list = {
				70 = {
					add_to_variable = {
						var = BOS_paladins_ready
						value = +1
						tooltip = paladin_math_tooltip
					}
				}
				30 = {
					add_to_variable = {
						var = BOS_paladins_ready
						value = +0
						tooltip = paladin_math_tooltip
					}
				}
			}
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
		}
		remove_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = +1
				tooltip = paladin_math_tooltip
			}
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
		}
		ai_will_do = {
			base = 1000
		}
	}
	}
	##Scribes
	stronger_lost_hills_scribe_council = {
		bos_begin_rd = {
			fire_only_once = yes
			days_remove = 45
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			has_army_experience > 20 #army XP is more valuable, this is worth 62.5 air xp imho
			}
			custom_cost_text = army_xp_more_than_20
			available = {	
				bos_has_scribe_teams = yes
			}
			visible = {
				NOT = {
					has_completed_focus = bos_nf_brotherhood_r_n_d
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				hidden_effect = {
				army_experience = -20
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_brotherhood_r_n_d}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				hidden_effect = {
				army_experience = 20 ##give back the xp we took when the decision started, since the focus will take another 20.
				}
				complete_national_focus = bos_nf_brotherhood_r_n_d
			}
			ai_will_do = {
			base = 100
			}
		}
		bos_begin_air_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_brotherhood_r_n_d
			}
			visible = {
				has_completed_focus = bos_nf_brotherhood_r_n_d
				NOT = {
					has_completed_focus = bos_nf_air_research
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_air_research}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_air_research
			}
			ai_will_do = {
			base = 20
			}
		}
		bos_continue_air_research = {
			fire_only_once = yes
			days_remove = 120
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_air_research
			}
			visible = {
				has_completed_focus = bos_nf_air_research
				NOT = {
					AND = {
					has_completed_focus = bos_nf_lockreed
					has_completed_focus = bos_nf_ball_aerospace
					}
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {
					AND = {
					has_completed_focus = bos_nf_lockreed
					has_completed_focus = bos_nf_ball_aerospace
					}
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_lockreed
				complete_national_focus = bos_nf_ball_aerospace
			}
			ai_will_do = {
			base = 30
			}
		}
		bos_finish_air_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_lockreed
				has_completed_focus = bos_nf_ball_aerospace
			}
			visible = {
				has_completed_focus = bos_nf_lockreed
				has_completed_focus = bos_nf_ball_aerospace
				NOT = {
					has_completed_focus = bos_nf_repconn
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_repconn
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_repconn
			}
			ai_will_do = {
			base = 50	
			}
		}
		bos_begin_industry_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_brotherhood_r_n_d
			}
			visible = {
				has_completed_focus = bos_nf_brotherhood_r_n_d
				NOT = {
					has_completed_focus = bos_nf_industry_research
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_industry_research
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_industry_research
			}
			ai_will_do = {
			base = 20
			}
		}
		bos_continue_industry_research = {
			fire_only_once = yes
			days_remove = 120
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_industry_research
			}
			visible = {
				has_completed_focus = bos_nf_industry_research
				NOT = {
					AND = {
					has_completed_focus = bos_nf_dunwich_borers
					has_completed_focus = bos_nf_hornwright_industrial_mining_company
					}
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					AND = {
					has_completed_focus = bos_nf_dunwich_borers
					has_completed_focus = bos_nf_hornwright_industrial_mining_company
					}
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_dunwich_borers
				complete_national_focus = bos_nf_hornwright_industrial_mining_company
			}
			ai_will_do = {
			base = 30
			}
		}
		bos_finish_industry_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_dunwich_borers
				has_completed_focus = bos_nf_hornwright_industrial_mining_company
			}
			visible = {
				has_completed_focus = bos_nf_dunwich_borers
				has_completed_focus = bos_nf_hornwright_industrial_mining_company
				NOT = {
					has_completed_focus = bos_nf_red_rocket
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_red_rocket
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_red_rocket
			}
			ai_will_do = {
			base = 50	
			}
		}
		bos_begin_robotics_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_brotherhood_r_n_d
			}
			visible = {
				has_completed_focus = bos_nf_brotherhood_r_n_d
				NOT = {
					AND = {
						has_completed_focus = bos_nf_robotics_research
					}
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_robotics_research
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_robotics_research
			}
			ai_will_do = {
			base = 20
			}
		}
		bos_continue_robotics_research = {
			fire_only_once = yes
			days_remove = 120
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_robotics_research
			}
			visible = {
				has_completed_focus = bos_nf_robotics_research
				NOT = {
					AND = {
					has_completed_focus = bos_nf_cerulean_robotics
					has_completed_focus = bos_nf_robco
					}
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					AND = {
					has_completed_focus = bos_nf_cerulean_robotics
					has_completed_focus = bos_nf_robco
					}
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_cerulean_robotics
				complete_national_focus = bos_nf_robco
			}
			ai_will_do = {
			base = 30
			}
		}
		bos_finish_robotics_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_cerulean_robotics
				has_completed_focus = bos_nf_robco
			}
			visible = {
				has_completed_focus = bos_nf_cerulean_robotics
				has_completed_focus = bos_nf_robco
				NOT = {
					has_completed_focus = bos_nf_acme
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_acme
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_acme
			}
			ai_will_do = {
			base = 50	
			}
		}
		bos_begin_theoretical_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_brotherhood_r_n_d
			}
			visible = {
				has_completed_focus = bos_nf_brotherhood_r_n_d
				NOT = {
					has_completed_focus = bos_nf_theoretical_research
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_theoretical_research
				}
				
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_theoretical_research
			}
			ai_will_do = {
			base = 20
			}
		}
		bos_continue_theoretical_research = {
			fire_only_once = yes
			days_remove = 120
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_theoretical_research
			}
			visible = {
				has_completed_focus = bos_nf_theoretical_research
				NOT = {
					AND = {
						has_completed_focus = bos_nf_future_tec
						has_completed_focus = bos_nf_greenway_hydroponics
					}
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					AND = {
					has_completed_focus = bos_nf_future_tec
					has_completed_focus = bos_nf_greenway_hydroponics
					}
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_future_tec
				complete_national_focus = bos_nf_greenway_hydroponics
			}
			ai_will_do = {
			base = 30
			}
		}
		bos_finish_theoretical_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_future_tec
				has_completed_focus = bos_nf_greenway_hydroponics
			}
			visible = {
				has_completed_focus = bos_nf_future_tec
				has_completed_focus = bos_nf_greenway_hydroponics
				NOT = {
					has_completed_focus = bos_nf_virtual_strategic_solutions
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_virtual_strategic_solutions
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_virtual_strategic_solutions
			}
			ai_will_do = {
			base = 50	
			}
		}
		bos_begin_vehicle_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_brotherhood_r_n_d
			}
			visible = {
				has_completed_focus = bos_nf_brotherhood_r_n_d
				NOT = {
					has_completed_focus = bos_nf_vehicle_research
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_vehicle_research
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_vehicle_research
			}
			ai_will_do = {
			base = 20
			}
		}
		bos_continue_vehicle_research = {
			fire_only_once = yes
			days_remove = 120
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_vehicle_research
			}
			visible = {
				has_completed_focus = bos_nf_vehicle_research
				NOT = {
					AND = {
					has_completed_focus = bos_nf_takoma_motors
					has_completed_focus = bos_nf_n_h_and_m_vehicles
					}
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					AND = {
					has_completed_focus = bos_nf_takoma_motors
					has_completed_focus = bos_nf_n_h_and_m_vehicles
					}
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_takoma_motors
				complete_national_focus = bos_nf_n_h_and_m_vehicles
			}
			ai_will_do = {
			base = 30
			}
		}
		bos_finish_vehicle_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_takoma_motors
				has_completed_focus = bos_nf_n_h_and_m_vehicles
			}
			visible = {
				has_completed_focus = bos_nf_takoma_motors
				has_completed_focus = bos_nf_n_h_and_m_vehicles
				NOT = {
					has_completed_focus = bos_nf_chryslus_vehicles
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_chryslus_vehicles
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_chryslus_vehicles
			}
			ai_will_do = {
			base = 50	
			}
		}
		bos_begin_weaponry_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_brotherhood_r_n_d
			}
			visible = {
				has_completed_focus = bos_nf_brotherhood_r_n_d
				NOT = {
					has_completed_focus = bos_nf_weaponry_research
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_weaponry_research
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_weaponry_research
			}
			ai_will_do = {
			base = 20
			}
		}
		bos_continue_weaponry_research = {
			fire_only_once = yes
			days_remove = 120
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_weaponry_research
			}
			visible = {
				has_completed_focus = bos_nf_weaponry_research
				NOT = {
					AND = {
					has_completed_focus = bos_nf_SIG_sauer_weaponry
					has_completed_focus = bos_nf_heckler_and_koch_weaponry
					}
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					AND = {
					has_completed_focus = bos_nf_SIG_sauer_weaponry
					has_completed_focus = bos_nf_heckler_and_koch_weaponry
					}
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_SIG_sauer_weaponry
				complete_national_focus = bos_nf_heckler_and_koch_weaponry
			}
			ai_will_do = {
			base = 30
			}
		}
		bos_finish_weaponry_research = {
			fire_only_once = yes
			days_remove = 60
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				bos_has_scribe_teams = yes
				set_temp_variable = {
					BOS_need_knowledge_num = 1
				}
				bos_has_x_knowledge = yes
				has_completed_focus = bos_nf_SIG_sauer_weaponry
				has_completed_focus = bos_nf_heckler_and_koch_weaponry
			}
			visible = {
				has_completed_focus = bos_nf_SIG_sauer_weaponry
				has_completed_focus = bos_nf_heckler_and_koch_weaponry
				NOT = {
					has_completed_focus = bos_nf_wattz_weaponry
				}
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = -1
				}
				add_to_variable = {
					var = bos_scribes_knowledge
					value = -1
				}
			}
			cancel_trigger = {
				BOS = {
					has_completed_focus = bos_nf_wattz_weaponry
				}
			}
			cancel_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
				complete_national_focus = bos_nf_wattz_weaponry
			}
			ai_will_do = {
			base = 50	
			}
		}
		bos_knowledge_cheat = {
			fire_only_once = no
			days_remove = 1
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				always = yes
			}
			visible = {
				is_debug = yes
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_knowledge
					value = +1
				}
			}
			cancel_trigger = {
			}
			cancel_effect = {
			}
			remove_effect = {
			}
			ai_will_do = {
			base = 1
			}
		}
		bos_scribes_cheat = {
			fire_only_once = no
			days_remove = 1
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			custom_cost_trigger = {
			}
			available = {	
				always = yes
			}
			visible = {
				is_debug = yes
			}
			complete_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
			cancel_trigger = {
			}
			cancel_effect = {
			}
			remove_effect = {
			}
			ai_will_do = {
			base = 1
			}
		}
		##cheat becoming SRG
		bos_srg_cheat = {
			icon = GFX_decision_papers
			fire_only_once = no
			cost = 0
			allowed = {
				original_tag = BOS
			}
			ai_will_do = {
				base = 0			#Saves on performance a bit
			}
			visible = {
				country_exists = NCR
				is_debug = yes
			}
			available = {
				always = yes
			}
			complete_effect = {
				custom_effect_tooltip = people_seek_cooperation_with_the_ncr_tt
				NCR = {
					country_event = nf_brotherhood_steel_rangers.1
				}
			}
		}
		bos_dmz_test = {
			icon = GFX_decision_papers
			fire_only_once = no
			cost = 0
			allowed = {
				original_tag = BOS
			}
			ai_will_do = {
				base = 0			#Saves on performance a bit
			}
			visible = {
				country_exists = NCR
				is_debug = yes
			}
			available = {
				always = yes
			}
			complete_effect = {
				for_each_scope_loop = {
					array = bos_bunker_array
					if = {
						limit = {
							always = yes
						}
						set_demilitarized_zone = yes
					}
				}
			}
		}
	}
	##Diplomacy menu - overrwrite?
bos_lost_hills_diplomacy = {
	bos_market_access_test = {
		icon = GFX_decision_box_open
		allowed = {
			tag = BOS
		}
		target_array = global.bos_ledger_members
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
		}
		visible = {
			is_debug = yes
		}
		days_remove = 1
		available = {
			always = yes
		}
		remove_effect = {
			##TODO market access, rule setting?
			FROM = {
				#set_rule = {desc = bos_capitalism can_access_market = yes}
				add_relation_rule_override = {
					target = BOS
					usage_desc = bos_market_access
					can_access_market = yes
				}
			}
			## ROOT = {
			## 	set_rule = {desc = bos_capitalism can_access_market = yes}
			## 	add_relation_rule_override = {
			## 		target = FROM
			## 		usage_desc = bos_market_access
			## 		can_access_market = yes
			## 	}
			## }
			ROOT = { ##implicit
			set_rule = {desc = bos_capitalism can_access_market = yes}
			}
			FROM = {

				give_market_access = ROOT
			}
			ROOT = {
				give_market_access = FROM
			}
			FROM = {
				set_country_flag = should_use_international_market
			}
		}
		ai_will_do = {
			base = 100
			modifier = {
				factor = 3
				FROM = {
					is_ai = no
				}
			}
		}
	}
	bos_legion_defence_pact_call = {
		icon = GFX_decision_t51_vb_armor
		fire_only_once = no
		days_remove = 10
		cost = 55
		allowed = {
			#has_country_flag = legion_defence_pact_member
		}
		ai_will_do = {
			base = 1000
		}
		visible = {
			AND = {
			has_global_flag = bos_ncr_accepted_deal_for_maxson
			has_country_flag = legion_defence_pact_member
			}
		}
		available = {
			country_exists = BOS
			has_war_with = CES
			OR = {
				NOT = {
					BOS = {
						has_war_with = CES
					}
				}
				NOT = {
					NCR = {
						has_war_with = CES
					}
				}
			}
			OR = {
				NOT = {
					AND = {
						country_exists = MOT
						country_exists = MOJ
					}
				}
				NOT = {
					MOJ = {has_country_flag = legion_defence_pact_member}
					MOT = {has_country_flag = legion_defence_pact_member}
				}
				NOT = {
					MOJ = {has_war_with = MOT}
				}
			}
		}
		modifier = {

		}
		remove_effect = {
			every_country = {
				limit = {
					has_country_flag = legion_defence_pact_member
				}
				add_to_war = {
					targeted_alliance = ROOT
					enemy = CES
					hostility_reason = bos_LDP_join
				}
				news_event = nf_brotherhood_elh_events.10005
			}
		}
	}
	bos_legion_defence_pact_demand_moj_reinstatement = {
		icon = GFX_decision_t51_vb_armor
		fire_only_once = yes
		days_remove = 5
		cost = 250
		allowed = {
			#has_country_flag = legion_defence_pact_member
		}
		ai_will_do = {
			base = 1000
		}
		visible = {
			has_global_flag = bos_ncr_accepted_deal_for_maxson
			has_country_flag = legion_defence_pact_member
			NOT = {country_exists = MOJ}
			tag = BOS
		}
		available = {
			country_exists = BOS
			has_war_with = CES
			NOT = {country_exists = MOJ}
			if = {
				limit = {
					MOJ = {
						OR = {
							any_core_state = {
								is_controlled_by = NCR
							}
							any_core_state = {
								is_controlled_by = MOT
							}
						}
					}
				}
			}
		}
		modifier = {

		}
		remove_effect = {
			custom_effect_tooltip = bos_moj_reinstatement_ai_tt
			BOS = {
				set_temp_variable = { BOS_tension_to_add = 20 }
				bos_change_tension = yes
			}
			NCR = {
				set_temp_variable = { BOS_tension_to_add = 20 }
				bos_change_tension = yes
				country_event = {
					id = nf_brotherhood_elh_events.10007
				}
			}
		}
	}
	bos_lost_hills_consider_chapter_support = {
		icon = GFX_decision_box_open
		allowed = {
			tag = BOS
		}
		target_array = global.bos_ledger_members
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
		}
		visible = {
			OR = {	
					has_completed_focus = bos_nf_long_range_radio_towers
					has_completed_focus = bos_nf_shi_chapter_cooperation
				}
			NOT = {
				FROM = {
					has_country_flag = bos_supported_us ##both of these checks exists so the choice event can have a "not right now" option.
				}
			}
		}
		days_remove = 1
		available = {
			FROM = {
				has_war = yes
				}
			FROM = {
				NOT = {
					has_country_flag = bos_supported_us
				}
			}
			if = {
				limit = {
					FROM = {
						original_tag = GRD
					}
				}
				has_completed_focus = bos_nf_long_range_communications_guardian_brotherhood
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MOJ
					}
				}
				has_completed_focus = bos_nf_long_range_communications_mojave_chapter
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = SHI
					}
				}
				has_completed_focus = bos_nf_long_range_communications_san_fran_chapter
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = TBH
					}
				}
				FROM = {
					has_completed_focus = tbh_nf_to_hell_with_texas
				}
			}
			else_if = {
				limit = {
					FROM = {
						OR = {
							original_tag = WBH
							original_tag = TCA
						}
					}
				}
				has_completed_focus = bos_nf_long_range_communications_washington_brotherhood
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MXC
					}
				}
				has_completed_focus = bos_nf_long_range_communications_maxson_chapter
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MNC
					}
				}
				has_completed_focus = bos_nf_long_range_communications_montana_chapter
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = BGF
					}
				}
				has_completed_focus = bos_nf_long_range_communications_gulf_expedition
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = BMW
					}
				}
				has_completed_focus = bos_nf_long_range_communications_midwest_expedition
			}
			else_if = {
				limit = {
					FROM = {
						OR = {
							original_tag = OUT
							original_tag = BLN
						}
					}
				}
				has_completed_focus = bos_nf_long_range_communications_the_lyons_expedition
			}
		}
		remove_effect = {
			FROM = {
			save_global_event_target_as = bos_consider_target
			}
			country_event = nf_brotherhood_communications.8
		}
		ai_will_do = {
			base = 100
			modifier = {
				factor = 3
				FROM = {
					is_ai = no
				}
			}
		}
	}
	bos_lost_hills_diplomacy_establish_foreign_airbase = {
		icon = GFX_decision_vertibird
		allowed = {
			tag = BOS
		}
		target_array = global.bos_ledger_members
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
		}
		visible = {
			OR ={	
					has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing
					has_tech = vertibird_unlock_tech
					has_completed_focus = bos_nf_lancers
				}
		}
		days_remove = 120
		available = {
			bos_has_scribe_teams = yes
			NOT = {
				FROM = {
					has_war = yes
				}
			}
			OR ={	
				BOS = {
					has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing
				}
				has_tech = vertibird_unlock_tech
				BOS = {
					has_completed_focus = bos_nf_lancers
				}
			}
			if = {
				limit = {
					FROM = {
						original_tag = GRD
					}
				}
				has_completed_focus = bos_nf_grd_reach_out_to_the_guardians
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MOJ
					}
				}
				has_completed_focus = bos_nf_moj_victory_at_sunburst
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = TBH
					}
				}
				FROM = {
					has_completed_focus = tbh_nf_to_hell_with_texas
				}
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = TCA
					}
				}
				has_completed_focus = bos_nf_wbh_the_cause_succesful
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = WBH
					}
				}
				has_completed_focus = bos_nf_wbh_the_immortals_coup_succesful
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MXC
					}
				}
				has_completed_focus = bos_nf_maxson_victorious
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MNC
					}
				}
				has_completed_focus = bos_nf_mch_conquest_of_yellowstone
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { temp_cap_cost = 100 }
			check_variable = {
				caps_number_display > temp_cap_cost
			}
		}
		custom_cost_text = "caps_decisions_cost_text"
		fixed_random_seed = no
		fire_only_once = yes
		complete_effect = {
			set_temp_variable = { caps_to_add = -100 }
			add_caps = yes
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_foreign_airbase_building_tt
			FROM = {
				country_event = nf_brotherhood_foreign_assistance.1
				#add_relation_rule_override = {
				#	target = BOS
				#	usage_desc = BOS_equipment_trading
				#	can_access_market = yes
				#}
				#give_market_access = BOS ##doesn't work, sadly.
			}

			bos_upgrade_foreign_airbases = yes
		}
		ai_will_do = {
			base = 50
			modifier = {
				factor = 3
				FROM = {
					is_ai = no
				}
			}
		}
	}
	bos_lost_hills_diplomacy_offer_scribe_team = {
		icon = GFX_decision_vertibird
		allowed = {
			tag = BOS
		}
		target_array = global.bos_ledger_members
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
		}
		visible = {
			OR ={	
					has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing
					has_tech = vertibird_unlock_tech
					has_completed_focus = bos_nf_lancers
				}
				has_completed_focus = bos_nf_frozen_politics_2
		}
		days_remove = 14
		available = {
			bos_has_scribe_teams = yes
			NOT = {
				FROM = {
					has_war = yes
				}
			}
			if = {
				limit = {
					OR ={	
						BOS = {
							has_completed_focus = bos_nf_shi_chapter_cooperation
							has_completed_focus = bos_nf_shi_the_emperors_blessing
						}
						has_tech = vertibird_unlock_tech
						BOS = {
							has_completed_focus = bos_nf_lancers
						}
					}
				}
				has_completed_focus = bos_nf_frozen_politics_2
			}
			if = {
				limit = {
					FROM = {
						original_tag = GRD
					}
				}
				has_completed_focus = bos_nf_long_range_communications_guardian_brotherhood
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MOJ
					}
				}
				has_completed_focus = bos_nf_long_range_communications_mojave_chapter
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = SHI
					}
				}
				has_completed_focus = bos_nf_long_range_communications_san_fran_chapter
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = TBH
					}
				}
				FROM = {
					has_completed_focus = tbh_nf_to_hell_with_texas
				}
			}
			else_if = {
				limit = {
					FROM = {
						OR = {
							original_tag = WBH
							original_tag = TCA
						}
					}
				}
				has_completed_focus = bos_nf_long_range_communications_washington_brotherhood
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MXC
					}
				}
				has_completed_focus = bos_nf_long_range_communications_maxson_chapter
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MNC
					}
				}
				has_completed_focus = bos_nf_long_range_communications_montana_chapter
			}
		}
		custom_cost_trigger = {
			set_temp_variable = { temp_cap_cost = 20 }
			check_variable = {
				caps_number_display > temp_cap_cost
			}
		}
		custom_cost_text = "caps_decisions_cost_text"
		fixed_random_seed = no
		fire_only_once = no
		complete_effect = {
			set_temp_variable = { caps_to_add = -20 }
			add_caps = yes
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
			FROM = {
				country_event = nf_brotherhood_foreign_assistance.3
			}
		}
		remove_effect = {
			hidden_effect = {
				add_to_variable = {
					var = bos_scribes_ready
					value = +1
					tooltip = scribe_math_tooltip
				}
			}
		}
		ai_will_do = {
			base = 50
			modifier = {
				factor = 1.5
				FROM = {
					is_ai = no
				}
			}
		}
	}
	bos_lost_hills_diplomacy_building_factory = {
		icon = GFX_decision_vertibird
		allowed = {
			always = no
		}
		visible = {
		}
		days_mission_timeout = 0
		days_remove = 100
		available = {
			always = no
		}
		fixed_random_seed = no
		fire_only_once = no
		timeout_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_foreign_factory_building_tt
		}
		ai_will_do = {
			base = 50
		}
	}
	bos_lost_hills_diplomacy_building_power = {
		icon = GFX_decision_vertibird
		allowed = {
			always = no
		}
		visible = {
		}
		days_mission_timeout = 0
		days_remove = 50
		available = {
			always = no
		}
		fixed_random_seed = no
		fire_only_once = no
		timeout_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_foreign_power_tt
		}
		ai_will_do = {
			base = 50
		}
	}
	bos_lost_hills_diplomacy_building_logistics = {
		icon = GFX_decision_vertibird
		allowed = {
			always = no
		}
		visible = {
		}
		days_mission_timeout = 0
		days_remove = 50
		available = {
			always = no
		}
		fixed_random_seed = no
		fire_only_once = no
		timeout_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_foreign_logistics_tt
		}
		ai_will_do = {
			base = 50
		}
	}
	bos_lost_hills_diplomacy_building_defenses = {
		icon = GFX_decision_vertibird
		allowed = {
			always = no
		}
		visible = {
		}
		days_mission_timeout = 0
		days_remove = 90
		available = {
			always = no
		}
		fixed_random_seed = no
		fire_only_once = no
		timeout_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_foreign_factory_building_tt
		}
		ai_will_do = {
			base = 50
		}
	}
	bos_lost_hills_diplomacy_building_electronics_fab = {
		icon = GFX_decision_vertibird
		allowed = {
			always = no
		}
		visible = {
		}
		days_mission_timeout = 0
		days_remove = 70
		available = {
			always = no
		}
		fixed_random_seed = no
		fire_only_once = no
		timeout_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_foreign_electronics_tt
		}
		ai_will_do = {
			base = 50
		}
	}
	bos_lost_hills_diplomacy_building_advising_research = {
		icon = GFX_decision_vertibird
		allowed = {
			always = no
		}
		visible = {
		}
		days_mission_timeout = 0
		days_remove = 60
		available = {
			always = no
		}
		fixed_random_seed = no
		fire_only_once = no
		timeout_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_foreign_advising_tt
		}
		ai_will_do = {
			base = 50
		}
	}
	bos_lost_hills_diplomacy_add_others_to_ledger = {
		icon = GFX_decision_vertibird
		allowed = {
			tag = BOS
		}
		cost = 50
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
			FROM = {
				AND = {
					OR = {
						has_country_flag = is_brotherhood_nation
						has_country_flag = is_brotherhood_nation_proper
						has_country_flag = lhe_easy_ledger_invite
						## AND = {
						## 	tag = NCR
						## 	is_debug = yes	
						## }
					}
					NOT = {has_country_flag = lhe_no_easy_ledger_invite} ##Use this flag on nations that get themselves added to BOS's ledger! (Or just shouldn't ever be in it!)
				}
			}
			NOT = {
				is_in_array = {
					array = global.bos_ledger_members
					value = FROM
				}
			}
		}
		days_remove = 60
		available = {
			NOT = {
				FROM = {
					has_war = yes
				}
			}
			OR ={	
				BOS = {
					has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing
				}
				has_tech = vertibird_unlock_tech
				BOS = {
					has_completed_focus = bos_nf_lancers
				}
			}
			NOT={
				AND = {
					has_active_mission = bos_delayed_scribes_medium
					has_active_mission = bos_delayed_scribes_large
				}
			}
		}
		fixed_random_seed = no
		fire_only_once = yes
		complete_effect = {
			if = {
				limit={
					NOT = {
						has_active_mission = bos_delayed_scribes_medium
					}
				}
				bos_smart_delayed_scribes_medium = yes
			}
			else_if = {
				limit = { 					
						NOT = {
						has_active_mission = bos_delayed_scribes_large
					}
				}
				bos_smart_delayed_scribes_large = yes
			}
		}
		remove_effect = {
			FROM = {
			bos_add_to_ledger = yes
			set_country_flag = bos_added_to_ledger_by_decision
			}
		}
		ai_will_do = {
			base = 50
			modifier = {
				factor = 3
				FROM = {
					is_ai = no
				}
			}
		}
	}
	bos_lost_hills_diplomacy_add_others_to_scribe_council = {
		icon = GFX_decision_vertibird
		allowed = {
			tag = BOS
		}
		cost = 0
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
			FROM = {
				AND = {
					OR = {
						has_country_flag = is_brotherhood_nation
						has_country_flag = is_brotherhood_nation_proper
						has_country_flag = lhe_easy_ledger_invite
						## AND = {
						## 	tag = NCR
						## 	is_debug = yes	
						## }
					}
					NOT = {has_country_flag = lhe_no_easy_ledger_invite} ##Use this flag on nations that get themselves added to BOS's ledger! (Or just shouldn't ever be in it!)
					has_country_flag = bos_added_to_ledger_by_decision
					NOT = {is_in_tech_sharing_group = lost_hills_research}
				}
			}

		}
		days_remove = 60
		available = {
			bos_has_scribe_teams = yes
			NOT = {
				FROM = {
					has_war = yes
				}
			}
			OR ={	
				BOS = {
					has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing
				}
				has_tech = vertibird_unlock_tech
				BOS = {
					has_completed_focus = bos_nf_lancers
				}
			}
			NOT={
				AND = {
					has_active_mission = bos_delayed_scribes_medium
					has_active_mission = bos_delayed_scribes_large
				}
			}
		}
		fixed_random_seed = no
		fire_only_once = yes
		complete_effect = {
			if = {
				limit={
					NOT = {
						has_active_mission = bos_delayed_scribes_medium
					}
				}
				bos_smart_delayed_scribes_medium = yes
			}
			else_if = {
				limit = { 					
						NOT = {
						has_active_mission = bos_delayed_scribes_large
					}
				}
				bos_smart_delayed_scribes_large = yes
			}
			
		}
		remove_effect = {
			FROM = {
				add_to_tech_sharing_group = lost_hills_research
			}
		}
		ai_will_do = {
			base = 50
		}
	}
	bos_lost_hills_diplomacy_add_others_to_faction = {
		icon = GFX_decision_vertibird
		allowed = {
			tag = BOS
		}
		cost = 0
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
			NOT = {
				FROM = {
					is_in_faction_with = BOS
				}
			}
			FROM = {
				AND = {
					OR = {
						has_country_flag = is_brotherhood_nation
						has_country_flag = is_brotherhood_nation_proper
						has_country_flag = lhe_easy_ledger_invite
						## AND = {
						## 	tag = NCR
						## 	is_debug = yes	
						## }
					}
					NOT = {has_country_flag = lhe_no_easy_ledger_invite} ##Use this flag on nations that get themselves added to BOS's ledger! (Or just shouldn't ever be in it!)
					has_country_flag = bos_added_to_ledger_by_decision
				}
			}
		}
		days_remove = 60
		available = {
			bos_has_scribe_teams = yes
			BOS_has_2_available_paladins = yes
			FROM = {
				AND = {
					borders_western_brotherhood_of_steel = yes
					has_war = no
				}
			}	
			OR = {	
				BOS = {
					has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing
				}
				has_tech = vertibird_unlock_tech
				BOS = {
					has_completed_focus = bos_nf_lancers
				}
			}
			NOT = {
				AND = {
					has_active_mission = bos_delayed_scribes_medium
					has_active_mission = bos_delayed_scribes_large
				}
			}
		}
		fixed_random_seed = no
		fire_only_once = yes
		complete_effect = {
			if = {
				limit={
					NOT = {
						has_active_mission = bos_delayed_scribes_medium
					}
				}
				bos_smart_delayed_scribes_medium = yes
				bos_smart_delayed_expedition2_medium = yes
			}
			else_if = {
				limit = { 					
						NOT = {
						has_active_mission = bos_delayed_scribes_large
					}
				}
				bos_smart_delayed_scribes_large = yes
				bos_smart_delayed_expedition2_large = yes
			}
			
		}
		remove_effect = {
			FROM = {
				invite_to_western_brotherhood_of_steel = yes
			}
		}
		ai_will_do = {
			modifier = {
				factor = 3
				FROM = {
					is_ai = no
				}
			}
		}
	}
	bos_alamo_supply_drop = {
		icon = GFX_decision_box_open
		fire_only_once = yes
		days_remove = 10
		cost = 150
		visible = {
			tag = BOS
		}
		available = {
			has_completed_focus = bos_nf_coronate_the_alamo_chapter
		}
		remove_effect = {
			ACH = { 
				country_event = nf_brotherhood_communications.2
			}
		}
	}
	
	bos_mojave_supply_drop = {
		icon = GFX_decision_box_open
		fire_only_once = yes
		days_remove = 10
		cost = 150
		visible = {
			tag = BOS
		}
		available = {
			has_completed_focus = bos_nf_moj_victory_at_sunburst
		}
		remove_effect = {
			MOJ = { 
				country_event = nf_brotherhood_communications.2
			}
		}
	}

	bos_maxson_supply_drop = {
		icon = GFX_decision_box_open
		fire_only_once = yes
		days_remove = 10
		cost = 150
		visible = {
			tag = BOS
		}
		available = {
			has_completed_focus = bos_nf_maxson_victorious
		}
		remove_effect = {
			MXC = { 
				country_event = nf_brotherhood_communications.2
			}
		}
	}

	bos_guardian_supply_drop = {
		icon = GFX_decision_box_open
		fire_only_once = yes
		days_remove = 10
		cost = 150
		visible = {
			tag = BOS
		}
		available = {
			has_completed_focus = bos_nf_grd_guardians_succesful
		}
		remove_effect = {
			GRD = { 
				country_event = nf_brotherhood_communications.2
			}
		}
	}
}
	##SCAVENGING STARTS HERE
	stronger_lost_hills_paladin_scavenging = {
	
		bos_scavenge_weapons_1 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = {
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_weaponry}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_weaponry
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_weapons_2 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
				BOS = {has_completed_focus = bos_nf_scavenging_weaponry}
			}
			visible = {
				BOS = {has_completed_focus = bos_nf_scavenging_weaponry}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_plasma}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_plasma
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_weapons_3 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
				BOS = {has_completed_focus = bos_nf_scavenging_weaponry}
			}
			visible = {
				BOS = {has_completed_focus = bos_nf_scavenging_weaponry}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_laser_rifles}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_laser_rifles
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_weapons_4 = {
			##capstone scavenge - requires 2 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 120
			cost = 50
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_2_available_paladins = yes
				BOS = {has_completed_focus = bos_nf_scavenging_laser_rifles}
				BOS = {has_completed_focus = bos_nf_scavenging_plasma}
			}
			visible = {
				BOS = {has_completed_focus = bos_nf_scavenging_laser_rifles}
				BOS = {has_completed_focus = bos_nf_scavenging_plasma}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -2
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_heavy_energy_weapons}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_heavy_energy_weapons
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_support_1 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = {
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_support_equipment}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_support_equipment
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_support_2 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
				BOS = {has_completed_focus = bos_nf_scavenging_support_equipment}
			}
			visible = {
			BOS = {has_completed_focus = bos_nf_scavenging_support_equipment}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_piercing_weaponry}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_piercing_weaponry
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_support_3 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = {
			BOS = {has_completed_focus = bos_nf_scavenging_support_equipment}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_medical_equipment} 
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_medical_equipment
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_support_4 = {
			##capstone scavenge - requires 2 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 120
			cost = 50
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_2_available_paladins = yes
				BOS = {has_completed_focus = bos_nf_scavenging_medical_equipment}
				BOS = {has_completed_focus = bos_nf_scavenging_piercing_weaponry}
			}
			visible = {
				BOS = {has_completed_focus = bos_nf_scavenging_medical_equipment}
				BOS = {has_completed_focus = bos_nf_scavenging_piercing_weaponry}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -2
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_big_weaponry}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_big_weaponry!
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_armour_1 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = {
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_power_armor}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_power_armor
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_armour_2 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = {
			BOS = {has_completed_focus = bos_nf_scavenging_power_armor}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_t45}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_t45
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_armour_3 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = {
				BOS = {has_completed_focus = bos_nf_scavenging_power_armor}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_power_armor_repair}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_power_armor_repair
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_armour_4 = {
			##capstone scavenge - requires 2 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 120
			cost = 50
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_2_available_paladins = yes
				BOS = {has_completed_focus = bos_nf_scavenging_t45}
				BOS = {has_completed_focus = bos_nf_scavenging_power_armor_repair}
			}
			visible = {
				BOS = {has_completed_focus = bos_nf_scavenging_t45}
				BOS = {has_completed_focus = bos_nf_scavenging_power_armor_repair}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -2
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus =  bos_nf_scavenging_t51b}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_t51b
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_vehicle_1 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = { #Template-- I should have requirements for 2-4!
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_vehicles}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_vehicles
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_vehicle_2 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = {
			BOS = {has_completed_focus = bos_nf_scavenging_vehicles} 
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_mobile_vehicles}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_mobile_vehicles
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_vehicle_3 = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 30
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			visible = { #Template-- I should have requirements for 2-4!
			BOS = {has_completed_focus = bos_nf_scavenging_vehicles}
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_durable_vehicles}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_durable_vehicles
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_scavenge_vehicle_4 = {
			##capstone scavenge - requires 2 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 120
			cost = 50
			# days_re_enable = 5
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_2_available_paladins = yes
				BOS = {has_completed_focus = bos_nf_scavenging_mobile_vehicles}
				BOS = {has_completed_focus = bos_nf_scavenging_durable_vehicles}
			}
			visible = {
				BOS = {has_completed_focus = bos_nf_scavenging_mobile_vehicles}
				BOS = {has_completed_focus = bos_nf_scavenging_durable_vehicles}	
			}
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -2
				}
			}

			cancel_trigger = {
				BOS = {has_completed_focus = bos_nf_scavenging_advanced_vehicles}
			}
			cancel_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
			}
			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +2
					tooltip = paladin_math_tooltip
				}
				complete_national_focus = bos_nf_scavenging_advanced_vehicles
			}
			ai_will_do = {
				base = 1
			}
		}
		bos_search_bakersfield_armory = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_army_helmet
			fire_only_once = yes
			days_remove = 60
			cost = 100
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}

			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				add_equipment_to_stockpile = {
					type = energy_equipment_3 
					amount = 250
					producer = USA
				}
				add_tech_bonus = {
				name = bos_nf_weaponry_research
				bonus = 0.5
				uses = 1
				category = energy_weaponry_tech_category
			}
			}
		}

		bos_search_edwards_afb = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_vertibird
			fire_only_once = yes
			days_remove = 60
			cost = 100
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				add_equipment_to_stockpile = {
					type = ballistic_fireteam_equipment_3 
					amount = 150
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = energy_fireteam_equipment_3 
					amount = 100
					producer = USA
				}
				add_tech_bonus = {
				bonus = 0.5
				uses = 1
				category = support_fireteam_tech_category
			}
			}
		}

		bos_search_necropolis_west_tek_factory = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_t51
			fire_only_once = yes
			days_remove = 60
			cost = 100
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				country_event = { id = nf_brotherhood_history.13 }
			}
		}

		bos_search_maxson_army_depot = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_army_helmet
			fire_only_once = yes
			days_remove = 60
			cost = 100
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				add_equipment_to_stockpile = {
					type = heavy_motorized_equipment_2 
					amount = 300
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = demolitions_equipment_5 
					amount = 250
					producer = USA
				}
				add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = support_tech_category
				}
			}
		}
			
			
			bos_search_general_atomics_warehouse = {
			##non-capstone scavenge - requires 1 Paladin units.
			icon = GFX_decision_backpack
			fire_only_once = yes
			days_remove = 60
			cost = 100
			allowed = {
				tag = BOS
			}
			available = {
				BOS_has_1_available_paladins = yes
			}
			
			complete_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = -1
				}
			}

			remove_effect = {
				add_to_variable = {
					var = BOS_paladins_ready
					value = +1
					tooltip = paladin_math_tooltip
				}
				add_equipment_to_stockpile = {
					type = energy_equipment_2 
					amount = 500
					producer = USA
				}
				add_equipment_to_stockpile = {
					type = support_robot_thruster_equipment_2 
					amount = 250
					producer = USA
				}
				add_tech_bonus = {
				bonus = 0.25
				uses = 1
				category = support_robot_tech_category
				}
			}
		}
	}
	

bos_lost_hills_steel_plague = {
	bos_lost_hills_troika_our_cruelty_elders = {
		allowed = {
			tag = BOS
		}
		target_array = global.bos_ledger_members
		target_trigger = {
			NOT = {
				FROM = {
					original_tag = BOS
				}
			}
			NOT = {
				has_war_with = BOS
			}
		}
		visible = {
			#AND ={	
			#		has_completed_focus = bos_nf_our_cruelty
			#		has_tech = implant_unlock_tech
			#	}
			always = yes
		}
		days_remove = 180
		available = {
			bos_has_scribe_teams = yes
			bos_has_troika_crowns = yes
			if = {
				limit = {
					FROM = {
						is_in_faction_with = BOS
					}
				}
			}
			OR ={	
				BOS = {
					has_completed_focus = bos_nf_shi_chapter_cooperation
					has_completed_focus = bos_nf_shi_the_emperors_blessing
				}
				has_tech = vertibird_unlock_tech
				BOS = {
					has_completed_focus = bos_nf_lancers
				}
				is_neighbor_of = BOS
			}
			if = {
				limit = {
					FROM = {
						original_tag = GRD
					}
				}
				has_completed_focus = bos_nf_grd_reach_out_to_the_guardians
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MOJ
					}
				}
				has_completed_focus = bos_nf_moj_victory_at_sunburst
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = TBH
					}
				}
				FROM = {
					has_completed_focus = tbh_nf_to_hell_with_texas
				}
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = TCA
					}
				}
				has_completed_focus = bos_nf_wbh_the_cause_succesful
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = WBH
					}
				}
				has_completed_focus = bos_nf_wbh_the_immortals_coup_succesful
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MXC
					}
				}
				has_completed_focus = bos_nf_maxson_victorious
			}
			else_if = {
				limit = {
					FROM = {
						original_tag = MNC
					}
				}
				has_completed_focus = bos_nf_mch_conquest_of_yellowstone
			}
		}
		fixed_random_seed = no
		fire_only_once = yes
		complete_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
			add_to_variable = {
				var = bos_troika_crowns
				value = -1
				tooltip = bos_crowns_math_tt
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			custom_effect_tooltip = bos_leader_enhancement_tt
			FROM = {
				country_event = nf_brotherhood_foreign_assistance.2
			}
		}
		ai_will_do = {
			base = 0 ##This is way too much for an AI to cause.
		}
	}
	troika_cruelty_target = {
		allowed = {
			tag = BOS
		}
		state_target = yes
		target_root_trigger = {
			has_completed_focus = bos_nf_our_cruelty
		}
		target_array = BOS.owned_controlled_states
		target_trigger = {
			FROM = {
				state_population_k > 10
			}
		}
		days_remove = 70
		available = {
			bos_has_scribe_teams = yes
		}
		fixed_random_seed = no
		fire_only_once = yes
		on_map_mode = map_and_decisions_view
		icon = GFX_decision_backpack
		complete_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			FROM = {
				#state_population = {state_population * 0.95}
				##set weightings for random list based on state population. The minimum chance is 24% given current numbers. 10k*2.4 = 24.
				set_temp_variable = { bos_pop_k = FROM.state_population_k} ##get the population/1000 for probability calcs
				set_temp_variable = { bos_pop_good = bos_pop_k} ##Weighting for the good result
				multiply_temp_variable = { bos_pop_good = 2.4 } ##Multiply by 2.4 so a 100$ is achieved by 41-42k pop, instead of  100k pop.
				clamp_temp_variable = { ##clamping just this number keeps them all sane.
					var = bos_pop_good 
					max = 100
					min = 0
				}
				set_temp_variable = { bos_pop_bad = 100} ##this variable is set up in this way to do (100-bos_pop_good) so the probabilities are out of 100 total.
				subtract_from_temp_variable = { bos_pop_bad = bos_pop_good} ## ^
				set_temp_variable = { bos_pop_reduction = FROM.state_population} ##get the bad result- a 5% reduction in state population. Practically speaking, this really isn't much.
				multiply_temp_variable = { bos_pop_reduction = -0.05}
				##finally, round the numbers.
				round_temp_variable = bos_pop_good
				round_temp_variable = bos_pop_bad
				set_temp_variable = { ##Removing population from a single state like this doesn't appear to generate Manpower like Exodus does.
				pop_add = bos_pop_reduction
				}
				add_state_population = yes
			}
				random_list = {
					bos_pop_good = {
						BOS = {
							add_tech_bonus = {
								bonus = 0.25
								uses = 1
								category = implant_tech
							}						
							add_to_variable = {
								var = bos_troika_crowns
								value = +1
								tooltip = bos_crowns_math_tt
							}
						}
					}
					bos_pop_bad = {
					}
				}
		}
		ai_will_do = {
			base = 0 ##This is way too much for an AI to cause.
		}
	}
}
followers_interaction = {
	followers_request_industry_assistance = {
		cost = 20
		days_remove = 90
		days_re_enable = 240

		visible = {
			OR = {
				BOS = {
					has_completed_focus = bos_nf_high_elder_llwyd_torni_followers_unfinished_programs
				}
				NCR = {
					has_completed_focus = boneyard_support_schools
				}
			}
		}

		available = {	# Shows the player why they got this
			OR = {
				BOS = {
					has_completed_focus = bos_nf_high_elder_llwyd_torni_followers_unfinished_programs
				}
				NCR = {
					has_completed_focus = boneyard_support_schools
				}
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				check_variable = {
					var = followers_influence
					value = 50
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			increase_followers_influence_10 = yes
		}

		remove_effect = {
			add_tech_bonus = {
				uses = 1
				bonus = 0.3
				category = industry_specialisation_category
				category = tool_tech
			}
		}
	}
	followers_electrification_help = {
		cost = 30
		days_remove = 75
		days_re_enable = 210

		visible = {
			OR = {
				BOS = {
					has_completed_focus = bos_nf_high_elder_llwyd_torni_followers_unfinished_programs
				}
				NCR = {
					has_completed_focus = boneyard_sun
				}
			}
		}

		available = {	# Shows the player why they got this
			OR = {
				BOS = {
					has_completed_focus = bos_nf_high_elder_llwyd_torni_followers_unfinished_programs
				}
				NCR = {
					has_completed_focus = boneyard_sun
				}
			}
		}

		ai_will_do = {
			base = 1
			modifier = {
				factor = 0
				check_variable = {
					var = followers_influence
					value = 50
					compare = greater_than_or_equals
				}
			}
		}

		complete_effect = {
			increase_followers_influence_5 = yes
		}

		remove_effect = {
			random_owned_controlled_state = {
				add_resource = {
					type = energy
					amount = 4
				}
				add_building_construction = {
					type = infrastructure
					level = 1
					instant_build = yes
				}
			}
		}
	}
} ##attempt to replicate the NCR-specific foci unlocking additional Follower interactions.
stronger_lost_hills_ncr_occupation = {
	bos_ncr_hayes_plan = {
		visible = {
			OR = {
			has_country_flag = hayes_cooperation
			is_debug = yes
			}
		}
		available = {
			has_country_flag = hayes_cooperation
		}
		fixed_random_seed = no
		fire_only_once = yes
		cost = 100
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
			random_owned_state = {
				limit = {
					is_valid_state_for_3_arms_factories = yes
				}
				add_extra_state_shared_building_slots = 3
				add_building_construction = {
					type = arms_factory
					level = 3
					instant_build = yes
				}
			}
			add_ideas = militindustrial_good
			63 = {
				add_state_modifier = {
					modifier = {
						caps_node_base_modifier = 0.5
					}
				}
			}
		}
	}
	bos_ncr_allgood_environment_plan = {
		visible = {
			OR = {
			has_country_flag = allgood_cooperation
			is_debug = yes
			}
		}
		available = {
			has_country_flag = allgood_cooperation
		}
		fixed_random_seed = no
		fire_only_once = yes
		cost = 50
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
			effect_tooltip = {
				add_ideas = NCR_ERA
			}
			news_event = nf_brotherhood_elh_events.14
		}
	}
	bos_rhombian_training_halls = {
		visible = {

		}
		cost = 50
		allowed = {
			tag = BOS
		}
		state_target = yes
		target_root_trigger = {
			has_country_flag = bos_rhombian_training_halls_flag
		}
		target_array = BOS.core_states
		target_trigger = {
			FROM = {
				state_population_k > 25
				NOT = {
					state = 157
				}
			}
		}
		days_remove = 60
		available = {
			bos_has_scribe_teams = yes
		}
		fixed_random_seed = no
		fire_only_once = yes
		on_map_mode = map_and_decisions_view
		icon = GFX_decision_backpack
		complete_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			FROM = {
				add_dynamic_modifier = {
					modifier = bos_training_hall
				}
			}
		}
		ai_will_do = {
			base = 100
		}
	}
}
stronger_lost_hills_ncr_occupation_famine = {
	bos_ncr_incoming_famine = {
		activation = {
			tag = bos
			always = no ##done by event
		}
		fire_only_once = yes
		available = {
			AND = {
			count_triggers = {
			amount > 3
				has_country_flag = reformers_reconstruction
				has_country_flag = barons_cooperating ##also gets barons_dealt_with so twice the effect
				has_country_flag = barons_dealt_with 
				OR = {
					has_country_flag = famine_mission_followers_raided_completed
					has_country_flag = famine_mission_followers_help_completed
					}
				has_completed_focus = bos_nf_high_elder_llwyd_old_management
				has_country_flag = famine_mission_advanced_tech_1_completed
				has_country_flag = famine_mission_advanced_tech_2_completed
				has_country_flag = famine_mission_advanced_tech_3_completed
			}
			has_completed_focus = bos_nf_power_brokers_the_barons
			}
		}
		#is_triggered_only = yes
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		is_good = no
		days_mission_timeout = 120
		complete_effect = {
			remove_ideas = bos_ncr_looming_famine
			set_country_flag = bos_famine_over
			clr_country_flag = not_allowed_to_core_flag
			custom_effect_tooltip = bos_coring_reenabled
		}
		timeout_effect = {
			swap_ideas = {
				remove_idea = bos_ncr_looming_famine
				add_idea = bos_ncr_famine
			}
			##Reduce compliance in all NCR states by 25%.
			add_stability = -0.1
			add_war_support = -0.1
			every_owned_state = {
				limit = {
					is_core_of = NCR
					NOT = { is_core_of = BOS }
				}
				if = {
					limit = { BOS = {has_country_flag = allgood_famine_protection}}
					add_compliance = -15
				}
				else_if = {
					limit = { BOS = {has_country_flag = kimball_famine_protection}}
					add_compliance = -10
				}
				else_if = {
					limit = { BOS = {has_country_flag = hayes_famine_protection}} ##Hayes and Allgood provide the same protection at the moment.
					add_compliance = -15
				}
				else = {
					add_compliance = -25
				}
			}
			set_country_flag = bos_proper_famine_occured
		}
	}
	bos_ncr_famine_active = {
		activation = {
			tag = bos
			has_idea = bos_ncr_famine
		}
		fixed_random_seed = no
		fire_only_once = yes
		available = {
			AND = {
			count_triggers = {
			amount > 3
				has_country_flag = reformers_reconstruction
				has_country_flag = barons_cooperating ##also gets barons_dealt_with so twice the effect
				has_country_flag = barons_dealt_with 
				OR = {
					has_country_flag = famine_mission_followers_raided_completed
					has_country_flag = famine_mission_followers_help_completed
					}
				has_completed_focus = bos_nf_high_elder_llwyd_old_management
				has_country_flag = famine_mission_advanced_tech_1_completed
				has_country_flag = famine_mission_advanced_tech_2_completed
				has_country_flag = famine_mission_advanced_tech_3_completed
			}
			has_completed_focus = bos_nf_power_brokers_the_barons
			}
		}
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		is_good = no
		days_mission_timeout = 420
		complete_effect = {
			remove_ideas = bos_ncr_famine
			set_country_flag = bos_famine_over
			clr_country_flag = not_allowed_to_core_flag
			custom_effect_tooltip = bos_coring_reenabled
		}
		timeout_effect = {
			swap_ideas = {
				remove_idea = bos_ncr_famine
				add_idea = bos_ncr_terrible_famine
			}
		}
	}
	bos_ncr_terrible_famine_active = {
		activation = {
			tag = bos
			has_idea = bos_ncr_terrible_famine
		}
		fixed_random_seed = no
		fire_only_once = yes
		available = {
			AND = {
			count_triggers = {
			amount > 4
				has_country_flag = reformers_reconstruction
				has_country_flag = barons_cooperating ##also gets barons_dealt_with so twice the effect
				has_country_flag = barons_dealt_with 
				OR = {
					has_country_flag = famine_mission_followers_raided_completed
					has_country_flag = famine_mission_followers_help_completed
					}
				has_completed_focus = bos_nf_high_elder_llwyd_old_management
				has_country_flag = famine_mission_advanced_tech_1_completed
				has_country_flag = famine_mission_advanced_tech_2_completed
				has_country_flag = famine_mission_advanced_tech_3_completed
			}
			has_completed_focus = bos_nf_power_brokers_the_barons
			}
		}
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		is_good = no
		days_mission_timeout = 365
		complete_effect = {
			remove_ideas = bos_ncr_terrible_famine
			set_country_flag = bos_famine_over
			clr_country_flag = not_allowed_to_core_flag
			custom_effect_tooltip = bos_coring_reenabled
		}
		timeout_effect = {
			remove_ideas = bos_ncr_terrible_famine
			set_country_flag = bos_famine_over
			add_stability = -0.25
			add_war_support = -0.3
		}
	}
	bos_ncr_famine_delay = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			#has_completed_focus = bos_nf_the_californian_food_crisis
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 60
		cost = 30
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {}
		remove_effect = {
			set_temp_variable = { bos_famine_time = 60 }
			bos_adjust_famine_time = yes
		}
	}
	bos_ncr_famine_evaluate_food_reserves = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			#has_completed_focus = bos_nf_the_californian_food_crisis
			bos_has_scribe_teams = yes
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 60
		cost = 30
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		remove_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
			random_list = {
				10 = {
					set_temp_variable = { bos_famine_time = 90 }
					bos_adjust_famine_time = yes
				}
				60 = {
					set_temp_variable = { bos_famine_time = 60 }
					bos_adjust_famine_time = yes
				}
				20 = {
					set_temp_variable = { bos_famine_time = 30 }
					bos_adjust_famine_time = yes
				}
				10 = {
					set_temp_variable = { bos_famine_time = -30 }
					bos_adjust_famine_time = yes
				}
			}
		}
	}
	bos_ncr_famine_abatement = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			#has_completed_focus = bos_nf_the_californian_food_crisis
		}
		fixed_random_seed = no
		fire_only_once = no
		days_remove = 60
		cost = 30
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
		
		}
		remove_effect = {
			set_temp_variable = { caps_to_add = -45 }
			add_caps = yes
			set_temp_variable = { bos_famine_time = 30 }
			bos_adjust_famine_time = yes
			#set_country_flag = famine_mission_desc_completed
		}

	}
	bos_ncr_famine_food_convoy_escorts = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			#has_completed_focus = bos_nf_the_californian_food_crisis
			BOS_has_2_available_paladins = yes
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 90
		cost = 15
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = -2
				tooltip = paladin_math_tooltip
			}
		}
		remove_effect = {
			set_temp_variable = { bos_famine_time = 70 }
			bos_adjust_famine_time = yes
			add_to_variable = {
				var = BOS_paladins_ready
				value = +2
				tooltip = paladin_math_tooltip
			}
		}
	}
	bos_ncr_famine_curb_baron_influence = { ##TODO: Change flag? This currently skips "The Barons" event if you do it.
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			has_completed_focus = bos_nf_the_californian_food_crisis
			OR = {
				has_completed_focus = bos_nf_high_elder_rhiannon_economic_plan
				has_completed_focus = bos_nf_high_elder_maxson_economic_plan
			}
			NOT = {has_completed_focus = bos_nf_power_brokers_the_barons}
			BOS_has_2_available_paladins = yes
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 90
		cost = 250
		cancel_trigger = {
			NOT = {
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			has_completed_focus = bos_nf_power_brokers_the_barons
		}
		cancel_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = +2
				tooltip = paladin_math_tooltip
			}
			add_political_power = 250
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = -2
				tooltip = paladin_math_tooltip
			}
		}
		remove_effect = {
			set_temp_variable = { bos_famine_time = 70 }
			bos_adjust_famine_time = yes
			complete_national_focus = bos_nf_power_brokers_the_barons
			#bos_reduce_famine = yes ##The event from completing the national focus will do it.
			custom_effect_tooltip = bos_this_fixes_famine_tt
			add_to_variable = {
				var = BOS_paladins_ready
				value = +2
				tooltip = paladin_math_tooltip
			}
		}
	}
	bos_ncr_famine_distribute_advanced_tech_1 = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			bos_has_scribe_teams = yes
			has_completed_focus = bos_nf_the_californian_food_crisis
			has_tech = agriculture_industry_tech_5
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 60
		cost = 30
		icon = mission_icon     # For GFX_decision_mission_icon
		modifier = {
			civilian_factory_use = 3
		}
		complete_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		ai_will_do = {
			base = 10000
		}
		remove_effect = {
			set_country_flag = famine_mission_advanced_tech_1_completed
			bos_reduce_famine = yes
			custom_effect_tooltip = bos_this_fixes_famine_tt
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
		}

	}
	bos_ncr_famine_distribute_advanced_tech_2 = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			bos_has_scribe_teams = yes
			has_completed_focus = bos_nf_the_californian_food_crisis
			has_tech = agriculture_industry_tech_6
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 60
		cost = 30
		cancel_trigger = {
		}
		modifier = {
			civilian_factory_use = 5
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		ai_will_do = {
			base = 10000
		}
		remove_effect = {
			set_country_flag = famine_mission_advanced_tech_2_completed
			bos_reduce_famine = yes
			custom_effect_tooltip = bos_this_fixes_famine_tt
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
		}

	}
	bos_ncr_famine_distribute_advanced_tech_3 = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			bos_has_scribe_teams = yes
			has_completed_focus = bos_nf_the_californian_food_crisis
			has_tech = agriculture_industry_tech_7
			
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 60
		cost = 30
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		modifier = {
			civilian_factory_use = 6
		}
		complete_effect = {
			add_to_variable = {
				var = bos_scribes_ready
				value = -1
			}
		}
		ai_will_do = {
			base = 10000
		}
		remove_effect = {
			set_country_flag = famine_mission_advanced_tech_3_completed
			bos_reduce_famine = yes
			custom_effect_tooltip = bos_this_fixes_famine_tt
			add_to_variable = {
				var = bos_scribes_ready
				value = +1
				tooltip = scribe_math_tooltip
			}
		}

	}
	bos_ncr_famine_ask_the_followers = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			has_completed_focus = bos_nf_the_californian_food_crisis
			OR = {
			has_completed_focus = bos_nf_high_elder_llwyd_torni_embrace_the_followers
			has_country_flag = allgood_cooperation
			}
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 60
		cost = 30
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
		
		}
		ai_will_do = {
			base = 10000
		}
		remove_effect = {
			set_country_flag = famine_mission_followers_help_completed
			bos_reduce_famine = yes
			custom_effect_tooltip = bos_this_fixes_famine_tt
			increase_followers_influence_10 = yes
		}

	}
	bos_ncr_famine_raid_the_followers = {
		available = {
			OR = { 
				has_idea = bos_ncr_terrible_famine
				has_idea = bos_ncr_famine
				has_idea = bos_ncr_looming_famine
			}
			has_completed_focus = bos_nf_the_californian_food_crisis
			NOT = {
				has_completed_focus = bos_nf_high_elder_llwyd_torni_embrace_the_followers
				has_country_flag = allgood_cooperation
			}
			BOS_has_2_available_paladins = yes
		}
		fixed_random_seed = no
		fire_only_once = yes
		days_remove = 60
		cost = 30
		cancel_trigger = {
		}
		icon = mission_icon     # For GFX_decision_mission_icon
		complete_effect = {
			add_to_variable = {
				var = BOS_paladins_ready
				value = -2
				tooltip = paladin_math_tooltip
			}
		}
		remove_effect = {
			set_country_flag = famine_mission_followers_raided_completed
			custom_effect_tooltip = bos_this_fixes_famine_tt
			bos_reduce_famine = yes
			add_to_variable = {
				var = BOS_paladins_ready
				value = +2
				tooltip = paladin_math_tooltip
			}
		}

	}
}


