INT_in_with_effects = {
	set_country_flag = INT_has_the_effects
}

INT_get_the_effects = {
	INT_in_with_effects = yes
	add_dynamic_modifier = { modifier = INT_internationale_commie }
	if = {
		limit = { FRA = { has_completed_focus = FRA_Phalanstere_internationale } }
		INT_political_gain = yes
	}
	#econ
	if = {
		limit = { FRA = { has_completed_focus = FRA_econ_cop } }
		INT_econ_coop = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_keep_national_market } }
		INT_keep_national_market = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_mainland_first } }
		INT_mainland_first = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_ensure_self_sufficiency } }
		INT_ensure_self_sufficiency = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_specialize_national_econ } }
		INT_specialize_national_econ_all = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_made_in_france } }
		INT_made_in_france = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_open_the_limited_door } }
		INT_open_the_limited_door = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_integrate_national_econ } }
		INT_integrate_national_econ = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_land_link } }
		INT_land_link = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_world_passage } }
		INT_world_passage = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_commodity_in_circulation } }
		INT_commodity_in_circulation = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_each_does_its_best } }
		INT_each_does_its_best = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_each_takes_what_it_needs } }
		INT_each_takes_what_it_needs = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_happiness_of_the_people } }
		INT_happiness_of_the_people = yes
	}
	#mili
	if = {
		limit = { FRA = { has_completed_focus = FRA_mili_industrial_cop } }
		INT_mili_industrial_cop = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_intern_arsenal } }
		add_offsite_building = { type = arms_factory level = 3 }
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_revoary_assembly_line } }
		add_ideas = INTE_revoary_assembly_line 
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_revoary_quality_depart } }
		add_ideas = INTE_revoary_quality_depart
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_amrymili_cop } }
		INT_milit_coop = yes
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_form_intern_red_army } 
			NOT = { FRA = { has_completed_focus = FRA_career_officer_corps } }
		}
		add_ideas = INTE_army_coop_r1
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_career_officer_corps } 
			NOT = { FRA = { has_completed_focus =FRA_all_in_one } }
		}
		add_ideas = INTE_army_coop_r2
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_all_in_one } 
			NOT = { FRA = { has_completed_focus = FRA_the_true_army } }
		}
		add_ideas = INTE_army_coop_r3
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_form_revoary_guard } 
			NOT = { FRA = { has_completed_focus = FRA_mobilize_the_masses } }
		}
		add_ideas = INTE_army_coop_g1
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_mobilize_the_masses } 
			NOT = { FRA = { has_completed_focus = FRA_thousands_of_torches } }
		}
		add_ideas = INTE_army_coop_g2
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_thousands_of_torches } 
			NOT = { FRA = { has_completed_focus = FRA_the_true_army } }
		}
		add_ideas = INTE_army_coop_g3
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_thousands_of_torches } 
			FRA = { has_completed_focus = FRA_the_true_army } 
		}
		add_ideas = INTE_army_coop_g4
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_all_in_one } 
			FRA = { has_completed_focus = FRA_the_true_army } 
		}
		add_ideas = INTE_army_coop_r4
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_multicountry_military_exercises } }
		add_ideas = INTE_multicountry_miliexercises
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_set_international_standards } }
		add_ideas = INTE_unify_mili_commands
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_same_the_military_language } }
		add_ideas = INTE_experimental_esperanto
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_airmili_cop } }
		INT_air_milit_coop = yes
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_red_sky_fighter } 
			NOT = { FRA = { has_completed_focus = FRA_from_paris_to_far_away } }
		}
		add_ideas = INTE_air_coop1
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_from_paris_to_far_away } }
		add_ideas = INTE_air_coop2
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_seamili_cop } }
		INT_seamili_cop = yes
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_united_sea_rad_army } 
			NOT = { FRA = { has_completed_focus = FRA_red_noahs_ark } }
		}
		add_ideas = INTE_navy_coop1
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_red_noahs_ark } }
		add_ideas = INTE_navy_coop2
	}
	#techn
	if = {
		limit = { FRA = { has_completed_focus = FRA_techn_cop } }
		INT_techn_cop = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_socialism_education } }
		INT_socedu = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_diamond_cut_diamond } }
		INT_techn_cop = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_international_public_university } }
		INT_techn_cop = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_global_student } }
		INT_global_student = yes
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_brother_from_aaa } }
		INT_brother_from_aaa = yes
	}
	if = {
		limit = { FRA = { has_completed_focus =  FRA_europa_and_the_world } }
		INT_techn_cop_w = yes
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_mili_research_cop } 
			NOT = { FRA = { has_completed_focus = FRA_revoary_military_laboratory } }
		}
		add_ideas = INTE_mili_research_cop1
	}
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_revoary_military_laboratory } 
			NOT = {  FRA = { has_completed_focus = FRA_revoary_army_looks_forwards } }
		}
		add_ideas = INTE_mili_research_cop2
		add_research_slot = 1
	}
	if = {
		limit = { FRA = { has_completed_focus = FRA_revoary_army_looks_forwards } }
		add_ideas = INTE_mili_research_cop3
	}

	
}
INT_political_gain = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_political_power_factor = 0.025
		tooltip = INT_political_power_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}
