FRA_civil_unrest_category = { FRA_communist_civil_war_decision = { icon = generic_civil_support available = { OR = { has_stability > 0.25 communism < 0.01 has_government = communism has_completed_focus = FRA_form_the_popular_front custom_trigger_tooltip = { tooltip = french_communist_civil_war_intervention_tt AND = { has_war = yes NOT = { AND = { SPR_scw_in_progress = yes any_enemy_country = { original_tag = SPR #civil war still fires if in intervention in Spain } } } } } } } days_mission_timeout = 90 days_remove = 0 activation = { has_stability < 0.25 communism > 0.00 OR = { has_war = no AND = { has_war = yes AND = { SPR_scw_in_progress = yes any_enemy_country = { original_tag = SPR #civil war still fires if in intervention in Spain } } } } not = { has_completed_focus = FRA_form_the_popular_front } not = { has_global_flag = flag_french_communist_civil_war } } allowed = { original_tag = FRA } fixed_random_seed = no fire_only_once = no is_good = no timeout_effect = { set_global_flag = flag_french_communist_civil_war country_event = { id = lar_low_stability_civil_war.1 } } } FRA_fascist_civil_war_decision = { icon = generic_civil_support available = { OR = { has_stability > 0.25 has_government = fascism has_completed_focus = FRA_destroy_the_counter_revolution custom_trigger_tooltip = { tooltip = french_communist_civil_war_intervention_tt AND = { has_war = yes NOT = { AND = { SPR_scw_in_progress = yes any_enemy_country = { original_tag = SPR #civil war still fires if in intervention in Spain } } } } } } } days_mission_timeout = 90 days_remove = 0 activation = { has_stability < 0.25 OR = { has_war = no AND = { has_war = yes AND = { SPR_scw_in_progress = yes any_enemy_country = { original_tag = SPR #civil war still fires if in intervention in Spain } } } } has_completed_focus = FRA_form_the_popular_front NOT = { has_completed_focus = FRA_destroy_the_counter_revolution } not = { has_global_flag = flag_french_fascist_civil_war } } allowed = { original_tag = FRA } fixed_random_seed = no fire_only_once = no is_good = no timeout_effect = { set_global_flag = flag_french_fascist_civil_war country_event = { id = lar_low_stability_civil_war.2 } } } } FRA_vichy_france = { FRA_scuttle_the_fleet = { icon = generic_ignite_civil_war available = { has_government = fascism NOT = { GER = { divisions_in_state = { state = 851 size > 0 } } #BBA: Replaced state 21 (Provence - Bouches-du-Rhone) by stat 851 (Provence - Var), where Toulon is } has_country_flag = { flag = case_anton days > 2 } } cost = 0 ai_will_do = { factor = 200 } visible = { has_government = fascism has_country_flag = case_anton } complete_effect = { set_country_flag = scuttled_fleet destroy_ships = { type = ship_hull_light count = all } destroy_ships = { type = ship_hull_cruiser count = all } destroy_ships = { type = ship_hull_heavy count = all } destroy_ships = { type = ship_hull_carrier count = all } destroy_ships = { type = ship_hull_submarine count = all } } } FRA_case_anton_mission = { icon = generic_tank available = { is_subject = no has_war_with = GER } days_mission_timeout = 7 fire_only_once = yes activation = { original_tag = FRA has_government = fascism OR = { is_subject_of = GER has_focus_tree = vichy_french_focus } has_country_flag = case_anton } complete_effect = { custom_effect_tooltip = FRA_case_anton_mission_tt } is_good = no timeout_effect = { # Remove states that should not go to Germany - then Germany annexes Vichy France hidden_effect = { random_country = { limit = { original_tag = FRA NOT = { tag = ROOT } has_war_with = GER } set_variable = { GER.transfer_target = THIS } # transfer states to Free France if controlled by Free france ROOT = { every_owned_state = { limit = { is_controlled_by = PREV.PREV } transfer_state_to = GER.transfer_target } } # transfer non-core states to Free France if Germany does not have troops in them ROOT = { every_owned_state = { limit = { NOT = { is_core_of = FRA } is_controlled_by_ROOT_or_ally = yes } set_variable = { GER.state_to_target = THIS} IF = { limit = { GER = { divisions_in_state = { state = GER.state_to_target size < 1 } NOT = { any_allied_country = { NOT = { tag = ROOT } divisions_in_state = { state = GER.state_to_target size > 0 } } } } } transfer_state_to = GER.transfer_target } } } } GER = { annex_country = { target = ROOT } } } transfer_navy = { target = GER } effect_tooltip = { GER = { annex_country = { target = ROOT } } } if = { limit = { NOT = { has_country_flag = scuttled_fleet } } GER = { news_event = { id = wtt_news.23 hours = 6 } } } if = { limit = { has_country_flag = scuttled_fleet } GER = { news_event = { id = wtt_news.24 hours = 6 } } } custom_effect_tooltip = GAME_OVER_TT } } FRA_demand_unification_with_vichy = { available = { country_exists = VIC VIC = { NOT = { has_war_with = ROOT } } controls_state = 16 #Paris } visible = { NOT = { tag = VIC } country_exists = VIC } ai_will_do = { factor = 200 } cost = 0 fire_only_once = yes complete_effect = { random_other_country = { limit = { tag = VIC } country_event = lar_france_vichy_reunification.1 } } } FRA_failsafe_join_axis = { available = { tag = VIC NOT = { has_war_with = GER is_in_faction_with = GER } date > 1942.6.1 FRA = { any_controlled_state = { NOT = { #algeria state = 459 state = 460 state = 513 } is_core_of = FRA } } } visible = { is_ai = yes #if you are not a member of the dev team - avert thy eyes, traveller, for thou hath gazed upon my shame } ai_will_do = { factor = 10 } cost = 0 fire_only_once = yes complete_effect = { set_rule = { can_join_factions = yes } GER = { add_to_faction = ROOT } } } } category_test_decisions = { test_free_france = { allowed = { original_tag = FRA } cost = 0 ai_will_do = { factor = 0 } complete_effect = { load_focus_tree = free_french_focus } } test_vichy_france = { allowed = { original_tag = FRA } cost = 0 ai_will_do = { factor = 0 } complete_effect = { create_dynamic_country = { original_tag = FRA save_event_target_as = france_vichy every_state = { limit = { is_controlled_by = ROOT OR = { is_on_continent = africa is_core_of = VIN is_core_of = CAM is_core_of = LAO is_core_of = LEB is_core_of = SYR } } event_target:france_vichy = { transfer_state = PREV } } every_state = { limit = { is_controlled_by = ROOT OR = { state = 735 state = 21 state = 851 state = 32 state = 20 state = 26 state = 22 state = 31 state = 25 state = 33 } } add_core_of = PREV event_target:france_vichy = { transfer_state = PREV } } every_state = { limit = { is_controlled_by = ROOT is_core_of = ROOT NOT = { is_controlled_by = event_target:france_vichy } } add_core_of = PREV } set_capital = { state = 26 } set_politics = { ruling_party = fascism elections_allowed = no } set_popularities = { democratic = 0 neutrality = 20 fascism = 80 communism = 0 } FRA = { FRA_philippe_petain= { set_nationality = event_target:france_vichy } } FRA_philippe_petain= { add_country_leader_role = { country_leader = { expire = "1965.1.1" ideology = fascism_ideology traits = { } } promote_leader = yes } } set_cosmetic_tag = FRA_VICHY add_ideas = FRA_occupation_costs_4 load_focus_tree = vichy_french_focus FRA = { transfer_units_fraction = { target = event_target:france_vichy size = 0.9 stockpile_ratio = 0.7 army_ratio = 0.5 navy_ratio = 0.85 air_ratio = 1.0 } } event_target:france_vichy = {set_country_flag = vichy_france} change_tag_from = FRA } } } } FRA_weapons_purchases_category = { FRA_order_weapons_in_USA = { icon = generic_prepare_civil_war available = { } visible = { USA_can_sell_weapons_trigger = yes } days_remove = 60 cost = 50 ai_will_do = { factor = 10 modifier = { has_equipment = { infantry_equipment < 1 } factor = 50 } modifier = { has_manpower < 10000 factor = 0 #need to up conscription laws } } complete_effect = { USA = { add_offsite_building = { type = industrial_complex level = 2 } } } remove_effect = { add_equipment_to_stockpile = { type = infantry_equipment amount = 2500 } if = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = infantry_equipment seller_tags = { USA } } } USA = { add_offsite_building = { type = industrial_complex level = -2 } } } } FRA_order_artillery_in_USA = { icon = ger_military_buildup available = { } visible = { USA_can_sell_weapons_trigger = yes } days_remove = 60 cost = 75 ai_will_do = { factor = 5 modifier = { has_equipment = { artillery_equipment < 1 } factor = 50 } modifier = { has_manpower < 10000 factor = 0 #need to up conscription laws } } complete_effect = { USA = { add_offsite_building = { type = industrial_complex level = 3 } } } remove_effect = { add_equipment_to_stockpile = { type = artillery_equipment amount = 75 } if = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 250 equipment_type = artillery_equipment seller_tags = { USA } } } USA = { add_offsite_building = { type = industrial_complex level = -3 } } } } FRA_order_tanks_in_USA = { icon = GFX_decision_generic_tank available = { } visible = { USA_can_sell_weapons_trigger = yes } days_remove = 60 cost = 100 ai_will_do = { factor = 1 modifier = { has_equipment = { light_tank_chassis < 50 } factor = 5 } modifier = { has_manpower < 10000 factor = 0 #need to up conscription laws } } modifier = { } complete_effect = { USA = { add_offsite_building = { type = industrial_complex level = 5 } } } remove_effect = { if = { limit = { USA = { OR = { has_tech = basic_light_tank has_tech = basic_light_tank_chassis } NOT = { OR = { has_tech = basic_medium_tank has_tech = improved_medium_tank #needed because basic can be bypassed has_tech = basic_medium_tank_chassis has_tech = improved_medium_tank_chassis } } } } add_equipment_to_stockpile = { type = light_tank_chassis amount = 50 } if = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = light_tank_chassis seller_tags = { USA } } } } else_if = { limit = { USA = { OR = { has_tech = basic_medium_tank has_tech = improved_medium_tank #needed because basic can be bypassed has_tech = basic_medium_tank_chassis has_tech = improved_medium_tank_chassis } } } add_equipment_to_stockpile = { type = medium_tank_chassis amount = 50 } if = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = medium_tank_chassis seller_tags = { USA } } } } USA = { add_offsite_building = { type = industrial_complex level = -5 } } } } FRA_order_fighters_in_USA = { icon = generic_air available = { } visible = { OR = { original_tag = FRA has_completed_focus = PHI_aircraft_requisition } USA_can_sell_weapons_trigger = yes } days_remove = 60 cost = 100 ai_will_do = { factor = 1 modifier = { has_equipment = { small_plane_airframe < 1 } factor = 5 } modifier = { has_manpower < 10000 factor = 0 #need to up conscription laws } } modifier = { } complete_effect = { USA = { add_offsite_building = { type = industrial_complex level = 5 } } } remove_effect = { if = { limit = { NOT = { has_dlc = "By Blood Alone" } } add_equipment_to_stockpile = { type = fighter_equipment_1 amount = 50 producer = USA } } else = { add_equipment_to_stockpile = { type = small_plane_airframe_1 amount = 50 producer = USA variant_name = "P-36A" } } if = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = small_plane_airframe seller_tags = { USA } } } USA = { add_offsite_building = { type = industrial_complex level = -5 } } } } FRA_order_bombers_in_USA = { icon = generic_air available = { } visible = { OR = { original_tag = FRA has_completed_focus = PHI_aircraft_requisition } USA_can_sell_weapons_trigger = yes } days_remove = 60 cost = 100 ai_will_do = { factor = 1 modifier = { has_equipment = { medium_plane_airframe < 1 } factor = 5 } modifier = { has_manpower < 10000 factor = 0 #need to up conscription laws } } modifier = { } complete_effect = { USA = { add_offsite_building = { type = industrial_complex level = 5 } } } remove_effect = { if = { limit = { NOT = { has_dlc = "By Blood Alone" } } add_equipment_to_stockpile = { type = tac_bomber_equipment_1 amount = 25 producer = USA } } else = { add_equipment_to_stockpile = { type = medium_plane_airframe_1 amount = 25 producer = USA variant_name = "B-18" } } if = { limit = { has_dlc = "Arms Against Tyranny" } add_equipment_subsidy = { cic = 500 equipment_type = medium_plane_airframe seller_tags = { USA } } } USA = { add_offsite_building = { type = industrial_complex level = -5 } } } } } FRA_spanish_intervention_category = { FRA_invite_FROM_to_non_intervention = { available = { has_country_flag = FRA_non_intervention } target_array = global.majors target_trigger = { FROM = { exists = yes NOT = { has_country_flag = FRA_non_intervention_agreed has_country_flag = FRA_non_intervention_refused } capital_scope = { is_on_continent = europe } } } visible = { has_country_flag = FRA_non_intervention } target_root_trigger = { has_country_flag = FRA_non_intervention } cost = 25 fire_only_once = yes ai_will_do = { factor = 1 modifier = { not = { has_government = democratic } factor = 0 } modifier = { has_stability < 0.3 factor = 5 } } complete_effect = { FROM = { country_event = lar_non_intervention.1 } } } FRA_allow_non_military_aid = { available = { } visible = { not = { has_country_flag = FRA_non_military_aid_allowed } } cancel_trigger = { OR = { has_global_flag = scw_over not = { has_country_flag = FRA_non_military_aid_allowed } } } complete_effect = { set_country_flag = FRA_non_military_aid_allowed clr_country_flag = FRA_non_intervention custom_effect_tooltip = FRA_non_military_aid_tt unlock_decision_tooltip = FRA_ban_non_military_aid } cost = 25 ai_will_do = { factor = 1.5 modifier = { has_stability < 0.3 factor = 0 } } days_remove = -1 modifier = { stability_factor = -0.05 } } FRA_ban_non_military_aid = { available = { } visible = { has_country_flag = FRA_non_military_aid_allowed } complete_effect = { clr_country_flag = FRA_non_military_aid_allowed set_country_flag = FRA_non_intervention } cost = 0 ai_will_do = { factor = 0 modifier = { has_stability < 0.3 add = 5 } } } FRA_send_non_military_aid_to_FROM = { available = { has_equipment = { support_equipment > 99 } } visible = { has_country_flag = FRA_non_military_aid_allowed } target_root_trigger = { has_country_flag = FRA_non_military_aid_allowed } targets = { SPA SPR SPB SPC SPD } target_trigger = { FROM = { exists = yes has_war = yes NOT = { has_war_with = ROOT } } } days_re_enable = 30 complete_effect = { send_equipment = { type = support_equipment amount = 100 target = FROM } } ai_will_do = { factor = 1 modifier = { FROM = { has_government = ROOT } factor = 5 } } cost = 0 } FRA_allow_arms_purchases = { available = { } visible = { not = { has_country_flag = FRA_arms_purchases_allowed } } cancel_trigger = { OR = { has_global_flag = scw_over not = { has_country_flag = FRA_arms_purchases_allowed } } } complete_effect = { set_country_flag = FRA_arms_purchases_allowed clr_country_flag = FRA_non_intervention custom_effect_tooltip = FRA_allow_arms_purchases_tt unlock_decision_tooltip = FRA_ban_arms_purchases } cost = 25 ai_will_do = { factor = 1 modifier = { has_stability < 0.4 factor = 0 } } days_remove = -1 modifier = { stability_factor = -0.1 war_support_factor = 0.05 } } FRA_ban_arms_purchases = { available = { } visible = { has_country_flag = FRA_arms_purchases_allowed } complete_effect = { clr_country_flag = FRA_arms_purchases_allowed set_country_flag = FRA_non_intervention } cost = 0 ai_will_do = { factor = 0 modifier = { has_stability < 0.4 add = 5 } } } FRA_allow_sending_weapons = { available = { } visible = { not = { has_country_flag = FRA_sending_weapons_allowed } } cancel_trigger = { OR = { has_global_flag = scw_over not = { has_country_flag = FRA_sending_weapons_allowed } } } complete_effect = { set_country_flag = FRA_sending_weapons_allowed clr_country_flag = FRA_non_intervention unlock_decision_tooltip = FRA_ban_sending_weapons } cost = 25 days_remove = -1 modifier = { stability_factor = -0.15 war_support_factor = 0.075 lend_lease_tension = -1 request_lease_tension = -1 } ai_will_do = { factor = 1 modifier = { has_stability < 0.45 factor = 0 } } } FRA_ban_sending_weapons = { available = { } visible = { has_country_flag = FRA_sending_weapons_allowed } complete_effect = { clr_country_flag = FRA_sending_weapons_allowed } cost = 0 ai_will_do = { factor = 0 modifier = { has_stability < 0.45 add = 5 } } } FRA_allow_volunteer_work = { available = { } visible = { not = { has_country_flag = FRA_volunteer_work_allowed } } cancel_trigger = { OR = { has_global_flag = scw_over not = { has_country_flag = FRA_volunteer_work_allowed } } } complete_effect = { set_country_flag = FRA_volunteer_work_allowed clr_country_flag = FRA_non_intervention unlock_decision_tooltip = FRA_ban_volunteer_work every_other_country = { limit = { OR = { tag = SPA tag = SPD tag = SPB tag = SPC } exists = yes NOT = { has_country_flag = FRA_has_received_volunteers } } country_event = lar_france_volunteers.1 } custom_effect_tooltip = FRA_allow_volunteer_work_tt } cost = 25 ai_will_do = { factor = 1 modifier = { has_stability < 0.5 factor = 0 } } days_remove = -1 modifier = { stability_factor = -0.2 war_support_factor = 0.1 } } FRA_ban_volunteer_work = { available = { } visible = { has_country_flag = FRA_volunteer_work_allowed } complete_effect = { clr_country_flag = FRA_volunteer_work_allowed } ai_will_do = { factor = 0 modifier = { has_stability < 0.5 add = 5 } } cost = 0 } FRA_allow_covert_intervention = { available = { } visible = { not = { has_country_flag = FRA_covert_intervention_allowed } } cancel_trigger = { OR = { has_global_flag = scw_over not = { has_country_flag = FRA_covert_intervention_allowed } } } complete_effect = { set_country_flag = FRA_covert_intervention_allowed clr_country_flag = FRA_non_intervention set_rule = { can_send_volunteers = yes } } cost = 25 ai_will_do = { factor = 1 modifier = { has_stability < 0.55 factor = 0 } modifier = { has_stability < 0.8 factor = 0.5 } } days_remove = -1 modifier = { stability_factor = -0.25 war_support_factor = 0.125 send_volunteers_tension = -0.9 } } FRA_ban_covert_intervention = { available = { NOT = { any_other_country = { has_volunteers_amount_from = { tag = ROOT count > 0 } } } } visible = { has_country_flag = FRA_covert_intervention_allowed } complete_effect = { clr_country_flag = FRA_covert_intervention_allowed #recall_volunteers_from = SPR } cost = 0 ai_will_do = { factor = 0 modifier = { has_stability < 0.55 add = 5 } } } FRA_intervene_on_side_of_FROM = { available = { has_war_support > 0.25 } visible = { has_war = no } targets = { SPD SPA SPB SPR } target_trigger = { FROM = { original_tag = SPR has_government = ROOT } } complete_effect = { #This is not optimal, but it generates a beautiful tooltip if = { limit = { FROM = { tag = SPD } } set_country_flag = supports_SPD_flag if = { limit = { country_exists = SPA } add_to_war = { targeted_alliance = SPD enemy = SPA hostility_reason = asked_to_join } } if = { limit = { country_exists = SPC } add_to_war = { targeted_alliance = SPD enemy = SPC hostility_reason = asked_to_join } } if = { limit = { country_exists = SPB } add_to_war = { targeted_alliance = SPD enemy = SPB hostility_reason = asked_to_join } } } else_if = { limit = { FROM = { tag = SPA } } set_country_flag = supports_SPA_flag if = { limit = { country_exists = SPD } add_to_war = { targeted_alliance = SPA enemy = SPD hostility_reason = asked_to_join } } if = { limit = { country_exists = SPC } add_to_war = { targeted_alliance = SPA enemy = SPC hostility_reason = asked_to_join } } if = { limit = { country_exists = SPB } add_to_war = { targeted_alliance = SPA enemy = SPB hostility_reason = asked_to_join } } } else_if = { limit = { FROM = { tag = SPB } } set_country_flag = supports_SPB_flag if = { limit = { country_exists = SPD } add_to_war = { targeted_alliance = SPB enemy = SPD hostility_reason = asked_to_join } } if = { limit = { country_exists = SPC } add_to_war = { targeted_alliance = SPB enemy = SPC hostility_reason = asked_to_join } } if = { limit = { country_exists = SPA } add_to_war = { targeted_alliance = SPB enemy = SPA hostility_reason = asked_to_join } } } effect_tooltip = { give_military_access = FROM FROM = { give_military_access = ROOT } } hidden_effect = { diplomatic_relation = { country = FROM relation = military_access active = yes } FROM = { diplomatic_relation = { country = ROOT relation = military_access active = yes } } } if = { limit = { is_faction_leader = yes } add_to_faction = FROM } clr_country_flag = FRA_non_intervention if = { limit = { has_country_flag = FRA_covert_intervention_allowed } clr_country_flag = FRA_covert_intervention_allowed } if = { limit = { has_country_flag = FRA_volunteer_work_allowed } clr_country_flag = FRA_volunteer_work_allowed } if = { limit = { has_country_flag = FRA_sending_weapons_allowed } clr_country_flag = FRA_sending_weapons_allowed } if = { limit = { has_country_flag = FRA_non_military_aid_allowed } clr_country_flag = FRA_non_military_aid_allowed } if = { limit = { has_country_flag = FRA_arms_purchases_allowed } clr_country_flag = FRA_arms_purchases_allowed } } cost = 25 ai_will_do = { factor = 1 modifier = { has_war = yes factor = 0 } modifier = { is_historical_focus_on = yes factor = 0 } } } } economy_decisions = { FRA_revoke_the_matignon_agreements = { visible = { has_idea = FRA_matignon_agreements } cost = 50 ai_will_do = { factor = 15 modifier = { has_war = no factor = 0 } } complete_effect = { remove_ideas = FRA_matignon_agreements if = { limit = { communism > 0.25 } country_event = lar_france_political_violence.2 } } } FRA_reorganize_aviation_industry_north = { available = { } visible = { has_completed_focus = FRA_reorganize_the_aviation_industry } remove_effect = { set_country_flag = FRA_SNCAN_formed random_owned_state = { limit = { OR = { state = 29 state = 785 state = 15 state = 16 } is_fully_controlled_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } IF = { limit = { has_dlc = "Arms Against Tyranny" } mio:FRA_amiot_organization = { set_mio_name_key = SNCAN add_mio_size = 1 add_mio_funds_gain_factor = 0.05 } hidden_effect = { mio:FRA_amiot_organization = { set_mio_icon = GFX_idea_FRA_sncan } } } } days_remove = 120 cost = 50 fire_only_once = yes ai_will_do = { factor = 5 } } FRA_reorganize_aviation_industry_west = { available = { } visible = { has_completed_focus = FRA_reorganize_the_aviation_industry } remove_effect = { set_country_flag = FRA_SNCAO_formed random_owned_state = { limit = { OR = { state = 30 state = 14 state = 23 } is_fully_controlled_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } IF = { limit = { has_dlc = "Arms Against Tyranny" } mio:FRA_bloch_organization = { set_mio_name_key = SNCAO add_mio_size = 1 add_mio_funds_gain_factor = 0.05 } hidden_effect = { mio:FRA_bloch_organization = { set_mio_icon = GFX_idea_FRA_sncao } } } } days_remove = 120 cost = 50 fire_only_once = yes ai_will_do = { factor = 5 } } FRA_reorganize_aviation_industry_center = { available = { } visible = { has_completed_focus = FRA_reorganize_the_aviation_industry } remove_effect = { set_country_flag = FRA_SNCAC_formed random_owned_state = { limit = { OR = { state = 24 state = 33 state = 27 state = 26 state = 25 } is_fully_controlled_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } IF = { limit = { has_dlc = "Arms Against Tyranny" } custom_effect_tooltip = invites_mio_tt show_mio_tooltip = FRA_SNCAC_organization mio:FRA_SNCAC_organization = { add_mio_size = 2 add_mio_funds_gain_factor = 0.05 } } } days_remove = 120 cost = 50 fire_only_once = yes ai_will_do = { factor = 5 } } FRA_reorganize_aviation_industry_south_east = { available = { } visible = { has_completed_focus = FRA_reorganize_the_aviation_industry } remove_effect = { set_country_flag = FRA_SNCASE_formed random_owned_state = { limit = { OR = { state = 735 state = 32 state = 20 state = 21 state = 851 } is_fully_controlled_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } IF = { limit = { has_dlc = "Arms Against Tyranny" } mio:FRA_morane_saulnier_organization = { set_mio_name_key = SNCASE add_mio_size = 1 add_mio_funds_gain_factor = 0.05 } hidden_effect = { mio:FRA_morane_saulnier_organization = { set_mio_icon = GFX_idea_FRA_sncase } } } } days_remove = 120 cost = 50 fire_only_once = yes ai_will_do = { factor = 5 } } FRA_reorganize_aviation_industry_south_west = { available = { } visible = { has_completed_focus = FRA_reorganize_the_aviation_industry } remove_effect = { set_country_flag = FRA_SNCASO_formed random_owned_state = { limit = { OR = { state = 22 state = 31 state = 19 state = 25 } is_fully_controlled_by = ROOT free_building_slots = { building = arms_factory size > 0 include_locked = yes } } add_extra_state_shared_building_slots = 1 add_building_construction = { type = arms_factory level = 1 instant_build = yes } } IF = { limit = { has_dlc = "Arms Against Tyranny" } mio:FRA_levasseur_organization = { set_mio_name_key = SNCASO add_mio_size = 1 add_mio_funds_gain_factor = 0.05 } hidden_effect = { mio:FRA_levasseur_organization = { set_mio_icon = GFX_idea_FRA_sncaso } } } } days_remove = 120 cost = 50 fire_only_once = yes ai_will_do = { factor = 5 } } } political_actions = { FRA_rally_the_leagues = { available = { } visible = { has_completed_focus = FRA_utilize_the_leagues NOT = { has_government = fascism } } days_re_enable = 60 complete_effect = { add_popularity = { ideology = fascism popularity = 0.05 } add_popularity = { ideology = neutrality popularity = 0.05 } add_stability = -0.03 } ai_will_do = { factor = 5 modifier = { has_stability < 0.3 factor = 0 } } } FRA_unleash_la_cagoule = { available = { } visible = { has_completed_focus = FRA_utilize_the_leagues NOT = { has_government = fascism } } days_re_enable = 30 complete_effect = { add_popularity = { ideology = fascism popularity = 0.1 } add_stability = -0.075 } cost = 25 ai_will_do = { factor = 5 modifier = { has_stability < 0.3 factor = 0 } } } } VIC_concessions_to_the_germans = { VIC_basing_rights = { available = { } visible = { has_any_occupation_cost_trigger = yes } cost = 25 fire_only_once = yes ai_will_do = { factor = 1 modifier = { has_idea = FRA_occupation_costs_4 factor = 5 } modifier = { has_idea = FRA_occupation_costs_3 factor = 2 } modifier = { has_idea = FRA_occupation_costs_2 factor = 1.5 } } complete_effect = { give_military_access = GER reduce_occupation_cost_effect = yes } } VIC_produce_aircraft_parts = { available = {} visible = { has_any_occupation_cost_trigger = yes } cost = 25 fire_only_once = yes ai_will_do = { factor = 1 modifier = { has_idea = FRA_occupation_costs_4 factor = 5 } modifier = { has_idea = FRA_occupation_costs_3 factor = 2 } modifier = { has_idea = FRA_occupation_costs_2 factor = 1.5 } } complete_effect = { add_ideas = VIC_produce_aircraft_parts GER = { add_ideas = VIC_aircraft_parts } reduce_occupation_cost_effect = yes } } VIC_send_guest_workers = { available = { } visible = { has_any_occupation_cost_trigger = yes } cancel_trigger = { not = { has_country_flag = VIC_send_guest_workers } } cost = 25 ai_will_do = { factor = 1 modifier = { has_idea = FRA_occupation_costs_4 factor = 5 } modifier = { has_idea = FRA_occupation_costs_3 factor = 2 } modifier = { has_idea = FRA_occupation_costs_2 factor = 1.5 } } fire_only_once = yes days_remove = -1 modifier = { conscription_factor = -0.25 } complete_effect = { GER = { add_ideas = VIC_guest_workers } reduce_occupation_cost_effect = yes set_country_flag = VIC_send_guest_workers } } VIC_recall_guest_workers = { available = { has_country_flag = VIC_send_guest_workers } visible = { has_country_flag = VIC_send_guest_workers } cost = 0 ai_will_do = { factor = 0 modifier = { controls_state = 16 add = 10 } } fire_only_once = yes complete_effect = { GER = { remove_ideas = VIC_guest_workers } if = { limit = { NOT = { controls_state = 16 } } increase_occupation_cost_effect = yes } if = { limit = { controls_state = 16 has_idea = FRA_mandatory_work_service } remove_ideas = FRA_mandatory_work_service } clr_country_flag = VIC_send_guest_workers } } } FRA_intervention_in_overseas_territories = { FRA_promise_independence_to_north_africa = { available = { NOT = { FRA_controls_north_africa = yes } } visible = { has_completed_focus = FRA_intervention_in_north_africa } complete_effect = { set_country_flag = FRA_north_africa_promised_independence custom_effect_tooltip = FRA_promise_independence_tt random_list = { 20 = { VIC = { country_event = LaR_france_vichy_notification_events.5 } FRA_transfer_north_africa_effect = yes every_owned_state = { limit = { is_controlled_by = ROOT OR = { state = 461 state = 462 state = 459 state = 513 state = 460 state = 458 state = 665 } } add_compliance = 5 } } 80 = { } } } fire_only_once = yes cost = 25 ai_will_do = { factor = 3 } } FRA_prepare_coup_in_north_africa = { available = { NOT = { FRA_controls_north_africa = yes } has_intelligence_agency = yes } visible = { has_completed_focus = FRA_intervention_in_north_africa } complete_effect = { set_country_flag = FRA_coup_in_north_africa_flag custom_effect_tooltip = FRA_prepare_coup_tt } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 #at least until we know the AI can handle it } } FRA_promise_independence_to_syria = { available = { NOT = { FRA_controls_syria = yes } } visible = { has_completed_focus = FRA_intervention_in_syria NOT = { FRA_controls_syria = yes } } complete_effect = { set_country_flag = FRA_syria_promised_independence custom_effect_tooltip = FRA_promise_independence_tt random_list = { 30 = { VIC = { country_event = LaR_france_vichy_notification_events.1 } FRA_transfer_syria_effect = yes every_owned_state = { limit = { is_controlled_by = ROOT OR = { state = 677 state = 680 state = 554 state = 553 } } add_compliance = 5 } } 70 = {} } } fire_only_once = yes cost = 25 ai_will_do = { factor = 3 } } FRA_prepare_coup_in_syria = { available = { NOT = { FRA_controls_syria = yes } has_intelligence_agency = yes } visible = { has_completed_focus = FRA_intervention_in_syria NOT = { FRA_controls_syria = yes } } complete_effect = { custom_effect_tooltip = FRA_prepare_coup_tt set_country_flag = FRA_coup_in_syria_flag } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 } } FRA_invasion_in_syria = { available = { NOT = { FRA_controls_syria = yes } any_state = { OR = { state = 680 state = 677 state = 554 state = 553 } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } } visible = { has_completed_focus = FRA_intervention_in_syria } complete_effect = { random_state = { #find a neighbouring state of Syria that is controlled by an ally or ourselves limit = { OR = { state = 680 state = 677 state = 554 state = 553 } not = { is_controlled_by = ROOT } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } save_event_target_as = FRA_defender_state random_neighbor_state = { limit = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } save_event_target_as = FRA_attacker_state } } event_target:FRA_attacker_state = { CONTROLLER = { division_template = { name = "Syria Intervention Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = {x = 0 y = 1 } } } event_target:FRA_attacker_state = { #set up attacker unit(s) create_unit = { division = "name = \"Gentforce 1\" division_template = \"Syria Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Gentforce 2\" division_template = \"Syria Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Gentforce 3\" division_template = \"Syria Intervention Force\" start_experience_factor = 0.5" owner = PREV } } } } event_target:FRA_defender_state = { #set up defender unit(s) CONTROLLER = { division_template = { name = "Syria Defense Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = {x = 0 y = 1 } } } event_target:FRA_defender_state = { #set up defenders create_unit = { division = "name = \"Syria Defense Force 1\" division_template = \"Syria Defense Force\" start_experience_factor = 0.5" owner = PREV } } } } event_target:FRA_attacker_state = { CONTROLLER = { start_border_war = { change_state_after_war = no attacker = { state = event_target:FRA_attacker_state num_provinces = 4 on_win = FRA_syria_intervention.1 on_lose = FRA_syria_intervention.2 on_cancel = FRA_syria_intervention.3 } defender = { state = event_target:FRA_defender_state num_provinces = 4 on_win = FRA_syria_intervention.2 on_lose = FRA_syria_intervention.1 on_cancel = FRA_syria_intervention.3 } } } } } fire_only_once = yes cost = 25 ai_will_do = { factor = 5 } } FRA_promise_independence_to_indochina = { available = { NOT = { FRA_controls_indochina = yes } } visible = { has_completed_focus = FRA_intervention_in_indochina } complete_effect = { set_country_flag = FRA_indochina_promised_independence custom_effect_tooltip = FRA_promise_independence_tt random_list = { 20 = { VIC = { country_event = LaR_france_vichy_notification_events.2 } FRA_transfer_indochina_effect = yes every_owned_state = { limit = { is_controlled_by = ROOT OR = { state = 671 state = 670 state = 286 state = 741 state = 1017 state = 1066 state = 1067 state = 1068 state = 1069 } } add_compliance = 5 } } 80 = {} } } fire_only_once = yes cost = 25 ai_will_do = { factor = 3 } } FRA_prepare_coup_in_indochina = { available = { NOT = { FRA_controls_indochina = yes } has_intelligence_agency = yes } visible = { has_completed_focus = FRA_intervention_in_indochina } complete_effect = { custom_effect_tooltip = FRA_prepare_coup_tt set_country_flag = FRA_coup_in_indochina_flag } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 } } FRA_invasion_in_indochina = { available = { NOT = { FRA_controls_indochina = yes } any_state = { OR = { state = 671 state = 670 state = 286 state = 741 state = 1017 state = 1066 state = 1067 state = 1068 state = 1069 } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } } visible = { has_completed_focus = FRA_intervention_in_indochina } complete_effect = { random_state = { #find a neighbouring state of Syria that is controlled by an ally or ourselves limit = { OR = { state = 671 state = 670 state = 286 state = 741 state = 1017 state = 1066 state = 1067 state = 1068 state = 1069 } not = { is_controlled_by = ROOT } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } save_event_target_as = FRA_defender_state random_neighbor_state = { limit = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } save_event_target_as = FRA_attacker_state } event_target:FRA_attacker_state = { CONTROLLER = { division_template = { name = "Indochina Intervention Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = {x = 0 y = 1 } } } event_target:FRA_attacker_state = { #set up attacker unit(s) create_unit = { division = "name = \"Indochina Force 1\" division_template = \"Indochina Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Indochina Force 2\" division_template = \"Indochina Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Indochina Force 3\" division_template = \"Indochina Intervention Force\" start_experience_factor = 0.5" owner = PREV } } } } event_target:FRA_defender_state = { #set up defender unit(s) CONTROLLER = { division_template = { name = "Indochina Defense Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = {x = 0 y = 1 } } } event_target:FRA_defender_state = { #set up defenders create_unit = { division = "name = \"Indochina Defense Force 1\" division_template = \"Indochina Defense Force\" start_experience_factor = 0.5" owner = PREV } } } } } event_target:FRA_attacker_state = { CONTROLLER = { start_border_war = { change_state_after_war = no attacker = { state = event_target:FRA_attacker_state num_provinces = 4 on_win = FRA_indochina_intervention.1 on_lose = FRA_indochina_intervention.2 on_cancel = FRA_indochina_intervention.3 } defender = { state = event_target:FRA_defender_state num_provinces = 4 on_win = FRA_indochina_intervention.2 on_lose = FRA_indochina_intervention.1 on_cancel = FRA_indochina_intervention.3 } } } } } fire_only_once = yes ai_will_do = { factor = 0 } cost = 25 } FRA_promise_independence_to_central_africa = { available = { NOT = { FRA_controls_central_africa = yes } } visible = { has_completed_focus = FRA_intervention_in_central_africa } complete_effect = { set_country_flag = FRA_central_africa_promised_independence custom_effect_tooltip = FRA_promise_independence_tt random_list = { 25 = { VIC = { country_event = LaR_france_vichy_notification_events.3 } FRA_transfer_central_africa_effect = yes every_owned_state = { limit = { is_controlled_by = ROOT OR = { state = 772 state = 539 state = 773 state = 660 state = 774 } } add_compliance = 5 } } 75 = {} } } fire_only_once = yes cost = 25 ai_will_do = { factor = 4 } } FRA_prepare_coup_in_central_africa = { available = { NOT = { FRA_controls_central_africa = yes } has_intelligence_agency = yes } visible = { has_completed_focus = FRA_intervention_in_central_africa } complete_effect = { custom_effect_tooltip = FRA_prepare_coup_tt set_country_flag = FRA_coup_in_central_africa_flag } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 } } FRA_invasion_in_central_africa = { available = { NOT = { FRA_controls_central_africa = yes } any_state = { OR = { state = 772 state = 539 state = 773 state = 660 state = 774 } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } } visible = { has_completed_focus = FRA_intervention_in_central_africa } complete_effect = { random_state = { #find a neighbouring state of Syria that is controlled by an ally or ourselves limit = { OR = { state = 772 state = 539 state = 773 state = 660 state = 774 } not = { is_controlled_by = ROOT } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } save_event_target_as = FRA_defender_state random_neighbor_state = { limit = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } save_event_target_as = FRA_attacker_state } } event_target:FRA_attacker_state = { CONTROLLER = { division_template = { name = "Central Africa Intervention Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = { x = 0 y = 1 } recon = { x = 0 y = 2 } } } event_target:FRA_attacker_state = { #set up attacker unit(s) create_unit = { division = "name = \"Central Africa Force 1\" division_template = \"Central Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Central Africa Force 2\" division_template = \"Central Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Central Africa Force 3\" division_template = \"Central Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Central Africa Force 4\" division_template = \"Central Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"Central Africa Force 5\" division_template = \"Central Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } } } } event_target:FRA_defender_state = { #set up defender unit(s) CONTROLLER = { division_template = { name = "Central Africa Defense Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = {x = 0 y = 1 } } } event_target:FRA_defender_state = { #set up defenders create_unit = { division = "name = \"Central Africa Defense Force 1\" division_template = \"Central Africa Defense Force\" start_experience_factor = 0.5" owner = PREV } } } } event_target:FRA_attacker_state = { CONTROLLER = { start_border_war = { change_state_after_war = no attacker = { state = event_target:FRA_attacker_state num_provinces = 4 on_win = FRA_central_africa_intervention.1 on_lose = FRA_central_africa_intervention.2 on_cancel = FRA_central_africa_intervention.3 } defender = { state = event_target:FRA_defender_state num_provinces = 4 on_win = FRA_central_africa_intervention.2 on_lose = FRA_central_africa_intervention.1 on_cancel = FRA_central_africa_intervention.3 } } } } } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 } } FRA_promise_independence_to_west_africa = { available = { NOT = { FRA_controls_west_africa = yes } } visible = { has_completed_focus = FRA_intervention_in_west_africa } complete_effect = { set_country_flag = FRA_west_africa_promised_independence custom_effect_tooltip = FRA_promise_independence_tt random_list = { 25 = { VIC = { country_event = LaR_france_vichy_notification_events.4 } FRA_transfer_western_africa_effect = yes every_owned_state = { limit = { is_controlled_by = ROOT OR = { state = 557 state = 272 state = 556 state = 780 state = 779 state = 778 state = 781 state = 776 } } add_compliance = 5 } } 75 = {} } } fire_only_once = yes cost = 25 ai_will_do = { factor = 4 } } FRA_prepare_coup_in_west_africa = { available = { NOT = { FRA_controls_west_africa = yes } has_intelligence_agency = yes } visible = { has_completed_focus = FRA_intervention_in_west_africa } complete_effect = { custom_effect_tooltip = FRA_prepare_coup_tt set_country_flag = FRA_coup_in_west_africa_flag } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 } } FRA_invasion_in_west_africa = { available = { NOT = { FRA_controls_west_africa = yes } any_state = { OR = { state = 557 state = 272 state = 556 state = 780 state = 779 state = 778 state = 781 state = 776 } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } } visible = { has_completed_focus = FRA_intervention_in_west_africa } complete_effect = { random_state = { #find a neighbouring state of Syria that is controlled by an ally or ourselves limit = { OR = { state = 557 state = 272 state = 556 state = 780 state = 779 state = 778 state = 781 state = 776 } not = { is_controlled_by = ROOT } CONTROLLER = { NOT = { has_war_with = ROOT } } any_neighbor_state = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } } save_event_target_as = FRA_defender_state random_neighbor_state = { limit = { CONTROLLER = { OR = { tag = ROOT is_in_faction_with = ROOT } } } save_event_target_as = FRA_attacker_state } } event_target:FRA_attacker_state = { CONTROLLER = { division_template = { name = "West Africa Intervention Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = {x = 0 y = 1 } } } event_target:FRA_attacker_state = { #set up attacker unit(s) create_unit = { division = "name = \"West Africa Force 1\" division_template = \"West Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"West Africa Force 2\" division_template = \"West Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"West Africa Force 3\" division_template = \"West Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"West Africa Force 4\" division_template = \"West Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } create_unit = { division = "name = \"West Africa Force 5\" division_template = \"West Africa Intervention Force\" start_experience_factor = 0.5" owner = PREV } } } } event_target:FRA_defender_state = { #set up defender unit(s) CONTROLLER = { division_template = { name = "West Africa Defense Force" division_names_group = FRA_INF_01 is_locked = yes regiments = { infantry = { x = 0 y = 0 } infantry = { x = 0 y = 1 } infantry = { x = 0 y = 2 } infantry = { x = 1 y = 0 } infantry = { x = 1 y = 1 } infantry = { x = 1 y = 2 } } support = { engineer = { x = 0 y = 0 } artillery = {x = 0 y = 1 } } } event_target:FRA_defender_state = { #set up defenders create_unit = { division = "name = \"West Africa Defense Force 1\" division_template = \"West Africa Defense Force\" start_experience_factor = 0.5" owner = PREV } } } } event_target:FRA_attacker_state = { CONTROLLER = { start_border_war = { change_state_after_war = no attacker = { state = event_target:FRA_attacker_state num_provinces = 4 on_win = FRA_west_africa_intervention.1 on_lose = FRA_west_africa_intervention.2 on_cancel = FRA_west_africa_intervention.3 } defender = { state = event_target:FRA_defender_state num_provinces = 4 on_win = FRA_west_africa_intervention.2 on_lose = FRA_west_africa_intervention.1 on_cancel = FRA_west_africa_intervention.3 } } } } } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 } } FRA_promise_independence_to_madagascar = { available = { NOT = { 543 = { OR = { is_controlled_by = ROOT CONTROLLER = { is_subject_of = ROOT } } } } } visible = { has_completed_focus = FRA_intervention_in_madagascar } complete_effect = { set_country_flag = FRA_madagascar_promised_independence custom_effect_tooltip = FRA_promise_independence_tt random_list = { 30 = { VIC = { country_event = LaR_france_vichy_notification_events.6 } transfer_state = 543 543 = { add_compliance = 5 } } 70 = {} } } fire_only_once = yes cost = 25 ai_will_do = { factor = 5 } } FRA_prepare_coup_in_madagascar = { available = { NOT = { 543 = { OR = { is_controlled_by = ROOT CONTROLLER = { is_subject_of = ROOT } } } } has_intelligence_agency = yes } visible = { has_completed_focus = FRA_intervention_in_madagascar } complete_effect = { custom_effect_tooltip = FRA_prepare_coup_tt set_country_flag = FRA_coup_in_madagascar_flag } fire_only_once = yes cost = 25 ai_will_do = { factor = 0 } } } FRA_decolonization = { FRA_independence_for_syria_mission = { available = { country_exists = LEB country_exists = SYR } activation = { has_country_flag = FRA_syria_promised_independence has_war = no NOT = { country_exists = SYR country_exists = LEB } 680 = { is_controlled_by = ROOT } 677 = { is_controlled_by = ROOT } 554 = { is_controlled_by = ROOT } 553 = { is_controlled_by = ROOT } } days_mission_timeout = 180 timeout_effect = { every_state = { limit = { OR = { is_core_of = LEB is_core_of = SYR } } add_resistance_target = { amount = 10 tooltip = FRA_promised_independence_tt } } } } FRA_independence_for_indochina_mission = { available = { country_exists = LAO country_exists = CAM country_exists = VIN } activation = { has_country_flag = FRA_indochina_promised_independence has_war = no NOT = { country_exists = CAM country_exists = LAO country_exists = VIN } 671 = { is_controlled_by = ROOT } 670 = { is_controlled_by = ROOT } 286 = { is_controlled_by = ROOT } 741 = { is_controlled_by = ROOT } 1017 = { is_controlled_by = ROOT } } days_mission_timeout = 180 timeout_effect = { every_state = { limit = { OR = { is_core_of = LAO is_core_of = CAM is_core_of = VIN } } add_resistance_target = { amount = 10 tooltip = FRA_promised_independence_tt } } } } FRA_independence_for_madagascar_mission = { available = { country_exists = MAD } activation = { has_country_flag = FRA_madagascar_promised_independence has_war = no NOT = { country_exists = MAD } 543 = { is_controlled_by = ROOT } } days_mission_timeout = 180 timeout_effect = { 543 = { add_resistance_target = { amount = 10 tooltip = FRA_promised_independence_tt } } } } FRA_independence_for_north_africa_mission = { available = { country_exists = ALG country_exists = MOR country_exists = TUN } activation = { has_country_flag = FRA_north_africa_promised_independence has_war = no NOT = { country_exists = MOR country_exists = ALG country_exists = TUN } 461 = { is_controlled_by = ROOT } 462 = { is_controlled_by = ROOT } 459 = { is_controlled_by = ROOT } 513 = { is_controlled_by = ROOT } 460 = { is_controlled_by = ROOT } 458 = { is_controlled_by = ROOT } 665 = { is_controlled_by = ROOT } } days_mission_timeout = 180 timeout_effect = { every_state = { limit = { OR = { is_core_of = ALG is_core_of = MOR is_core_of = TUN } } add_resistance_target = { amount = 10 tooltip = FRA_promised_independence_tt } } } } FRA_independence_for_west_africa_mission = { available = { country_exists = NGR country_exists = DAH country_exists = TOG country_exists = VOL country_exists = IVO country_exists = MLI country_exists = GNA country_exists = SEN country_exists = MRT } activation = { has_country_flag = FRA_west_africa_promised_independence has_war = no NOT = { country_exists = NGR country_exists = DAH country_exists = TOG country_exists = VOL country_exists = IVO country_exists = MLI country_exists = GNA country_exists = SEN country_exists = MRT } FRA_controls_west_africa = yes } days_mission_timeout = 180 timeout_effect = { every_state = { limit = { OR = { is_core_of = NGR is_core_of = DAH is_core_of = TOG is_core_of = VOL is_core_of = IVO is_core_of = MLI is_core_of = GNA is_core_of = SEN is_core_of = MRT } } add_resistance_target = { amount = 10 tooltip = FRA_promised_independence_tt } } } } FRA_independence_for_central_africa_mission = { available = { country_exists = RCG country_exists = GAB country_exists = CAR country_exists = CMR country_exists = CHA } activation = { has_country_flag = FRA_central_africa_promised_independence has_war = no NOT = { country_exists = RCG country_exists = GAB country_exists = CAR country_exists = CMR country_exists = CHA } FRA_controls_central_africa = yes } days_mission_timeout = 180 timeout_effect = { every_state = { limit = { OR = { is_core_of = RCG is_core_of = GAB is_core_of = CAR is_core_of = CMR is_core_of = CHA } } add_resistance_target = { amount = 10 tooltip = FRA_promised_independence_tt } } } } }