add_namespace = AfricanUnion add_namespace = AfricanUnionRandomEvents add_namespace = AfricanUnionSummit add_namespace = AfricanUnion_news #African Union is formed news_event = { id = AfricanUnion_news.1 title = AfricanUnion_news.1.t desc = AfricanUnion_news.1.d picture = GFX_african_union_news is_triggered_only = yes major = yes option = { name = AfricanUnion_news.1.a } } country_event = { id = AfricanUnion.1 title = AfricanUnion.1.t desc = AfricanUnion.1.d picture = GFX_african_union_parliament is_triggered_only = yes option = { name = AfricanUnion.1.a log = "[GetDateText]: [This.GetName]: AfricanUnion.1.a executed" if = { limit = { has_idea = OAU_member } swap_ideas = { remove_idea = OAU_member add_idea = AU_member } } custom_effect_tooltip = LBA_strive_for_african_union_unlock_shared_tree_tt set_global_flag = African_Union_formed african_union_give_mandate = yes hidden_effect = { african_union_update_outlook_popularities = yes } complete_national_focus = AFRICAN_UNION_shared_focus } } #African Union is united as a federation country_event = { id = AfricanUnion.2 title = AfricanUnion.2.t desc = AfricanUnion.2.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnion.2.a #Say yes log = "[GetDateText]: [This.GetName]: AfricanUnion.2.a executed" ai_chance = { base = 1 modifier = { add = 80 UAF = { has_government = PREV } } modifier = { add = 50 UAF = { NOT = { has_government = PREV } } } modifier = { factor = 1.5 has_opinion = { target = UAF value > 50 } } modifier = { factor = 0.5 has_opinion = { target = UAF value < -50 } } modifier = { factor = 0.3 OR = { AND = { has_government = nationalist UAF = { NOT = { has_government = nationalist } } } AND = { has_government = fascism UAF = { NOT = { has_government = fascism } } } } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = yes } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = no } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = yes } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = no } } UAF = { if = { limit = { has_global_flag = GAME_RULE_allow_colored_puppets } set_autonomy = { target = ROOT autonomy_state = autonomy_autonomous_state_colored } } else = { set_autonomy = { target = ROOT autonomy_state = autonomy_autonomous_state } } } } option = { name = AfricanUnion.2.b #Say no log = "[GetDateText]: [This.GetName]: AfricanUnion.2.b executed" ai_chance = { base = 1 modifier = { add = 20 UAF = { has_government = PREV } } modifier = { add = 50 UAF = { NOT = { has_government = PREV } } } modifier = { factor = 0.5 has_opinion = { target = UAF value > 50 } } modifier = { factor = 1.5 has_opinion = { target = UAF value < -50 } } modifier = { factor = 1.7 OR = { AND = { has_government = nationalist UAF = { NOT = { has_government = nationalist } } } AND = { has_government = fascism UAF = { NOT = { has_government = fascism } } } } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = yes } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = no } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = yes } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = no } } remove_ideas = AU_member if = { limit = { has_dynamic_modifier = { modifier = african_union_reforms_modifier } } remove_dynamic_modifier = { modifier = african_union_reforms_modifier } } african_union_remove_summit_buffs = yes } } #African Union is united as a unified state country_event = { id = AfricanUnion.3 title = AfricanUnion.3.t desc = AfricanUnion.3.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnion.3.a #Say yes log = "[GetDateText]: [This.GetName]: AfricanUnion.3.a executed" ai_chance = { base = 1 modifier = { add = 60 UAF = { has_government = PREV } } modifier = { add = 30 UAF = { NOT = { has_government = PREV } } } modifier = { factor = 1.5 has_opinion = { target = UAF value > 50 } } modifier = { factor = 0.5 has_opinion = { target = UAF value < -50 } } modifier = { factor = 0.3 OR = { AND = { has_government = nationalist UAF = { NOT = { has_government = nationalist } } } AND = { has_government = fascism UAF = { NOT = { has_government = fascism } } } } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = yes } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = no } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = yes } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = no } } if = { limit = { ROOT = { check_variable = { subjects^num > 0 } } } ROOT = { for_each_scope_loop = { array = subjects tooltip = TT_ALL_SUBJECT_NATIONS_GAIN PREV = { annex_country = { target = PREV transfer_troops = yes } } } } } UAF = { annex_country = { target = ROOT transfer_troops = yes } } } option = { name = AfricanUnion.3.b #Say no log = "[GetDateText]: [This.GetName]: AfricanUnion.3.b executed" ai_chance = { base = 1 modifier = { add = 40 UAF = { has_government = PREV } } modifier = { add = 70 UAF = { NOT = { has_government = PREV } } } modifier = { factor = 0.5 has_opinion = { target = UAF value > 50 } } modifier = { factor = 1.5 has_opinion = { target = UAF value < -50 } } modifier = { factor = 1.7 OR = { AND = { has_government = nationalist UAF = { NOT = { has_government = nationalist } } } AND = { has_government = fascism UAF = { NOT = { has_government = fascism } } } } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_fight_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_05 has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_embrace_corruption OR = { has_idea = corruption_level_06 has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = yes } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_parliament has_elections = no } modifier = { factor = 1.25 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = yes } modifier = { factor = 0.75 has_completed_focus = AFRICAN_UNION_shared_focus_empower_assembly has_elections = no } } remove_ideas = AU_member if = { limit = { has_dynamic_modifier = { modifier = african_union_reforms_modifier } } remove_dynamic_modifier = { modifier = african_union_reforms_modifier } } african_union_remove_summit_buffs = yes } } #Hidden event for triggering African Union country_event = { id = AfricanUnion.4 is_triggered_only = yes hidden = yes trigger = { NOT = { has_global_flag = African_Union_formed } } immediate = { log = "[GetDateText]: [This.GetName]: AfricanUnion.4 executed" for_each_scope_loop = { array = global.is_african_nation if = { limit = { country_exists = THIS } country_event = AfricanUnion.1 } } } } ##################### ### RANDOM EVENTS ### ##################### #African Investment Bank invests in CIV country_event = { id = AfricanUnionRandomEvents.1 title = AfricanUnionRandomEvents.1.t desc = AfricanUnionRandomEvents.1.d picture = GFX_african_union is_triggered_only = yes trigger = { NOT = { has_global_flag = African_Union_united } is_in_array = { global.AU_member = THIS.id } has_completed_focus = AFRICAN_UNION_shared_focus_create_investment_bank has_global_flag = African_Union_formed has_war = no } mean_time_to_happen = { #More likely to help large countries modifier = { factor = 1.25 OR = { has_idea = regional_power has_idea = large_power has_idea = great_power has_idea = super_power } } modifier = { factor = 0.75 has_idea = non_power } #Having good economy is plus modifier = { factor = 1.25 OR = { has_idea = stable_growth has_idea = fast_growth has_idea = economic_boom } } modifier = { factor = 0.75 OR = { has_idea = recession has_idea = depression } } #Low corruption good for investment modifier = { factor = 1.25 OR = { has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 OR = { has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } #Business oriented is good modifier = { factor = 1.25 OR = { has_idea = small_medium_business_owners has_idea = industrial_conglomerates has_idea = maritime_industry has_idea = fossil_fuel_industry } } #Having banker connections is better modifier = { factor = 1.50 has_idea = international_bankers } #Labour unions are bad for business modifier = { factor = 0.75 has_idea = labour_unions } #Don't work with authoritarian countries modifier = { factor = 0.50 OR = { has_idea = the_military has_idea = intelligence_community has_idea = foreign_jihadis has_elections = no } } } option = { name = AfricanUnionRandomEvents.1.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.1.a executed" ai_chance = { base = 80 modifier = { factor = 0 check_variable = { debt_ratio > 0.8 } } } set_temp_variable = { treasury_change = -3.75 } modify_treasury_effect = yes random_owned_state = { limit = { NOT = { OR = { has_state_category = state_inhospitable has_state_category = state_military_base } } } add_building_construction = { type = industrial_complex level = 1 instant_build = yes } add_extra_state_shared_building_slots = 1 } random_scope_in_array = { array = global.AU_member limit = { NOT = { tag = ROOT } } set_temp_variable = { tag_index = THIS } } set_temp_variable = { influence_target = ROOT } set_temp_variable = { percent_change = 4 } change_influence_percentage = yes } option = { name = AfricanUnionRandomEvents.1.b ai_chance = { base = 20 } } } #African Investment Bank invests in offices country_event = { id = AfricanUnionRandomEvents.2 title = AfricanUnionRandomEvents.2.t desc = AfricanUnionRandomEvents.2.d picture = GFX_african_union is_triggered_only = yes trigger = { NOT = { has_global_flag = African_Union_united } is_in_array = { global.is_african_nation = THIS.id } has_idea = AU_member has_completed_focus = AFRICAN_UNION_shared_focus_create_investment_bank has_global_flag = African_Union_formed has_war = no } mean_time_to_happen = { #More likely to help large countries modifier = { factor = 1.25 OR = { has_idea = regional_power has_idea = large_power has_idea = great_power has_idea = super_power } } modifier = { factor = 0.75 has_idea = non_power } #Having good economy is plus modifier = { factor = 1.25 OR = { has_idea = stable_growth has_idea = fast_growth has_idea = economic_boom } } modifier = { factor = 0.75 OR = { has_idea = recession has_idea = depression } } #Low corruption good for investment modifier = { factor = 1.25 OR = { has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 OR = { has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } #Business oriented is good modifier = { factor = 1.25 OR = { has_idea = small_medium_business_owners has_idea = industrial_conglomerates has_idea = maritime_industry has_idea = fossil_fuel_industry } } #Having banker connections is better modifier = { factor = 1.50 has_idea = international_bankers } #Labour unions are bad for business modifier = { factor = 0.75 has_idea = labour_unions } #Don't work with authoritarian countries modifier = { factor = 0.50 OR = { has_idea = the_military has_idea = intelligence_community has_idea = foreign_jihadis has_elections = no } } } option = { name = AfricanUnionRandomEvents.2.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.2.a executed" ai_chance = { base = 80 modifier = { factor = 0 check_variable = { debt_ratio > 0.8 } } } set_temp_variable = { treasury_change = -6 } modify_treasury_effect = yes random_owned_state = { limit = { NOT = { OR = { has_state_category = state_inhospitable has_state_category = state_military_base } } } add_building_construction = { type = offices level = 1 instant_build = yes } add_extra_state_shared_building_slots = 1 } random_scope_in_array = { array = global.AU_member limit = { NOT = { tag = ROOT } } set_temp_variable = { tag_index = THIS } } set_temp_variable = { influence_target = ROOT } set_temp_variable = { percent_change = 4 } change_influence_percentage = yes } option = { name = AfricanUnionRandomEvents.2.b ai_chance = { base = 20 } } } #African Investment Bank Asks for Investment country_event = { id = AfricanUnionRandomEvents.3 title = AfricanUnionRandomEvents.3.t desc = AfricanUnionRandomEvents.3.d picture = GFX_african_union is_triggered_only = yes trigger = { NOT = { has_global_flag = African_Union_united } is_in_array = { global.AU_member = THIS.id } has_completed_focus = AFRICAN_UNION_shared_focus_create_investment_bank has_global_flag = African_Union_formed has_war = no } mean_time_to_happen = { #More likely to help large countries modifier = { factor = 1.25 OR = { has_idea = regional_power has_idea = large_power has_idea = great_power has_idea = super_power } } modifier = { factor = 0.75 has_idea = non_power } #Having good economy is plus modifier = { factor = 1.25 OR = { has_idea = stable_growth has_idea = fast_growth has_idea = economic_boom } } modifier = { factor = 0.75 OR = { has_idea = recession has_idea = depression } } #Low corruption good for investment modifier = { factor = 1.25 OR = { has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 OR = { has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } #Business oriented is good modifier = { factor = 1.25 OR = { has_idea = small_medium_business_owners has_idea = industrial_conglomerates has_idea = maritime_industry has_idea = fossil_fuel_industry } } #Having banker connections is better modifier = { factor = 1.50 has_idea = international_bankers } #Labour unions are bad for business modifier = { factor = 0.75 has_idea = labour_unions } #Don't work with authoritarian countries modifier = { factor = 0.50 OR = { has_idea = the_military has_idea = intelligence_community has_idea = foreign_jihadis has_elections = no } } } option = { name = AfricanUnionRandomEvents.3.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.3.a executed" ai_chance = { base = 80 modifier = { factor = 0 check_variable = { debt_ratio > 0.8 } } } random_scope_in_array = { array = global.AU_member limit = { NOT = { tag = ROOT } } set_temp_variable = { influence_target = THIS } country_event = { id = AfricanUnionRandomEvents.4 hours = 6 } } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { set_temp_variable = { treasury_change = -10 } modify_treasury_effect = yes set_temp_variable = { int_investment_change = 5 } modify_international_investment_effect = yes var:influence_target = { set_temp_variable = { treasury_change = 5 } modify_treasury_effect = yes } set_temp_variable = { percent_change = 4 } change_influence_percentage = yes } } option = { name = AfricanUnionRandomEvents.3.b ai_chance = { base = 20 } } } #Financial investment from a fellow member country_event = { id = AfricanUnionRandomEvents.4 title = AfricanUnionRandomEvents.4.t desc = AfricanUnionRandomEvents.4.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnionRandomEvents.4.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.4.a executed" ai_chance = { base = 80 } set_temp_variable = { treasury_change = 5 } modify_treasury_effect = yes effect_tooltip = { set_temp_variable = { tag_index = FROM } set_temp_variable = { influence_target = ROOT } set_temp_variable = { percent_change = 4 } change_influence_percentage = yes } FROM = { country_event = { id = AfricanUnionRandomEvents.8 hours = 6 } } } option = { name = AfricanUnionRandomEvents.4.b log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.4.a executed" ai_chance = { base = 20 } FROM = { country_event = { id = AfricanUnionRandomEvents.9 hours = 6 } } } } #African Investment Bank pays off some of our debt country_event = { id = AfricanUnionRandomEvents.5 title = AfricanUnionRandomEvents.5.t desc = AfricanUnionRandomEvents.5.d picture = GFX_african_union is_triggered_only = yes trigger = { NOT = { has_global_flag = African_Union_united } is_in_array = { global.AU_member = THIS.id } has_completed_focus = AFRICAN_UNION_shared_focus_create_monetary_fund has_global_flag = African_Union_formed check_variable = { debt_ratio > 0.05 } any_of_scopes = { array = global.AU_member NOT = { tag = PREV } NOT = { check_variable = { interest_rate > 8 } } NOT = { has_active_mission = bankruptcy_incoming_collapse } } } mean_time_to_happen = { #More likely to help small countries modifier = { factor = 0.75 OR = { has_idea = regional_power has_idea = large_power has_idea = great_power has_idea = super_power } } modifier = { factor = 1.25 has_idea = non_power } #Prioritise if someone has bad economy modifier = { factor = 0.75 OR = { has_idea = stable_growth has_idea = fast_growth has_idea = economic_boom } } modifier = { factor = 1.25 OR = { has_idea = recession has_idea = depression } } #More likely to help those with low corruption modifier = { factor = 1.25 OR = { has_idea = corruption_level_04 has_idea = corruption_level_03 has_idea = corruption_level_02 has_idea = corruption_level_01 } } modifier = { factor = 0.75 OR = { has_idea = corruption_level_07 has_idea = corruption_level_08 has_idea = corruption_level_09 has_idea = corruption_level_10 } } #Less likely to help if in bed with international bankers modifier = { factor = 0.50 has_idea = international_bankers } #Don't work with authoritarian countries modifier = { factor = 0.50 OR = { has_idea = the_military has_idea = intelligence_community has_idea = foreign_jihadis has_elections = no } } #Prioritise countries with high debt ratio modifier = { factor = 1.50 check_variable = { debt_ratio > 0.7 } } modifier = { factor = 0.50 check_variable = { debt_ratio < 0.7 } } } option = { name = AfricanUnionRandomEvents.5.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.5.a executed" ai_chance = { base = 80 } random_scope_in_array = { array = global.AU_member limit = { NOT = { tag = PREV } NOT = { check_variable = { interest_rate > 8 } } NOT = { has_active_mission = bankruptcy_incoming_collapse } } set_temp_variable = { available_treasury = { value = treasury clamp = { min = 0 max = 10000000 } } } set_temp_variable = { debt_payment = { value = PREV.gdp_total multiply = 0.05 clamp = { min = 0 max = available_treasury } } } set_temp_variable = { treasury_change = { value = debt_payment multiply = -1 } } modify_treasury_effect = yes PREV = { set_temp_variable = { debt_change = PREV.treasury_change } modify_debt_effect = yes } set_temp_variable = { tag_index = THIS } set_temp_variable = { influence_target = PREV } set_temp_variable = { percent_change = 4 } change_influence_percentage = yes } } option = { name = AfricanUnionRandomEvents.5.b ai_chance = { base = 20 modifier = { factor = 0 check_variable = { debt_ratio > 0.8 } } } } } #African Investment Bank wants us to take someone's debt country_event = { id = AfricanUnionRandomEvents.6 title = AfricanUnionRandomEvents.6.t desc = AfricanUnionRandomEvents.6.d picture = GFX_african_union is_triggered_only = yes trigger = { NOT = { has_global_flag = African_Union_united } is_in_array = { global.is_african_nation = THIS.id } has_idea = AU_member has_completed_focus = AFRICAN_UNION_shared_focus_create_monetary_fund has_global_flag = African_Union_formed NOT = { check_variable = { interest_rate > 8 } } NOT = { has_active_mission = bankruptcy_incoming_collapse } any_of_scopes = { array = global.is_african_nation has_idea = AU_member has_completed_focus = AFRICAN_UNION_shared_focus_create_monetary_fund check_variable = { debt_ratio > 0.10 } } } mean_time_to_happen = { #More likely to ask large countries modifier = { factor = 1.5 OR = { has_idea = regional_power has_idea = large_power has_idea = great_power has_idea = super_power } } modifier = { factor = 0.75 has_idea = non_power } #Prioritise countries with low debt ratio modifier = { factor = 0.50 check_variable = { debt_ratio > 0.7 } } modifier = { factor = 1.50 check_variable = { debt_ratio < 0.7 } } } option = { name = AfricanUnionRandomEvents.6.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.6.a executed" ai_chance = { base = 80 modifier = { factor = 0 check_variable = { debt_ratio > 0.8 } } } random_other_country = { limit = { is_in_array = { global.is_african_nation = THIS.id } has_idea = AU_member check_variable = { debt_ratio > 0.10 } } set_temp_variable = { tag_index = PREV } set_temp_variable = { influence_target = THIS } set_temp_variable = { PREV.treasury_change = { value = THIS.gdp_total multiply = -0.10 } } country_event = AfricanUnionRandomEvents.7 } custom_effect_tooltip = TT_IF_THEY_ACCEPT effect_tooltip = { modify_treasury_effect = yes set_temp_variable = { percent_change = 5 } change_influence_percentage = yes } } option = { name = AfricanUnionRandomEvents.6.b ai_chance = { base = 20 } } } #Somebody else takes over our debt country_event = { id = AfricanUnionRandomEvents.7 title = AfricanUnionRandomEvents.7.t desc = AfricanUnionRandomEvents.7.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnionRandomEvents.7.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.7.a executed" ai_chance = { base = 50 modifier = { add = 10 has_opinion = { target = FROM value > 25 } } modifier = { add = 15 has_opinion = { target = FROM value > 50 } } modifier = { add = 20 has_opinion = { target = FROM value > 75 } } modifier = { add = -15 has_opinion = { target = FROM value < 0 } } modifier = { add = -25 has_opinion = { target = FROM value < -50 } } } set_temp_variable = { debt_change = { value = gdp_total multiply = -0.10 } } hidden_effect = { FROM = { set_variable = { debt_to_pay = PREV.debt_change } } } modify_debt_effect = yes effect_tooltip = { set_temp_variable = { tag_index = FROM } set_temp_variable = { influence_target = ROOT } set_temp_variable = { percent_change = 5 } change_influence_percentage = yes } FROM = { country_event = { id = AfricanUnionRandomEvents.10 hours = 6 } } } option = { name = AfricanUnionRandomEvents.7.b log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.6.b executed" ai_chance = { base = 50 modifier = { add = -10 has_opinion = { target = FROM value > 25 } } modifier = { add = -15 has_opinion = { target = FROM value > 50 } } modifier = { add = -20 has_opinion = { target = FROM value > 75 } } modifier = { add = 15 has_opinion = { target = FROM value < 0 } } modifier = { add = 25 has_opinion = { target = FROM value < -50 } } } FROM = { country_event = { id = AfricanUnionRandomEvents.11 hours = 6 } } } } #Country accepts financial investment country_event = { id = AfricanUnionRandomEvents.8 title = AfricanUnionRandomEvents.8.t desc = AfricanUnionRandomEvents.8.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnionRandomEvents.8.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.8.a executed" set_temp_variable = { treasury_change = -10 } modify_treasury_effect = yes set_temp_variable = { int_investment_change = 5 } modify_international_investment_effect = yes set_temp_variable = { influence_target = FROM } set_temp_variable = { percent_change = 4 } change_influence_percentage = yes } } #Country rejects financial investment country_event = { id = AfricanUnionRandomEvents.9 title = AfricanUnionRandomEvents.9.t desc = AfricanUnionRandomEvents.9.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnionRandomEvents.9.a } } #Country accepts us taking some of their debt country_event = { id = AfricanUnionRandomEvents.10 title = AfricanUnionRandomEvents.10.t desc = AfricanUnionRandomEvents.10.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnionRandomEvents.10.a log = "[GetDateText]: [This.GetName]: AfricanUnionRandomEvents.7.a executed" set_temp_variable = { treasury_change = debt_to_pay } modify_treasury_effect = yes set_temp_variable = { tag_index = ROOT } set_temp_variable = { influence_target = FROM } set_temp_variable = { percent_change = 5 } change_influence_percentage = yes clear_variable = debt_to_pay } } #Country rejects us taking some of their debt country_event = { id = AfricanUnionRandomEvents.11 title = AfricanUnionRandomEvents.11.t desc = AfricanUnionRandomEvents.11.d picture = GFX_african_union is_triggered_only = yes option = { name = AfricanUnionRandomEvents.11.a } } ##################### ### SUMMIT EVENTS ### ##################### #African Union Summit - Common political agenda country_event = { id = AfricanUnionSummit.1 title = AfricanUnionSummit.1.t desc = AfricanUnionSummit.1.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.1.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.1.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_common_political_agenda african_union_give_mandate = yes } } #African Union Summit - Encourage children's health country_event = { id = AfricanUnionSummit.2 title = AfricanUnionSummit.2.t desc = AfricanUnionSummit.2.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.2.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.2.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_child_welfare african_union_give_mandate = yes } } #African Union Summit - Encourage digitalisation country_event = { id = AfricanUnionSummit.3 title = AfricanUnionSummit.3.t desc = AfricanUnionSummit.3.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.3.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.3.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_improved_digitalisation african_union_give_mandate = yes } } #African Union Summit - Pressure for Human Rights country_event = { id = AfricanUnionSummit.4 title = AfricanUnionSummit.4.t desc = AfricanUnionSummit.4.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.4.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.4.a executed" african_union_remove_summit_buffs = yes if = { limit = { has_elections = no } custom_effect_tooltip = african_union_human_rights_bad_boy_no_elections_tt add_ideas = african_union_human_rights_bad_boy } else_if = { limit = { OR = { has_idea = corruption_level_10 has_idea = corruption_level_09 has_idea = corruption_level_08 has_idea = corruption_level_07 } } custom_effect_tooltip = african_union_human_rights_bad_boy_high_corruption_tt add_ideas = african_union_human_rights_bad_boy } african_union_give_mandate = yes } } #African Union Summit - Improved trade relations country_event = { id = AfricanUnionSummit.5 title = AfricanUnionSummit.5.t desc = AfricanUnionSummit.5.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.5.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.5.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_improved_trade_relations african_union_give_mandate = yes } } #African Union Summit - Sickle-cell anaemia country_event = { id = AfricanUnionSummit.6 title = AfricanUnionSummit.6.t desc = AfricanUnionSummit.6.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.6.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.6.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_health_research african_union_give_mandate = yes } } #African Union Summit - Return of African artefacts country_event = { id = AfricanUnionSummit.7 title = AfricanUnionSummit.7.t desc = AfricanUnionSummit.7.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.7.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.7.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_cultural_independence african_union_give_mandate = yes } } #African Union Summit - Danger of imported seeds country_event = { id = AfricanUnionSummit.8 title = AfricanUnionSummit.8.t desc = AfricanUnionSummit.8.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.8.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.8.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_encourage_domestic_agriculture african_union_give_mandate = yes } } #African Union Summit - Increased effort for Union country_event = { id = AfricanUnionSummit.9 title = AfricanUnionSummit.9.t desc = AfricanUnionSummit.9.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.9.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.9.a executed" african_union_give_mandate = yes african_union_give_extra_mandate = yes } } #African Union Summit - Emphasize AIDS watch country_event = { id = AfricanUnionSummit.10 title = AfricanUnionSummit.10.t desc = AfricanUnionSummit.10.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.10.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.10.a executed" african_union_remove_summit_buffs = yes if = { limit = { OR = { has_idea = low_level_of_aids has_idea = rising_level_of_aids has_idea = high_level_of_aids has_idea = very_high_level_of_aids has_idea = critical_level_of_aids } } decrease_HIV_prevalence = yes add_ideas = african_union_aids_watch_funded } else = { custom_effect_tooltip = african_union_aids_watch_funder_tt add_ideas = african_union_aids_watch_funder } african_union_give_mandate = yes } } #African Union Summit - Decade of Education in Africa country_event = { id = AfricanUnionSummit.11 title = AfricanUnionSummit.11.t desc = AfricanUnionSummit.11.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.11.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.11.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_decade_of_education if = { limit = { has_variable = literacy_rate } set_temp_variable = { LR_change = 0.05 } update_literacy_rate = yes } african_union_give_mandate = yes } } #African Union Summit - Abuja Declaration for Fertilizers country_event = { id = AfricanUnionSummit.12 title = AfricanUnionSummit.12.t desc = AfricanUnionSummit.12.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.12.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.12.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_declaration_of_fertilizers african_union_give_mandate = yes } } #African Union Summit - Research focus country_event = { id = AfricanUnionSummit.13 title = AfricanUnionSummit.13.t desc = AfricanUnionSummit.13.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.13.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.13.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_research_focus african_union_give_mandate = yes } } #African Union Summit - Climate change country_event = { id = AfricanUnionSummit.14 title = AfricanUnionSummit.14.t desc = AfricanUnionSummit.14.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.14.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.14.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_renewable_investments if = { limit = { original_tag = BOT } BOT_decrease_desertification = yes } african_union_give_mandate = yes } } #African Union Summit - Industrial Development country_event = { id = AfricanUnionSummit.15 title = AfricanUnionSummit.15.t desc = AfricanUnionSummit.15.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.15.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.15.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_industrial_development african_union_give_mandate = yes } } #African Union Summit - Maternal, infant and child health country_event = { id = AfricanUnionSummit.16 title = AfricanUnionSummit.16.t desc = AfricanUnionSummit.16.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.16.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.16.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_health_care_investment african_union_give_mandate = yes } } #African Union Summit - Fighting human trafficking country_event = { id = AfricanUnionSummit.17 title = AfricanUnionSummit.17.t desc = AfricanUnionSummit.17.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.17.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.17.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_combat_human_trafficking african_union_give_mandate = yes } } #African Union Summit - Water utilisation and high food prices country_event = { id = AfricanUnionSummit.18 title = AfricanUnionSummit.18.t desc = AfricanUnionSummit.18.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.18.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.18.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_water_and_food_benefits african_union_give_mandate = yes } } #African Union Summit - Fight against coup country_event = { id = AfricanUnionSummit.19 title = AfricanUnionSummit.19.t desc = AfricanUnionSummit.19.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.19.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.19.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_coup_defence african_union_give_mandate = yes } } #African Union Summit - Energy Investments country_event = { id = AfricanUnionSummit.20 title = AfricanUnionSummit.20.t desc = AfricanUnionSummit.20.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.20.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.20.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_energy_investments african_union_give_mandate = yes } } #African Union Summit - Infrastructure Investments country_event = { id = AfricanUnionSummit.21 title = AfricanUnionSummit.21.t desc = AfricanUnionSummit.21.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.21.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.21.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_infra_investments african_union_give_mandate = yes } } #African Union Summit - Peacekeeping and Security country_event = { id = AfricanUnionSummit.22 title = AfricanUnionSummit.22.t desc = AfricanUnionSummit.22.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.22.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.22.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_peacekeeping_effort african_union_give_mandate = yes } } #African Union Summit - Condemn ransom payments country_event = { id = AfricanUnionSummit.23 title = AfricanUnionSummit.23.t desc = AfricanUnionSummit.23.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.23.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.23.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_no_ransom african_union_give_mandate = yes } } #African Union Summit - Financial institutions country_event = { id = AfricanUnionSummit.24 title = AfricanUnionSummit.24.t desc = AfricanUnionSummit.24.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.24.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.24.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_financial_institutions african_union_give_mandate = yes } } #African Union Summit - Report on Corruption country_event = { id = AfricanUnionSummit.25 title = AfricanUnionSummit.25.t desc = AfricanUnionSummit.25.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.25.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.25.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_fight_corruption african_union_give_mandate = yes } } #African Union Summit - Anti-colonialim country_event = { id = AfricanUnionSummit.26 title = AfricanUnionSummit.26.t desc = AfricanUnionSummit.26.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.26.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.26.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_fight_colonialism african_union_give_mandate = yes } } #African Union Summit - Defence industry country_event = { id = AfricanUnionSummit.27 title = AfricanUnionSummit.27.t desc = AfricanUnionSummit.27.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.27.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.27.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_invest_defence african_union_give_mandate = yes } } #African Union Summit - Global trade country_event = { id = AfricanUnionSummit.28 title = AfricanUnionSummit.28.t desc = AfricanUnionSummit.28.d picture = GFX_african_meeting is_triggered_only = yes option = { name = AfricanUnionSummit.28.a log = "[GetDateText]: [This.GetName]: AfricanUnionSummit.28.a executed" african_union_remove_summit_buffs = yes add_ideas = african_union_invest_sea_trade african_union_give_mandate = yes } }