####econ
INT_econ_coop = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_buildings_factor = 0.025
		tooltip = INT_production_speed_buildings_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_keep_national_market = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_min_export = -0.05
		tooltip = INT_min_export_tooltip
	}
	add_to_variable = {
		INT_PRODUCTION_FACTORY_START_EFFICIENCY_FACTOR = 0.025
		tooltip = INT_PRODUCTION_FACTORY_START_EFFICIENCY_FACTOR_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_mainland_first = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_min_export = -0.05
		tooltip = INT_min_export_tooltip
	}
	add_to_variable = {
		INT_consumer_goods_factor = -0.05
		tooltip = INT_consumer_goods_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_ensure_self_sufficiency = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_local_resources_factor = 0.05
		tooltip = INT_local_resources_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_made_in_france = {
	custom_effect_tooltip = INT_internationale_commie_modifier
	if = {
		limit = { tag = FRA }
		add_to_variable = {
			INT_industrial_capacity_factory = 0.025
			tooltip = INT_industrial_capacity_factory_tooltip
		}
	}
	else = {
		add_to_variable = {
			INT_consumer_goods_factor = -0.025
		tooltip = INT_consumer_goods_factor_tooltip
		}
	}	
	force_update_dynamic_modifier = yes
}

INT_specialize_national_econ_fra = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_global_building_slots_factor = 0.25
		tooltip = INT_global_building_slots_factor_tooltip
	}
	add_to_variable = {
		INT_industrial_capacity_factory = 0.025
		tooltip = INT_industrial_capacity_factory_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_specialize_national_econ_eng = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_dockyard_factor = 0.05
		tooltip = INT_production_speed_dockyard_factor_tooltip
	}
	add_to_variable = {
		INT_industrial_capacity_dockyard = 0.05
		tooltip = INT_industrial_capacity_dockyard_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_specialize_national_econ_eup = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_buildings_factor = 0.025
		tooltip = INT_production_speed_buildings_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}
	
INT_specialize_national_econ_asia = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_industrial_complex_factor = 0.05
		tooltip = INT_production_speed_industrial_complex_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_specialize_national_econ_afr = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_infrastructure_factor = 0.1
		tooltip = INT_production_speed_infrastructure_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}
	
INT_specialize_national_econ_ame = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_arms_factory_factor = 0.05
		tooltip = INT_production_speed_arms_factory_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}
	
INT_specialize_national_econ_aus = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_dockyard_factor = 0.05
		tooltip = INT_production_speed_dockyard_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_specialize_national_econ_all = {
	if = {
		limit = { 
			capital_scope = {
				is_on_continent = europe
			}
			NOT = { tag = FRA }
			NOT = { tag = ENG }
		}
		INT_specialize_national_econ_eup = yes
	}
	else = { hidden_effect = { set_temp_variable = nothing } }
	if = {
		limit = { 
			capital_scope = {
				OR = {
					is_on_continent = asia
					is_on_continent = india
					is_on_continent = middle_east
				}
			}
		}
		INT_specialize_national_econ_asia = yes
	}
	else = { hidden_effect = { set_temp_variable = nothing } }
	if = {
		limit = { 
			capital_scope = {
				is_on_continent = africa	
			}
		}
		INT_specialize_national_econ_afr = yes
	}
	else = { hidden_effect = { set_temp_variable = nothing } }
	if = {
		limit = { 
			capital_scope = {
				OR = {
					is_on_continent = north_america
					is_on_continent = central_america
					is_on_continent = south_america
				}
			}
		}
		INT_specialize_national_econ_ame = yes
	}
	else = { hidden_effect = { set_temp_variable = nothing } }
	if = {
		limit = { 
			capital_scope = {
				is_on_continent = australia
			}
		}
		INT_specialize_national_econ_aus = yes
	}
	else = { hidden_effect = { set_temp_variable = nothing } }
}


INT_open_the_limited_door = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_min_export = 0.1
		tooltip = INT_min_export_tooltip
	}
	add_to_variable = {
		INT_production_factory_max_efficiency_factor = 0.05
		tooltip = INT_production_factory_max_efficiency_factor_tooltip
	}
	add_to_variable = {
		INT_trade_laws_cost_factor = -0.15
		tooltip = INT_trade_laws_cost_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_integrate_national_econ = {
	custom_effect_tooltip = INT_internationale_commie_modifier
	add_to_variable = {
		INT_faction_trade_opinion_factor  = 0.2
		tooltip = INT_faction_trade_opinion_factor_tooltip
	}
	add_to_variable = {
		INT_cic_construction_boost_factor  = 1
		tooltip = INT_cic_construction_boost_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_land_link = {
	custom_effect_tooltip = INT_internationale_commie_modifier
	add_to_variable = {
		INT_production_speed_rail_way_factor  = 0.15
		tooltip = INT_production_speed_rail_way_factor_tooltip
	}
	add_to_variable = {
		INT_production_speed_infrastructure_factor = 0.1
		tooltip = INT_production_speed_infrastructure_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_world_passage = {
	custom_effect_tooltip = INT_internationale_commie_modifier
	add_to_variable = {
		INT_mission_convoy_escort_efficiency  = 0.15
		tooltip = INT_mission_convoy_escort_efficiency_tooltip
	}
	add_to_variable = {
		INT_industrial_capacity_dockyard = 0.05
		tooltip = INT_industrial_capacity_dockyard_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_commodity_in_circulation = {
	custom_effect_tooltip = INT_internationale_commie_modifier
	add_to_variable = {
		INT_consumer_goods_factor = -0.05
		tooltip = INT_consumer_goods_factor_tooltip
	}
	add_to_variable = {
		INT_industrial_capacity_factory = 0.02
		tooltip = INT_industrial_capacity_factory_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_each_does_its_best = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_industrial_capacity_factory = 0.025
		tooltip = INT_industrial_capacity_factory_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_each_takes_what_it_needs = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_consumer_goods_factor = -0.025
		tooltip = INT_consumer_goods_factor_tooltip
	}
	add_to_variable = {
		INT_production_factory_efficiency_gain_factor = 0.025
		tooltip = INT_production_factory_efficiency_gain_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_happiness_of_the_people = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_consumer_goods_factor = -0.1
		tooltip = INT_consumer_goods_factor_tooltip
	}
	add_to_variable = {
		INT_production_factory_efficiency_gain_factor = 0.025
		tooltip = INT_production_factory_efficiency_gain_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}
####mili
INT_mili_industrial_cop = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_max_fuel_factor = 0.1
		tooltip = INT_max_fuel_factor_tooltip
	}
	add_to_variable = {
		INT_fuel_gain_factor = 0.1
		tooltip = INT_fuel_gain_factor_tooltip
	}
	add_to_variable = {
		INT_production_speed_synthetic_refinery_factor = 0.05
		tooltip = INT_production_speed_synthetic_refinery_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_milit_coop = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_experience_gain_army_factor = 0.05
		tooltip = INT_experience_gain_army_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_air_milit_coop = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_experience_gain_air_factor = 0.05
		tooltip = INT_experience_gain_air_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_seamili_cop = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_experience_gain_navy_factor = 0.05
		tooltip = INT_experience_gain_navy_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}
####techn
INT_techn_cop = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_research_speed_factor = 0.02
		tooltip = INT_research_speed_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_techn_cop_e = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_industrial_capacity_factory = 0.025
		tooltip = INT_industrial_capacity_factory_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_techn_cop_s = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_industrial_capacity_dockyard  = 0.025
		tooltip = INT_industrial_capacity_dockyard_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_techn_cop_i = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_factory_max_efficiency_factor  = 0.025
		tooltip = INT_production_factory_max_efficiency_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_techn_cop_w = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_production_speed_buildings_factor = 0.025
		tooltip = INT_production_speed_buildings_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_socedu = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_syndicalist_drift = 0.01
		tooltip = INT_syndicalist_drift_tooltip
	}
	add_to_variable = {
		INT_totalist_drift = 0.01
		tooltip = INT_totalist_drift_tooltip
	}
	add_to_variable = {
		INT_radical_socialist_drift = 0.01
		tooltip = INT_radical_socialist_drift_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_global_student = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_weekly_manpower = 100
		tooltip = INT_weekly_manpower_tooltip
	}
	add_to_variable = {
		INT_consumer_goods_factor = 0.02
		tooltip = INT_consumer_goods_factor_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_brother_from_aaa = {
	custom_effect_tooltip = INT_internationale_commie_modifier	
	add_to_variable = {
		INT_send_volunteer_size = 1
		tooltip = INT_send_volunteer_size_tooltip
	}
	force_update_dynamic_modifier = yes
}

INT_pass_the_coop_level_eco = {
	if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop < 1 }
		}
		set_country_flag = Pha_eco_coop_level1
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 0 }
			check_variable = { Pha_completed_eco_coop < 3 }
		}
		set_country_flag = Pha_eco_coop_level2
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 2 }
			check_variable = { Pha_completed_eco_coop < 5 }
		}
		set_country_flag = Pha_eco_coop_level3
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 4 }
			check_variable = { Pha_completed_eco_coop < 7 }
		}
		set_country_flag = Pha_eco_coop_level4
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 6 }
		}
		set_country_flag = Pha_eco_coop_level5
	}
}

INT_agree_the_coop_level_set_eco = {
	if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop < 1 }
		}
		set_variable = { Pha_agree_the_coop = 80 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 0 }
			check_variable = { Pha_completed_eco_coop < 3 }
		}
		set_variable = { Pha_agree_the_coop = 70 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 2 }
			check_variable = { Pha_completed_eco_coop < 5 }
		}
		set_variable = { Pha_agree_the_coop = 60 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 4 }
			check_variable = { Pha_completed_eco_coop < 7 }
		}
		set_variable = { Pha_agree_the_coop = 50 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_eco_coop > 6 }
		}
		set_variable = { Pha_agree_the_coop = 40 }
	}
	INT_count_the_disagree = yes
}

INT_pass_the_coop_level_tech = {
	if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop < 3 }
		}
		set_country_flag = Pha_tech_coop_level1
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop > 2 }
			check_variable = { Pha_completed_tech_coop < 6 }
		}
		set_country_flag = Pha_tech_coop_level2
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop > 5 }
			check_variable = { Pha_completed_tech_coop < 9 }
		}
		set_country_flag = Pha_tech_coop_level3
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop > 8 }
		}
		set_country_flag = Pha_tech_coop_level4
	}
}

INT_agree_the_coop_level_set_tech = {
	if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop < 3 }
		}
		set_variable = { Pha_agree_the_coop = 80 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop > 2 }
			check_variable = { Pha_completed_tech_coop < 6 }
		}
		set_variable = { Pha_agree_the_coop = 75 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop > 5 }
			check_variable = { Pha_completed_tech_coop < 9 }
		}
		set_variable = { Pha_agree_the_coop = 70 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_tech_coop > 8 }
		}
		set_variable = { Pha_agree_the_coop = 70 }
	}
	INT_count_the_disagree = yes
}

INT_pass_the_coop_level_ind = {
	if = {
		limit = { 
			check_variable = { Pha_completed_ind_coop < 1 }
		}
		set_country_flag = Pha_ind_coop_level1
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_ind_coop > 0 }
			check_variable = { Pha_completed_ind_coop < 2 }
		}
		set_country_flag = Pha_ind_coop_level2
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_ind_coop > 1 }
		}
		set_country_flag = Pha_ind_coop_level3
	}
}

INT_agree_the_coop_level_set_ind = {
	if = {
		limit = { 
			check_variable = { Pha_completed_ind_coop < 1 }
		}
		set_variable = { Pha_agree_the_coop = 70 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_ind_coop > 0 }
			check_variable = { Pha_completed_ind_coop < 2 }
		}
		set_variable = { Pha_agree_the_coop = 60 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_ind_coop > 1 }
		}
		set_variable = { Pha_agree_the_coop = 50 }
	}
	INT_count_the_disagree = yes
}

INT_pass_the_coop_level_res = {
	if = {
		limit = { 
			check_variable = { Pha_completed_res_coop < 1 }
		}
		set_country_flag = Pha_res_coop_level1
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_res_coop > 0 }
			check_variable = { Pha_completed_res_coop < 2 }
		}
		set_country_flag = Pha_res_coop_level2
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_res_coop > 1 }
		}
		set_country_flag = Pha_res_coop_level3
	}
}

INT_agree_the_coop_level_set_res = {
	if = {
		limit = { 
			check_variable = { Pha_completed_res_coop < 1 }
		}
		set_variable = { Pha_agree_the_coop = 60 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_res_coop > 0 }
			check_variable = { Pha_completed_res_coop < 2 }
		}
		set_variable = { Pha_agree_the_coop = 50 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_res_coop > 1 }
		}
		set_variable = { Pha_agree_the_coop = 40 }
	}
	INT_count_the_disagree = yes
}

INT_pass_the_coop_level_air = {
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_airmili_cop }
			NOT = { FRA = { has_completed_focus = FRA_red_sky_fighter } }
		}
		set_country_flag = Pha_air_coop_level1
	}
	else_if = {
		limit = { 
			FRA = { has_completed_focus = FRA_red_sky_fighter }
		}
		set_country_flag = Pha_air_coop_level2
	}
}

INT_agree_the_coop_level_set_air = {
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_airmili_cop }
			NOT = { FRA = { has_completed_focus = FRA_red_sky_fighter } }
		}
		set_variable = { Pha_agree_the_coop = 60 }
	}
	else_if = {
		limit = { 
			FRA = { has_completed_focus = FRA_red_sky_fighter }
		}
		set_variable = { Pha_agree_the_coop = 50 }
	}
	INT_count_the_disagree = yes
}

INT_pass_the_coop_level_sea = {
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_seamili_cop }
			NOT = { FRA = { has_completed_focus = FRA_united_sea_rad_army } }
		}
		set_country_flag = Pha_sea_coop_level1
	}
	else_if = {
		limit = { 
			FRA = { has_completed_focus = FRA_united_sea_rad_army }
		}
		set_country_flag = Pha_sea_coop_level2
	}
}

INT_agree_the_coop_level_set_sea = {
	if = {
		limit = { 
			FRA = { has_completed_focus = FRA_seamili_cop }
			NOT = { FRA = { has_completed_focus = FRA_united_sea_rad_army } }
		}
		set_variable = { Pha_agree_the_coop = 60 }
	}
	else_if = {
		limit = { 
			FRA = { has_completed_focus = FRA_united_sea_rad_army }
		}
		set_variable = { Pha_agree_the_coop = 50 }
	}
	INT_count_the_disagree = yes
}

INT_pass_the_coop_level_army = {
	if = {
		limit = { 
			check_variable = { Pha_completed_army_coop < 1 }
		}
		set_country_flag = Pha_army_coop_level1
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 0 }
			check_variable = { Pha_completed_army_coop < 3 }
		}
		set_country_flag = Pha_army_coop_level2
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 2 }
			check_variable = { Pha_completed_army_coop < 5 }
		}
		set_country_flag = Pha_army_coop_level3
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 4 }
			check_variable = { Pha_completed_army_coop < 7 }
		}
		set_country_flag = Pha_army_coop_level4
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 6 }
		}
		set_country_flag = Pha_army_coop_level5
	}
}

INT_agree_the_coop_level_set_army = {
	if = {
		limit = { 
			check_variable = { Pha_completed_army_coop < 1 }
		}
		set_variable = { Pha_agree_the_coop = 70 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 0 }
			check_variable = { Pha_completed_army_coop < 3 }
		}
		set_variable = { Pha_agree_the_coop = 60 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 2 }
			check_variable = { Pha_completed_army_coop < 5 }
		}
		set_variable = { Pha_agree_the_coop = 50 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 4 }
			check_variable = { Pha_completed_army_coop < 7 }
		}
		set_variable = { Pha_agree_the_coop = 40 }
	}
	else_if = {
		limit = { 
			check_variable = { Pha_completed_army_coop > 6 }
		}
		set_variable = { Pha_agree_the_coop = 30 }
	}
	INT_count_the_disagree = yes
}

INT_pass_the_coop_level_set_total = {
	if = {
		limit = { 
			has_country_flag = FRA_pha_coop_eco
		}
		INT_agree_the_coop_level_set_eco = yes
	}
	else_if = {
		limit = { 
			has_country_flag = FRA_pha_coop_tech
		}
		INT_agree_the_coop_level_set_tech = yes
	}
	else_if = {
		limit = { 
			has_country_flag = FRA_pha_coop_ind
		}
		INT_agree_the_coop_level_set_ind = yes
	}
	else_if = {
		limit = { 
			has_country_flag = FRA_pha_coop_res
		}
		INT_agree_the_coop_level_set_res = yes
	}
	else_if = {
		limit = { 
			has_country_flag = FRA_pha_coop_air
		}
		INT_agree_the_coop_level_set_air = yes
	}
	else_if = {
		limit = { 
			has_country_flag = FRA_pha_coop_sea
		}
		INT_agree_the_coop_level_set_sea = yes
	}
	else_if = {
		limit = { 
			has_country_flag = FRA_pha_coop_army
		}
		INT_agree_the_coop_level_set_army = yes
	}
	INT_count_the_agree_disrespect = yes
}

INT_count_the_agree_disrespect = {
	if = { 
		limit = { check_variable = { Pha_disrepect = 1 } }
		add_to_variable = { Pha_agree_the_coop = -5 }
	}
	else_if = { 
		limit = { check_variable = { Pha_disrepect = 2 } }
		add_to_variable = { Pha_agree_the_coop = -10 }
	}
	else_if = { 
		limit = { check_variable = { Pha_disrepect = 3 } }
		add_to_variable = { Pha_agree_the_coop = -20 }
	}
	else_if = { 
		limit = { check_variable = { Pha_disrepect = 4 } }
		add_to_variable = { Pha_agree_the_coop = -35 }
	}
	else_if = { 
		limit = { check_variable = { Pha_disrepect = 5 } }
		add_to_variable = { Pha_agree_the_coop = -50 }
	}
	else_if = { 
		limit = { check_variable = { Pha_disrepect = 0 } }
		add_to_variable = { Pha_agree_the_coop = 0 }
	}
}

INT_count_the_disagree = {
	set_variable = { Pha_disagree_the_coop = 100 }
	subtract_from_variable = { Pha_disagree_the_coop = var:Pha_agree_the_coop }
}

INT_limit_the_var = {
	clamp_variable = {
		var = Pha_agree_the_coop
		min = 0
		max = 100
	}
	clamp_variable = {
		var = Pha_disrepect
		min = 0
		max = 5
	}
}

INT_pass_the_coop = {
	if = {
		limit = { has_country_flag = FRA_pha_coop_eco }
		INT_pass_the_coop_level_eco = yes
		clr_country_flag = FRA_pha_coop_eco
	}
	else_if = {
		limit = { has_country_flag = FRA_pha_coop_tech }
		INT_pass_the_coop_level_tech = yes
		clr_country_flag = FRA_pha_coop_tech
	}
	else_if = {
		limit = { has_country_flag = FRA_pha_coop_ind }
		INT_pass_the_coop_level_ind = yes
		clr_country_flag = FRA_pha_coop_ind
	}
	else_if = {
		limit = { has_country_flag = FRA_pha_coop_res }
		INT_pass_the_coop_level_res = yes
		clr_country_flag = FRA_pha_coop_res
	}
	else_if = {
		limit = { has_country_flag = FRA_pha_coop_air }
		INT_pass_the_coop_level_air = yes
		clr_country_flag = FRA_pha_coop_air
	}
	else_if = {
		limit = { has_country_flag = FRA_pha_coop_sea }
		INT_pass_the_coop_level_sea = yes
		clr_country_flag = FRA_pha_coop_sea
	}
	else_if = {
		limit = { has_country_flag = FRA_pha_coop_army }
		INT_pass_the_coop_level_army = yes
		clr_country_flag = FRA_pha_coop_army
	}
}

INT_end_the_meeting = {
	clr_country_flag = FRA_pha_in_progress
	clr_country_flag = FRA_pha_ahead_end
	set_variable = { Pha_agree_the_coop = 0 }

	clr_country_flag = FRA_pha_discuss_about_eco
	clr_country_flag = FRA_pha_discuss_about_tech
	clr_country_flag = FRA_pha_discuss_about_ind
	clr_country_flag = FRA_pha_discuss_about_res
	clr_country_flag = FRA_pha_discuss_about_air
	clr_country_flag = FRA_pha_discuss_about_sea
	clr_country_flag = FRA_pha_discuss_about_army
}

FRA_world_invention_clean = {
	clr_country_flag = FRA_western_eup_enable_once
	clr_country_flag = FRA_middle_eup_enable_once
	clr_country_flag = FRA_north_eup_enable_once
	clr_country_flag = FRA_russia_enable_once
	clr_country_flag = FRA_eastern_asia_enable_once
	clr_country_flag = FRA_southern_asia_enable_once
	clr_country_flag = FRA_southeast_asia_enable_once
	clr_country_flag = FRA_mideast_iran_enable_once
	clr_country_flag = FRA_mideast_ottoman_enable_once
	clr_country_flag = FRA_mideast_egypt_enable_once
	clr_country_flag = FRA_mideast_arab_enable_once
	clr_country_flag = FRA_mideast_ethiopia_enable_once
	clr_country_flag = FRA_northern_afr_enable_once
	clr_country_flag = FRA_middle_afr_enable_once
	clr_country_flag = FRA_southern_afr_enable_once
	clr_country_flag = FRA_northern_amer_enable_once
	clr_country_flag = FRA_middle_amer_enable_once
	clr_country_flag = FRA_southern_amer_enable_once
}

FRA_invention_auto_complete_set_eu = {
		random_list = {
			1 = {
				modifier = {
					factor = 0
					has_completed_focus = FRA_memorandum_of_lberia
				}
				activate_shine_on_focus = FRA_memorandum_of_lberia
				set_country_flag = auto_FRA_memorandum_of_lberia
				country_event = { id = frapha.101 days = 14 }
			}
			1 = {
				modifier = {
					factor = 0
					has_completed_focus = FRA_memorandum_of_apennine
				}
				activate_shine_on_focus = FRA_memorandum_of_apennine
				set_country_flag = auto_FRA_memorandum_of_apennine
				country_event = { id = frapha.101 days = 14 }
			}
			1 = {
				modifier = {
					factor = 0
					has_completed_focus = FRA_memorandum_of_britain
				}
				activate_shine_on_focus = FRA_memorandum_of_britain
				set_country_flag = auto_FRA_memorandum_of_britain
				country_event = { id = frapha.101 days = 14 }
			}
			1 = {
				modifier = {
					factor = 0
					has_completed_focus = FRA_people_under_the_kaiser
				}
				if = {
					limit = { NOT = { has_completed_focus = FRA_memorandum_of_kaiser } }
					activate_shine_on_focus = FRA_memorandum_of_kaiser
					set_country_flag = auto_FRA_memorandum_of_kaiser
					country_event = { id = frapha.101 days = 14 }
				}
				else_if = {
					limit = { NOT = { has_completed_focus = FRA_people_under_the_kaiser } }
					activate_shine_on_focus = FRA_people_under_the_kaiser
					set_country_flag = auto_FRA_people_under_the_kaiser
					country_event = { id = frapha.101 days = 14 }
				}		
			}
		}
	
}

FRA_invention_auto_complete_set_as = {
	
	if = {
		limit = { NOT = { has_completed_focus = FRA_one_night_in_zhejiang } }
		activate_shine_on_focus = FRA_one_night_in_zhejiang
		set_country_flag = auto_FRA_one_night_in_zhejiang
		country_event = { id = frapha.102 days = 14 }
	}
	else_if = {
		limit = { NOT = { has_completed_focus = FRA_our_indian_friends } }
		activate_shine_on_focus = FRA_our_indian_friends
		set_country_flag = auto_FRA_our_indian_friends
		country_event = { id = frapha.102 days = 14 }
	}
	else_if = {
		limit = { NOT = { has_completed_focus = FRA_archipelagic_dream } }
		activate_shine_on_focus = FRA_archipelagic_dream
		set_country_flag = auto_FRA_archipelagic_dream
		country_event = { id = frapha.102 days = 14 }
	}
}

FRA_invention_auto_complete_set_me = {
	random_list = {
		1 = {
			modifier = {
				factor = 0
				has_completed_focus = FRA_under_the_sudan
			}
			activate_shine_on_focus = FRA_under_the_sudan
			set_country_flag = auto_FRA_under_the_sudan
			country_event = { id = frapha.103 days = 14 }
		}
		1 = {
			modifier = {
				factor = 0
				has_completed_focus = FRA_on_the_side_of_shah
			}
			activate_shine_on_focus = FRA_on_the_side_of_shah
			set_country_flag = auto_FRA_on_the_side_of_shah
			country_event = { id = frapha.103 days = 14 }
		}
	}
	if = {
		limit = { 
			has_completed_focus = FRA_under_the_sudan
			has_completed_focus = FRA_on_the_side_of_shah
			NOT = { has_completed_focus = FRA_lonely_boat_in_the_desert } 
		}
		activate_shine_on_focus = FRA_lonely_boat_in_the_desert
		set_country_flag = auto_FRA_lonely_boat_in_the_desert
		country_event = { id = frapha.103 days = 14 }
	}
}

FRA_invention_auto_complete_set_am = {
	if = {
		limit = { NOT = { has_completed_focus = FRA_chicago_fellowship } }
		activate_shine_on_focus = FRA_chicago_fellowship
		set_country_flag = auto_FRA_chicago_fellowship
		country_event = { id = frapha.104 days = 14 }
	}
	else_if = {
			limit = { NOT = { has_completed_focus = FRA_southern_cone_revolution } }
			activate_shine_on_focus = FRA_southern_cone_revolution
			set_country_flag = auto_FRA_southern_cone_revolution
			country_event = { id = frapha.104 days = 14 }
		
	}
	else_if = {
			limit = { NOT = { has_completed_focus = FRA_another_meterorite_strike } }
			activate_shine_on_focus = FRA_another_meterorite_strike
			set_country_flag = auto_FRA_another_meterorite_strike
			country_event = { id = frapha.104 days = 14 }
	}
}

FRA_invention_auto_complete_set_af = {
	random_list = {
		1 = {
			modifier = {
				factor = 0
				has_completed_focus = FRA_tratior_to_the_motherland
			}
			activate_shine_on_focus = FRA_tratior_to_the_motherland
			set_country_flag = auto_FRA_tratior_to_the_motherland
			country_event = { id = frapha.105 days = 14 }
		}
		1 = {
			modifier = {
				factor = 0
				has_completed_focus = FRA_sinful_legacy_of_victoria
			}
			activate_shine_on_focus = FRA_sinful_legacy_of_victoria
			set_country_flag = auto_FRA_sinful_legacy_of_victoria
			country_event = { id = frapha.105 days = 14 }
		}
		1 = {
			modifier = {
				factor = 0
				has_completed_focus = FRA_the_huge_cage_in_the_sun
			}
			activate_shine_on_focus = FRA_the_huge_cage_in_the_sun
			set_country_flag = auto_FRA_the_huge_cage_in_the_sun
			country_event = { id = frapha.105 days = 14 }
		}
	}
	if = {
		limit = { 
			has_completed_focus = FRA_tratior_to_the_motherland
			has_completed_focus = FRA_sinful_legacy_of_victoria
			has_completed_focus = FRA_the_huge_cage_in_the_sun
			NOT = { has_completed_focus = FRA_the_break_of_south_africa } 
		}
		activate_shine_on_focus = FRA_the_break_of_south_africa
		set_country_flag = auto_FRA_the_break_of_south_africa
		country_event = { id = frapha.105 days = 14 }
	}
}