scripted_gui = { # The button to acutally open up the UI open_the_eu_scripted_gui = { context_type = player_context window_name = "EU_open_the_eu_scripted_gui_window" dirty = global.EU_dirty_update_var visible = { NOT = { has_global_flag = GAME_RULE_eu_disabled } is_ai = no } triggers = { open_the_eu_gui_click_enabled = { is_ai = no } } effects = { open_the_eu_gui_click = { eu_screen_selection = yes if = { limit = { NOT = { has_country_flag = new_EU_open } } set_country_flag = new_EU_open } else = { clr_country_flag = new_EU_open } set_country_flag = show_offices_screen update_eu_dirty_variable = yes } } # Bums the Missile GUI one for now properties = { open_the_eu_gui = { x = global.var_missiles_button_x } } } european_union_gui = { context_type = player_context window_name = "EU_main_background_window" dirty = global.EU_dirty_update_var visible = { NOT = { has_global_flag = GAME_RULE_eu_disabled } OR = { AND = { is_ai = yes # These AI have a vested interest in the European Union either for one reason or another. # TLDR: Don't have the screen open as Jamaica. It's stupid. OR = { has_idea = EU_member has_country_flag = EU_candidate has_idea = super_power has_idea = great_power original_tag = USA original_tag = SOV original_tag = CHI } } has_country_flag = new_EU_open } } # AI Triggering Section # ai_enabled = Allowed for the AI # ai_check = Ensures they are in the EU before opening the GUI ai_enabled = { NOT = { has_global_flag = GAME_RULE_eu_disabled } OR = { is_in_array = { global.EU_potential = THIS.id } original_tag = USA original_tag = CHI } } ai_check = { OR = { AND = { has_idea = EU_member has_at_least_regional_power_status = yes } has_at_least_great_power_status = yes has_country_flag = EU_candidate } } # Test Interval — 4.5 days. EP vote windows are 14 days, so the AI still gets ~3 # evaluation passes per window while cutting EU AI GUI evaluations vs the old 72h. ai_test_interval = 108 ai_max_weight_taken_per_test = 1 properties = { eu_president_council = { image = "[?global.eucouncil.GetFlag]" } eu_president_commission = { image = "[?global.eu_commission.GetFlag]" } eu_central_bank_president = { image = "[?global.eucentralbank.GetFlag]" } foreign_affairs_security = { image = "[?global.euforeignaffairs.GetFlag]" } eu_parliament_president = { image = "[?global.euparliamentpresident.GetFlag]" } eu_minister_economy_finance = { image = "[?global.eufinance.GetFlag]" } eu_frontex_director = { image = "[?global.eufrontex.GetFlag]" } eu_sec_general_euro_army = { image = "[?global.euarmy.GetFlag]" } eu_sec_general_euro_navy = { image = "[?global.eunavy.GetFlag]" } eu_ambassador_to_un = { image = "[?global.euambassador.GetFlag]" } eu_pres_federation = { image = "[?global.eupresfederation.GetFlag]" } } triggers = { # Main Screen Buttons parliament_button_click_enabled = { OR = { has_idea = EU_member has_country_flag = EU_candidate } } euro_voting_button_click_enabled = { OR = { has_idea = EU_member has_country_flag = EU_candidate } } fiscal_button_click_enabled = { OR = { has_idea = EU_member has_country_flag = EU_candidate } } # Secondary Display euro_open_sec_dis_visible = { OR = { has_country_flag = show_eu_parliament has_country_flag = show_eu_fiscal } } EU_secondary_display_window_visible = { has_country_flag = eu_sec_dis_open OR = { has_country_flag = show_eu_parliament has_country_flag = show_eu_fiscal } } EU_sec_display_title_visible = { has_country_flag = eu_sec_dis_open } eu_parl_2nd_disp_eu_tag_header_visible = { has_country_flag = eu_sec_dis_open has_country_flag = show_eu_parliament } eu_parl_2nd_disp_eu_mep_header_visible = { has_country_flag = eu_sec_dis_open has_country_flag = show_eu_parliament } eu_fiscal_view_toggle_visible = { has_country_flag = eu_sec_dis_open has_country_flag = show_eu_fiscal } eu_fiscal_2nd_disp_name_header_visible = { has_country_flag = eu_sec_dis_open has_country_flag = show_eu_fiscal } eu_fiscal_2nd_disp_contrib_header_visible = { has_country_flag = eu_sec_dis_open has_country_flag = show_eu_fiscal NOT = { has_country_flag = eu_fiscal_distrib_view } } eu_fiscal_2nd_disp_distrib_header_visible = { has_country_flag = eu_sec_dis_open has_country_flag = show_eu_fiscal has_country_flag = eu_fiscal_distrib_view } # Offices Screen eu_president_council_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = EU_president_council_unlocks_tt has_global_flag = treaty_of_lisbon } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.eucouncil = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } foreign_affairs_security_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = EU_high_representative_unlocks_tt has_global_flag = EU_foreign_minister } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.euforeignaffairs = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_sec_general_euro_army_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = EU_sec_general_euro_army_unlocks_tt has_global_flag = euro_army } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.euarmy = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_sec_general_euro_navy_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = EU_sec_general_euro_navy_unlocks_tt has_global_flag = euro_navy } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.eunavy = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } # MUST BE COASTAL TO TAKE EURONAVY any_owned_state = { is_coastal = yes } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_parliament_president_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = eu_parliament_president_unlocks_tt has_global_flag = treaty_of_lisbon } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.euparliamentpresident = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_president_commission_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.eu_commission = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_commission_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes } } eu_central_bank_president_back_click_enabled = { has_idea = EU_member has_idea = euro custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.eucentralbank = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_minister_economy_finance_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = EU_ministry_of_economy_and_finance_unlocks_tt has_global_flag = EU_finance_minister } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.eufinance = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_ambassador_to_un_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = EU_ambassador_to_un_unlocks_tt has_global_flag = EU_UNSC } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.euambassador = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_frontex_director_back_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = EU_frontex_director_unlocks_tt has_global_flag = frontex_ExDir } custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.eufrontex = EUU.id } } OR = { EU_does_not_hold_another_office = yes has_idea = EU_president } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_pres_federation_back_click_enabled = { has_idea = EU_member has_global_flag = european_federation always = no custom_trigger_tooltip = { tooltip = office_occupied_tt check_variable = { global.eupresfederation = EUU.id } } OR = { EU_influence_on_all_other_members_5_percent = yes EU_has_over_five_percent_pop = yes EU_all_player_or_majors_hold_office = yes } } eu_pres_federation_back_visible = { EU_european_union_offices_trigger = yes has_global_flag = european_federation } eu_pres_federation_visible = { EU_european_union_offices_trigger = yes has_global_flag = european_federation } retire_office_click_enabled = { OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_foreign_minister has_idea = EU_parliament_president has_idea = ECB_president has_idea = EU_finance_minister has_idea = frontex_ExDir has_idea = EUU_euronavy_sc has_idea = EUU_euroarmy_sc has_idea = EUU_ambassador_unsc has_idea = EU_president } has_idea = EU_member } retire_office_visible = { EU_european_union_offices_trigger = yes OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_foreign_minister has_idea = EU_parliament_president has_idea = ECB_president has_idea = EU_finance_minister has_idea = frontex_ExDir has_idea = EUU_euronavy_sc has_idea = EUU_euroarmy_sc has_idea = EUU_ambassador_unsc has_idea = EU_president } has_idea = EU_member } eu_president_council_visible = { EU_european_union_offices_trigger = yes } eu_president_council_back_visible = { EU_european_union_offices_trigger = yes } eu_president_council_text_visible = { EU_european_union_offices_trigger = yes } foreign_affairs_security_visible = { EU_european_union_offices_trigger = yes } foreign_affairs_security_back_visible = { EU_european_union_offices_trigger = yes } foreign_affairs_security_text_visible = { EU_european_union_offices_trigger = yes } eu_sec_general_euro_army_visible = { EU_european_union_offices_trigger = yes } eu_sec_general_euro_army_back_visible = { EU_european_union_offices_trigger = yes } eu_sec_general_euro_army_text_visible = { EU_european_union_offices_trigger = yes } eu_sec_general_euro_navy_visible = { EU_european_union_offices_trigger = yes } eu_sec_general_euro_navy_back_visible = { EU_european_union_offices_trigger = yes } eu_sec_general_euro_navy_text_visible = { EU_european_union_offices_trigger = yes } eu_parliament_president_visible = { EU_european_union_offices_trigger = yes } eu_parliament_president_back_visible = { EU_european_union_offices_trigger = yes } eu_parliament_president_text_visible = { EU_european_union_offices_trigger = yes } eu_president_commission_visible = { EU_european_union_offices_trigger = yes } eu_president_commission_back_visible = { EU_european_union_offices_trigger = yes } eu_president_commission_text_visible = { EU_european_union_offices_trigger = yes } eu_central_bank_president_visible = { EU_european_union_offices_trigger = yes } eu_central_bank_president_back_visible = { EU_european_union_offices_trigger = yes } eu_central_bank_president_text_visible = { EU_european_union_offices_trigger = yes } eu_minister_economy_finance_visible = { EU_european_union_offices_trigger = yes } eu_minister_economy_finance_back_visible = { EU_european_union_offices_trigger = yes } eu_minister_economy_finance_text_visible = { EU_european_union_offices_trigger = yes } eu_ambassador_to_un_visible = { EU_european_union_offices_trigger = yes } eu_ambassador_to_un_back_visible = { EU_european_union_offices_trigger = yes } eu_ambassador_to_un_text_visible = { EU_european_union_offices_trigger = yes } eu_frontex_director_visible = { EU_european_union_offices_trigger = yes } eu_frontex_director_back_visible = { EU_european_union_offices_trigger = yes } eu_frontex_director_text_visible = { EU_european_union_offices_trigger = yes } eu_pres_federation_visible = { has_global_flag = european_federation EU_european_union_offices_trigger = yes } eu_pres_federation_back_visible = { has_global_flag = european_federation EU_european_union_offices_trigger = yes } EU_Article_50_click_enabled = { has_idea = EU_member custom_trigger_tooltip = { tooltip = tooltip_EU_exit_available NOT = { has_country_flag = Article_50 } } NOT = { has_country_flag = cant_invoke_article_50 } hidden_trigger = { # Stopgap to stop them from spamming this if = { limit = { is_ai = yes } OR = { check_variable = { THIS.europeanism < 0.40 } EU_external_sov_chi_influence_50 = yes } } } } # European Parliament Triggers eu_view_party_0_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_1_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_2_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_3_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_4_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_5_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_6_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_7_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_8_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_9_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_10_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_11_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_12_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_13_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_14_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_15_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_16_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_17_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_18_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_19_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_20_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_21_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_22_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } eu_view_party_23_members_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_0_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_0_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { NOT = { check_variable = { global.PG_party_support_array^0 > 0 } } tooltip = party_not_supporting_tt } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^0 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^0 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_1_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_1_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^1 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^1 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^1 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_2_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_2_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^2 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^2 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^2 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_3_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_3_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^3 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^3 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^3 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_4_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_4_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^4 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^4 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^4 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_5_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_5_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^5 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^5 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^5 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_6_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_6_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^6 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^6 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^6 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_7_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_7_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^7 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^7 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^7 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_8_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_8_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^8 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^8 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^8 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_9_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_9_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^9 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^9 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^9 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_10_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_10_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^10 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^10 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^10 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_11_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_11_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^11 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^11 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^11 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_12_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_12_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^12 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^12 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^12 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_13_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_13_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^13 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^13 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^13 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_14_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_14_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^14 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^14 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^14 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_15_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_15_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^15 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^15 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^15 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_16_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_16_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^16 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^16 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^16 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_17_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_17_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^17 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^17 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^17 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_18_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_18_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^18 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^18 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^18 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_19_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_19_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^19 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^19 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^19 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_20_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_20_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^20 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^20 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^20 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_21_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_21_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^21 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^21 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^21 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_22_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_22_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^22 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^22 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^22 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } PG_party_23_influence_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } PG_party_23_influence_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = party_not_supporting_tt NOT = { check_variable = { global.PG_party_support_array^23 > 0 } } } custom_trigger_tooltip = { tooltip = has_mep_rep_tt check_variable = { global.MEP_PG_party_array^23 > 0 } } set_temp_variable = { EU_parliament_influence_cost = { value = global.MEP_PG_party_array^23 multiply = 2 } } custom_trigger_tooltip = { tooltip = EU_parliament_influence_cost_tt check_expr = { value = political_power greater_than = EU_parliament_influence_cost } } } pass_vote_button_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } pass_vote_button_click_enabled = { EU_parliament_in_session = yes custom_trigger_tooltip = { tooltip = pass_vote_button_click_enabled_tt check_variable = { var = global.active_MEP_Support value = global.MEP_Majority compare = greater_than_or_equals } } hidden_trigger = { is_ai = no } } remove_vote_button_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } remove_vote_button_click_enabled = { EU_parliament_in_session = yes hidden_trigger = { has_global_flag = EU_active_EP_agenda_holder var:global.eu_commission = { tag = ROOT } is_ai = no } } # Euro-Info # Euro Sceptic Stuff euroscepticism_country_button_visible = { EU_european_union_euro_info_trigger = yes } euroscepticism_country_button_click_enabled = { NOT = { has_country_flag = euroscepticism_country_button_click_cooldown } has_idea = EU_member has_political_power > 100 #make this cost political power for internal } euroscepticism_euwide_button_visible = { EU_european_union_euro_info_trigger = yes } euroscepticism_euwide_button_click_enabled = { NOT = { has_country_flag = euroscepticism_euwide_button_click_cooldown } set_temp_variable = { the_cost = 200 } if = { limit = { NOT = { has_idea = EU_member } } add_to_temp_variable = { the_cost = 100 } } has_political_power > the_cost #foreign nations can ONLY do this one } proeuro_country_button_visible = { EU_european_union_euro_info_trigger = yes } proeuro_country_button_click_enabled = { NOT = { has_country_flag = proeuro_country_button_click_cooldown } OR = { has_idea = EU_member has_country_flag = EU_candidate } has_political_power > 50 #candidates may run this in their own country; members keep access } proeuro_euwide_button_visible = { EU_european_union_euro_info_trigger = yes } proeuro_euwide_button_click_enabled = { NOT = { has_country_flag = proeuro_euwide_button_click_cooldown } has_idea = EU_member set_temp_variable = { the_cost = { value = global.EU_15_per_member_cost multiply = 0.5 } } has_political_power > the_cost #pan-EU campaign is members-only } approve_IPA_button_visible = { EU_european_union_euro_info_trigger = yes } approve_IPA_button_click_enabled = { custom_trigger_tooltip = { tooltip = "EU_no_ongoing_ipa" NOT = { has_country_flag = instrument_for_pre_accession_assistance } } OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_foreign_minister has_idea = EU_parliament_president has_idea = EU_finance_minister } custom_trigger_tooltip = { tooltip = "EU_any_current_eu_candidates" any_of = { array = global.EU_potential var:global.EU_potential^i = { has_country_flag = EU_candidate NOT = { has_idea = EU_member } } } } } euro_info_population_of_eu_visible = { EU_european_union_euro_info_trigger = yes } support_council_vote_button_visible = { EU_european_union_council_voting_trigger = yes } support_council_vote_button_click_enabled = { NOT = { check_variable = { global.current_active_vote_disp = 0 } } NOT = { is_in_array = { array = global.EU_active_vote_supporters value = THIS } } } reject_council_vote_button_visible = { EU_european_union_council_voting_trigger = yes } reject_council_vote_button_click_enabled = { NOT = { check_variable = { global.current_active_vote_disp = 0 } } NOT = { is_in_array = { array = global.EU_active_vote_rejecters value = THIS } } } # Fiscal buttons EU_min_call_rate_visible = { EU_european_union_euro_fiscal_trigger = yes } EU_min_call_rate_click_enabled = { has_idea = EU_member EU_ongoing_mff_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 998 } } check_variable = { global.EU_budget_min_call_rate < 10 } has_political_power > global.EU_15_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_min_call_rate_right_click_enabled = { has_idea = EU_member EU_ongoing_mff_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 998 } } check_variable = { global.EU_budget_min_call_rate > 0 } has_political_power > global.EU_15_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_global_call_rate_visible = { EU_european_union_euro_fiscal_trigger = yes } EU_global_call_rate_click_enabled = { has_idea = EU_member EU_ongoing_mff_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 998 } } any_of_scopes = { array = global.EU_member has_variable = EU_budget_call_rate check_variable = { THIS.EU_budget_call_rate < 100 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_global_call_rate_right_click_enabled = { has_idea = EU_member EU_ongoing_mff_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 998 } } any_of_scopes = { array = global.EU_member has_variable = EU_budget_call_rate check_variable = { THIS.EU_budget_call_rate > global.EU_budget_min_call_rate } check_variable = { THIS.EU_budget_call_rate > 0 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_THIS_call_rate_visible = { EU_european_union_euro_fiscal_trigger = yes } EU_THIS_call_rate_click_enabled = { has_idea = EU_member EU_ongoing_mff_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 998 } } has_variable = EU_budget_call_rate check_variable = { THIS.EU_budget_call_rate < 100 } has_political_power > THIS.EU_mff_country_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_THIS_call_rate_right_click_enabled = { has_idea = EU_member EU_ongoing_mff_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 998 } } has_variable = EU_budget_call_rate check_variable = { THIS.EU_budget_call_rate > global.EU_budget_min_call_rate } has_political_power > THIS.EU_mff_country_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_global_expenses_visible = { EU_european_union_euro_fiscal_trigger = yes } # Budget Sections EU_global_expenses_click_enabled = { has_idea = EU_member check_variable = { global.EU_global_exp_ratio < 0.80 } check_variable = { global.EU_growth_exp_ratio > 0.05 } check_variable = { global.EU_natural_exp_ratio > 0.05 } EU_ongoing_budget_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 999 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_global_expenses_right_click_enabled = { has_idea = EU_member check_variable = { global.EU_global_exp_ratio > 0.09 } check_variable = { global.EU_growth_exp_ratio < 0.80 } check_variable = { global.EU_natural_exp_ratio < 0.80 } EU_ongoing_budget_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 999 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_administration_expenses_visible = { EU_european_union_euro_fiscal_trigger = yes } EU_administration_expenses_click_enabled = { has_idea = EU_member check_variable = { global.EU_admin_exp_ratio < 0.80 } check_variable = { global.EU_growth_exp_ratio > 0.05 } check_variable = { global.EU_natural_exp_ratio > 0.05 } EU_ongoing_budget_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 999 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_administration_expenses_right_click_enabled = { has_idea = EU_member check_variable = { global.EU_admin_exp_ratio > 0.09 } check_variable = { global.EU_growth_exp_ratio < 0.80 } check_variable = { global.EU_natural_exp_ratio < 0.80 } EU_ongoing_budget_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 999 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_growth_natural_subsidies_visible = { EU_european_union_euro_fiscal_trigger = yes } EU_growth_natural_subsidies_click_enabled = { has_idea = EU_member check_variable = { global.EU_natural_exp_ratio > 0.09 } check_variable = { global.EU_growth_exp_ratio < 0.80 } EU_ongoing_budget_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 999 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_growth_natural_subsidies_right_click_enabled = { has_idea = EU_member check_variable = { global.EU_growth_exp_ratio > 0.09 } check_variable = { global.EU_natural_exp_ratio < 0.80 } EU_ongoing_budget_draft_trigger = yes NOT = { check_variable = { global.current_active_agenda_disp = 999 } } has_political_power > global.EU_10_per_member_cost custom_trigger_tooltip = { tooltip = EU_central_bank_taken OR = { AND = { NOT = { check_variable = { global.eucentralbank = EUU.id } } var:global.eucentralbank = { has_idea = ECB_president } } check_variable = { global.EU_member^num < 2 } } } } EU_run_omt_program_visible = { EU_european_union_euro_fiscal_trigger = yes } EU_run_omt_program_click_enabled = { has_idea = ECB_zero_interest_rate_policy has_idea = ECB_president custom_trigger_tooltip = { tooltip = not_omt_start NOT = { has_global_flag = omt_started } } } EU_adjust_omt_program_visible = { EU_european_union_euro_fiscal_trigger = yes } EU_adjust_omt_program_click_enabled = { has_idea = EU_member has_idea = ECB_president has_idea = ECB_zero_interest_rate_policy any_of_scopes = { array = global.EU_member has_idea = euro check_variable = { THIS.interest_rate > 4.0 } } } EU_adjust_omt_program_right_click_enabled = { has_idea = EU_member has_idea = ECB_president has_idea = ECB_zero_interest_rate_policy check_variable = { global.OMT_size_limit > 0 } } EU_run_omt_program_right_click_enabled = { has_idea = EU_member has_idea = ECB_president has_idea = ECB_zero_interest_rate_policy custom_trigger_tooltip = { tooltip = tooltip_ECB_Outright_Monetary_Transactions_available check_variable = { global.OMT_size_limit > 0 } } } # European Parliament eu_political_parties_header_visible = { EU_european_union_euro_parliament_trigger = yes } epp-ed_visible = { EU_european_union_euro_parliament_trigger = yes } total_mep_visible = { EU_european_union_euro_parliament_trigger = yes } eu_parliament_majority_visible = { EU_european_union_euro_parliament_trigger = yes } eu_parliament_supporting_visible = { EU_european_union_euro_parliament_trigger = yes } active_agenda_header_visible = { EU_european_union_euro_parliament_trigger = yes } current_active_agenda_visible = { EU_european_union_euro_parliament_trigger = yes } list_of_available_laws_visible = { EU_european_union_euro_parliament_trigger = yes has_idea = EU_member } # Euro Info soteu_country_header_visible = { EU_european_union_euro_info_trigger = yes } soteu_population_header_visible = { EU_european_union_euro_info_trigger = yes } soteu_ratio_of_eu_header_visible = { EU_european_union_euro_info_trigger = yes } soteu_europeanism_header_visible = { EU_european_union_euro_info_trigger = yes } soteu_breach_of_eu_values_header_visible = { EU_european_union_euro_info_trigger = yes } system_of_eu_values_bg_visible = { EU_european_union_euro_info_trigger = yes } system_of_eu_values_visible = { EU_european_union_euro_info_trigger = yes } country_europeanism_status_visible = { EU_european_union_euro_info_trigger = yes } pro-euro_visible = { EU_european_union_euro_info_trigger = yes } # Budget Screen Text omt_country_header_visible = { EU_european_union_euro_fiscal_trigger = yes } omt_debt_header_visible = { EU_european_union_euro_fiscal_trigger = yes } omt_interest_rate_header_visible = { EU_european_union_euro_fiscal_trigger = yes } omt_account_header_visible = { EU_european_union_euro_fiscal_trigger = yes } gdp_total_of_the_eu_visible = { EU_european_union_euro_fiscal_trigger = yes } average_eu_economy_visible = { EU_european_union_euro_fiscal_trigger = yes } average_eu_gdpc_visible = { EU_european_union_euro_fiscal_trigger = yes } multiannual_financial_framework_visible = { EU_european_union_euro_fiscal_trigger = yes } budget_invested_pp_visible = { EU_european_union_euro_fiscal_trigger = yes } mff_total_visible = { EU_european_union_euro_fiscal_trigger = yes } eu_gdp_call_rate_visible = { EU_european_union_euro_fiscal_trigger = yes } eu_total_budget_visible = { EU_european_union_euro_fiscal_trigger = yes } budget_next_year_visible = { EU_european_union_euro_fiscal_trigger = yes } next_year_pp_loc_visible = { EU_european_union_euro_fiscal_trigger = yes } expenditure_total_loc_visible = { EU_european_union_euro_fiscal_trigger = yes } # Council Voting current_active_vote_visible = { EU_european_union_council_voting_trigger = yes } active_measure_name_visible = { EU_european_union_council_voting_trigger = yes } open_votes_list_visible = { EU_european_union_council_voting_trigger = yes } voting_member_list_visible = { EU_european_union_council_voting_trigger = yes } euro_council_head_eu_visible = { EU_european_union_council_voting_trigger = yes } euro_vote_support_header_visible = { EU_european_union_council_voting_trigger = yes } euro_vote_reject_header_visible = { EU_european_union_council_voting_trigger = yes } rej_vote_percent_visible = { EU_european_union_council_voting_trigger = yes } sup_vote_percent_visible = { EU_european_union_council_voting_trigger = yes } EU_total_member_vote_visible = { EU_european_union_council_voting_trigger = yes } } effects = { # Opens the main screen EU_offices_screen_click = { eu_screen_selection = yes set_country_flag = show_offices_screen } # Opens the Europeanism EU_europeanism_screen_click = { eu_screen_selection = yes set_country_flag = show_euro_info } # Opens the parliament screen parliament_button_click = { eu_screen_selection = yes set_country_flag = show_eu_parliament } # Opens the Voting Screen euro_voting_button_click = { eu_screen_selection = yes set_country_flag = show_euro_voting } # Opens the Budget Screen fiscal_button_click = { eu_screen_selection = yes set_country_flag = show_eu_fiscal update_EU_average_gdpc_lvl = yes update_EU_average_eco_lvl = yes } # Triggers Article 50 EU_Article_50_click = { activate_mission = EU_exit set_country_flag = Article_50 EU_vacate_offices = yes news_event = EU_news.34 update_eu_dirty_variable = yes } euro_open_sec_dis_click = { if = { limit = { has_country_flag = eu_sec_dis_open } clr_country_flag = eu_sec_dis_open } else = { set_country_flag = eu_sec_dis_open } update_eu_dirty_variable = yes } eu_fiscal_view_toggle_click = { if = { limit = { has_country_flag = eu_fiscal_distrib_view } clr_country_flag = eu_fiscal_distrib_view } else = { set_country_flag = eu_fiscal_distrib_view } update_eu_dirty_variable = yes } # Closes the UI euro_close_button_click = { eu_screen_selection = yes clr_country_flag = new_EU_open } # Offices Screen eu_president_council_back_click = { add_timed_idea = { idea = EU_council_president days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.3 } # set_global_flag = EU_council_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } foreign_affairs_security_back_click = { add_timed_idea = { idea = EU_foreign_minister days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.4 } set_global_flag = EU_foreign_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_sec_general_euro_army_back_click = { add_timed_idea = { idea = EUU_euroarmy_sc days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.9 } # set_global_flag = EU_euroarmy_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_sec_general_euro_navy_back_click = { add_timed_idea = { idea = EUU_euronavy_sc days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.10 } # set_global_flag = EU_euronavy_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_parliament_president_back_click = { add_timed_idea = { idea = EU_parliament_president days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.5 } set_global_flag = EU_parliament_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_president_commission_back_click = { add_timed_idea = { idea = EU_commission_president days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.2 } set_global_flag = EU_commission_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_central_bank_president_back_click = { add_timed_idea = { idea = ECB_president days = 2920 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.6 } # set_global_flag = EU_bank_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_minister_economy_finance_back_click = { add_timed_idea = { idea = EU_finance_minister days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.7 } # set_global_flag = EU_finance_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_ambassador_to_un_back_click = { add_timed_idea = { idea = EUU_ambassador_unsc days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.11 } # set_global_flag = EU_ambassador_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_frontex_director_back_click = { add_timed_idea = { idea = frontex_ExDir days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.8 } set_global_flag = EU_frontex_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } eu_pres_federation_back_click = { add_timed_idea = { idea = EU_president days = 1825 } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.12 } set_global_flag = EU_POTEF_taken_flag set_country_flag = cant_invoke_article_50 update_eu_dirty_variable = yes } retire_office_click = { set_temp_variable = { modify_europeanism = -0.1 } set_temp_variable = { modify_europeanism_target = THIS } europeanism_change = yes THIS = { if = { limit = { has_idea = EU_commission_president } remove_ideas = EU_commission_president clr_global_flag = EU_commission_taken_flag } if = { limit = { has_idea = EUU_euroarmy_sc } remove_ideas = EUU_euroarmy_sc # clr_global_flag = EU_euroarmy_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = EUU_ambassador_unsc } remove_ideas = EUU_ambassador_unsc # clr_global_flag = EU_ambassador_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = EU_council_president } remove_ideas = EU_council_president # clr_global_flag = EU_council_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = EU_foreign_minister } remove_ideas = EU_foreign_minister clr_global_flag = EU_foreign_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = EU_parliament_president } remove_ideas = EU_parliament_president clr_global_flag = EU_parliament_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = ECB_president } remove_ideas = ECB_president # clr_global_flag = EU_ecb_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = EU_finance_minister } remove_ideas = EU_finance_minister # clr_global_flag = EU_finance_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = frontex_ExDir } remove_ideas = frontex_ExDir # clr_global_flag = EU_frontex_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = EUU_euronavy_sc } remove_ideas = EUU_euronavy_sc # clr_global_flag = EU_euronavy_taken_flag clr_country_flag = cant_invoke_article_50 } if = { limit = { has_idea = EU_president } remove_ideas = EU_president clr_global_flag = EU_POTEF_taken_flag clr_country_flag = cant_invoke_article_50 } } set_country_flag = { flag = recently_retired_from_an_eu_office value = 1 days = 90 } update_eu_dirty_variable = yes } # Party MEP breakdown view buttons — open the selected group's member list in the side panel eu_view_party_0_members_click = { set_variable = { global.EU_selected_party = 0 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_1_members_click = { set_variable = { global.EU_selected_party = 1 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_2_members_click = { set_variable = { global.EU_selected_party = 2 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_3_members_click = { set_variable = { global.EU_selected_party = 3 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_4_members_click = { set_variable = { global.EU_selected_party = 4 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_5_members_click = { set_variable = { global.EU_selected_party = 5 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_6_members_click = { set_variable = { global.EU_selected_party = 6 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_7_members_click = { set_variable = { global.EU_selected_party = 7 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_8_members_click = { set_variable = { global.EU_selected_party = 8 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_9_members_click = { set_variable = { global.EU_selected_party = 9 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_10_members_click = { set_variable = { global.EU_selected_party = 10 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_11_members_click = { set_variable = { global.EU_selected_party = 11 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_12_members_click = { set_variable = { global.EU_selected_party = 12 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_13_members_click = { set_variable = { global.EU_selected_party = 13 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_14_members_click = { set_variable = { global.EU_selected_party = 14 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_15_members_click = { set_variable = { global.EU_selected_party = 15 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_16_members_click = { set_variable = { global.EU_selected_party = 16 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_17_members_click = { set_variable = { global.EU_selected_party = 17 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_18_members_click = { set_variable = { global.EU_selected_party = 18 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_19_members_click = { set_variable = { global.EU_selected_party = 19 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_20_members_click = { set_variable = { global.EU_selected_party = 20 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_21_members_click = { set_variable = { global.EU_selected_party = 21 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_22_members_click = { set_variable = { global.EU_selected_party = 22 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } eu_view_party_23_members_click = { set_variable = { global.EU_selected_party = 23 } set_country_flag = eu_sec_dis_open set_country_flag = eu_party_detail_open EU_select_party_members = yes update_eu_dirty_variable = yes } # European Parliament PG_party_0_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_0_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_0_influence" set_variable = { global.PG_party_support_array^0 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^0 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^0 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_1_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_1_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_1_influence" set_variable = { global.PG_party_support_array^1 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^1 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^1 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_2_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_2_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_2_influence" set_variable = { global.PG_party_support_array^2 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^2 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^2 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_3_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_3_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_3_influence" set_variable = { global.PG_party_support_array^3 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^3 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^3 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_4_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_4_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_4_influence" set_variable = { global.PG_party_support_array^4 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^4 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^4 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_5_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_5_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_5_influence" set_variable = { global.PG_party_support_array^5 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^5 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^5 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_6_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_6_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_6_influence" set_variable = { global.PG_party_support_array^6 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^6 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^6 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_7_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_7_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_7_influence" set_variable = { global.PG_party_support_array^7 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^7 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^7 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_8_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_8_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_8_influence" set_variable = { global.PG_party_support_array^8 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^8 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^8 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_9_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_9_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_9_influence" set_variable = { global.PG_party_support_array^9 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^9 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^9 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_10_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_10_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_10_influence" set_variable = { global.PG_party_support_array^10 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^10 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^10 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_11_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_11_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_11_influence" set_variable = { global.PG_party_support_array^11 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^11 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^11 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_12_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_12_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_12_influence" set_variable = { global.PG_party_support_array^12 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^12 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^12 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_13_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_13_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_13_influence" set_variable = { global.PG_party_support_array^13 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^13 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^13 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_14_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_14_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_14_influence" set_variable = { global.PG_party_support_array^14 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^14 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^14 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_15_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_15_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_15_influence" set_variable = { global.PG_party_support_array^15 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^15 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^15 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_16_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_16_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_16_influence" set_variable = { global.PG_party_support_array^16 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^16 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^16 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_17_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_17_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_17_influence" set_variable = { global.PG_party_support_array^17 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^17 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^17 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_18_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_18_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_18_influence" set_variable = { global.PG_party_support_array^18 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^18 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^18 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_19_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_19_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_19_influence" set_variable = { global.PG_party_support_array^19 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^19 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^19 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_20_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_20_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_20_influence" set_variable = { global.PG_party_support_array^20 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^20 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^20 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_21_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_21_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_21_influence" set_variable = { global.PG_party_support_array^21 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^21 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^21 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_22_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_22_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_22_influence" set_variable = { global.PG_party_support_array^22 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^22 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^22 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } PG_party_23_influence_click = { custom_effect_tooltip = tooltip_EU_parl_PG_party_23_influence hidden_effect = { log = "[GetDateText]: [Root.GetName]: Decision EU_parl_PG_party_23_influence" set_variable = { global.PG_party_support_array^23 = 1 } add_to_variable = { global.active_MEP_Support = global.MEP_PG_party_array^23 } set_temp_variable = { var = temp_pp_mod value = { value = global.MEP_PG_party_array^23 multiply = -2 } } add_political_power = temp_pp_mod } update_eu_dirty_variable = yes } # Voting Buttons pass_vote_button_click = { log = "[GetDateText]: [Root.GetName]: EU Pass EP Agenda Button" custom_effect_tooltip = EU_parliament_approve_agenda_tt hidden_effect = { clr_global_flag = EU_active_EP_agenda_holder clr_global_flag_PG_X_support = yes if = { limit = { is_in_array = { array = global.EU_potential_votes value = global.current_active_agenda_disp } } remove_from_array = { array = global.EU_potential_votes value = global.current_active_agenda_disp } } if = { limit = { NOT = { OR = { check_variable = { global.current_active_agenda_disp = 0 } check_variable = { global.current_active_agenda_disp = 998 } check_variable = { global.current_active_agenda_disp = 999 } } } } add_to_array = { global.EU_council_votes = global.current_active_agenda_disp } set_variable = { global.pass_vote_mission_ender = 1 } } set_variable = { global.active_MEP_Support = 0 } if = { limit = { has_global_flag = EU_budget_EP_block check_variable = { global.current_active_agenda_disp = 999 } } clr_global_flag = EU_budget_EP_block } if = { limit = { has_global_flag = EU_mff_EP_block check_variable = { global.current_active_agenda_disp = 998 } } clr_global_flag = EU_mff_EP_block } if = { limit = { NOT = { OR = { check_variable = { global.current_active_agenda_disp = 998 } check_variable = { global.current_active_agenda_disp = 999 } } } } set_the_eu_parliament_delay = yes } for_each_scope_loop = { array = global.EU_member if = { limit = { has_active_mission = EU_parliament_focus_EUXXX_approve } remove_mission = EU_parliament_focus_EUXXX_approve } } set_variable = { global.current_active_agenda_disp = 0 } update_eu_dirty_variable = yes } } remove_vote_button_click = { log = "[GetDateText]: [Root.GetName]: EU Remove EP Agenda Button" custom_effect_tooltip = EU_parliament_remove_agenda_tt hidden_effect = { clr_global_flag = EU_active_EP_agenda_holder clr_global_flag_PG_X_support = yes set_variable = { global.active_MEP_Support = 0 } if = { limit = { check_variable = { global.current_active_agenda_disp = 999 } } EU_rollback_budget_values = yes } if = { limit = { check_variable = { global.current_active_agenda_disp = 998 } } EU_rollback_mff_values = yes } if = { limit = { has_global_flag = EU_budget_EP_block check_variable = { global.current_active_agenda_disp = 999 } } clr_global_flag = EU_budget_EP_block } if = { limit = { has_global_flag = EU_mff_EP_block check_variable = { global.current_active_agenda_disp = 998 } } clr_global_flag = EU_mff_EP_block } if = { limit = { NOT = { OR = { check_variable = { global.current_active_agenda_disp = 998 } check_variable = { global.current_active_agenda_disp = 999 } } } } set_the_eu_parliament_delay = yes } for_each_scope_loop = { array = global.EU_member if = { limit = { has_active_mission = EU_parliament_focus_EUXXX_approve } remove_mission = EU_parliament_focus_EUXXX_approve } } set_variable = { global.current_active_agenda_disp = 0 } update_eu_dirty_variable = yes } } approve_IPA_button_click = { set_country_flag = { flag = instrument_for_pre_accession_assistance days = 180 value = 1 } custom_effect_tooltip = instrument_for_pre_accession_assistance_tt for_each_scope_loop = { array = global.EU_potential if = { limit = { has_country_flag = EU_candidate NOT = { has_idea = EU_member } } activate_mission = pre_accession_assistance_program add_timed_idea = { idea = EU_pre_accession_assistance days = 180 } set_variable = { var_IPA = ROOT.id } } } update_eu_dirty_variable = yes } euroscepticism_country_button_click = { log = "[GetDateText]: [ROOT.GetName]: EU GUI root_pro_european_campaign" set_temp_variable = { var = treasury_change value = { value = gdp_total multiply = -0.003 } } modify_treasury_effect = yes add_political_power = -100 random_list = { 70 = { modifier = { add = 10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } set_temp_variable = { modify_europeanism = -0.05 } set_temp_variable = { modify_europeanism_target = ROOT } europeanism_change = yes news_event = EU_news.43 # Success } 30 = { modifier = { add = -10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } news_event = EU_news.44 ### failure } } set_country_flag = { flag = euroscepticism_country_button_click_cooldown days = 120 value = 1 } update_eu_dirty_variable = yes } euroscepticism_euwide_button_click = { log = "[GetDateText]: [ROOT.GetName]: EU GUI euroscepticism_campaign" set_temp_variable = { treasury_change = global.EU_gdp } if = { limit = { NOT = { has_idea = EU_member } } set_temp_variable = { var = treasury_change value = { value = treasury_change add = ROOT.gdp_total multiply = -0.004 } } } else = { multiply_temp_variable = { treasury_change = -0.001 } } modify_treasury_effect = yes set_temp_variable = { the_cost = global.EU_15_per_member_cost } if = { limit = { NOT = { has_idea = EU_member } } multiply_temp_variable = { the_cost = 1.5 } } multiply_temp_variable = { the_cost = -1 } add_political_power = the_cost random_list = { 50 = { modifier = { add = -10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } set_temp_variable = { modify_europeanism = -0.03 } EU_potential_europeanism_change = yes for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.38 } } 40 = { modifier = { add = 20 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } set_temp_variable = { modify_europeanism = -0.05 } EU_potential_europeanism_change = yes for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.39 } } 10 = { modifier = { add = -10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.40 ### euroscepticism_campaign failure } } } set_country_flag = { flag = euroscepticism_euwide_button_click_cooldown days = 120 value = 1 } update_eu_dirty_variable = yes } proeuro_country_button_click = { log = "[GetDateText]: [ROOT.GetName]: EU GUI root_pro_european_campaign" set_temp_variable = { var = treasury_change value = { value = gdp_total multiply = -0.002 } } modify_treasury_effect = yes add_political_power = -50 random_list = { 70 = { modifier = { add = 10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } set_temp_variable = { modify_europeanism = 0.05 } set_temp_variable = { modify_europeanism_target = ROOT } europeanism_change = yes news_event = EU_news.41 } 30 = { modifier = { add = -10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } news_event = EU_news.42 } } set_country_flag = { flag = proeuro_country_button_click_cooldown days = 120 value = 1 } update_eu_dirty_variable = yes } proeuro_euwide_button_click = { log = "[GetDateText]: [ROOT.GetName]: EU GUI pro_european_campaign" set_temp_variable = { treasury_change = { value = global.EU_gdp multiply = -0.0005 } } modify_treasury_effect = yes set_temp_variable = { the_cost = { value = global.EU_15_per_member_cost multiply = -0.5 } } add_political_power = the_cost random_list = { 50 = { modifier = { add = -10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } set_temp_variable = { modify_europeanism = 0.03 } EU_potential_europeanism_change = yes for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.35 } } 40 = { modifier = { add = 20 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } set_temp_variable = { modify_europeanism = 0.05 } EU_potential_europeanism_change = yes for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.36 } } 10 = { modifier = { add = -10 OR = { has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president has_idea = EU_president } } for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.37 } } } set_country_flag = { flag = proeuro_euwide_button_click_cooldown days = 120 value = 1 } update_eu_dirty_variable = yes } support_council_vote_button_click = { add_to_array = { global.EU_active_vote_supporters = THIS } set_temp_variable = { add_ratio_value = THIS.EU_pop_ratio } add_to_variable = { global.EU_pop_ratio_yes = add_ratio_value } if = { limit = { is_in_array = { array = global.EU_active_vote_rejecters value = THIS } } remove_from_array = { array = global.EU_active_vote_rejecters value = THIS } subtract_from_variable = { global.EU_pop_ratio_no = add_ratio_value } } update_eu_dirty_variable = yes } reject_council_vote_button_click = { add_to_array = { global.EU_active_vote_rejecters = THIS } set_temp_variable = { add_ratio_value = THIS.EU_pop_ratio } add_to_variable = { global.EU_pop_ratio_no = add_ratio_value } if = { limit = { is_in_array = { array = global.EU_active_vote_supporters value = THIS } } remove_from_array = { array = global.EU_active_vote_supporters value = THIS } subtract_from_variable = { global.EU_pop_ratio_yes = add_ratio_value } } update_eu_dirty_variable = yes } EU_min_call_rate_click = { custom_effect_tooltip = tooltip_EU_budget_raise_min_call_rate_effect add_political_power = global.EU_15_per_member_cost_minus set_variable = { global.EU_budget_min_call_rate = { value = global.EU_budget_min_call_rate add = 0.05 clamp = { min = 0 max = 100 } } } for_each_scope_loop = { array = global.EU_member if = { limit = { NOT = { has_variable = EU_budget_call_rate } } set_variable = { EU_budget_call_rate = 1 } } clamp_variable = { var = THIS.EU_budget_call_rate min = global.EU_budget_min_call_rate max = 100 } } update_EU_budget_call_rate = yes EU_country_call_rate_cost_calc = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_15_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_15_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = -1 } add_to_variable = { global.EU_draft_party_array^6 = -1 } add_to_variable = { global.EU_draft_party_array^14 = -1 } add_to_variable = { global.EU_draft_party_array^2 = 1 } add_to_variable = { global.EU_draft_party_array^16 = 1 } add_to_variable = { global.EU_draft_party_array^3 = 1 } add_to_variable = { global.EU_draft_party_array^18 = 1 } add_to_variable = { global.EU_draft_party_array^17 = 1 } add_to_variable = { global.EU_draft_party_array^4 = 1 } add_to_variable = { global.EU_draft_party_array^5 = 1 } add_to_variable = { global.EU_draft_party_array^19 = 1 } add_to_variable = { global.EU_draft_party_array^20 = -1 } add_to_variable = { global.EU_draft_party_array^21 = -1 } add_to_variable = { global.EU_draft_party_array^22 = -1 } add_to_variable = { global.EU_draft_party_array^23 = -1 } update_eu_dirty_variable = yes } EU_min_call_rate_right_click = { custom_effect_tooltip = tooltip_EU_budget_lower_min_call_rate_effect add_political_power = global.EU_15_per_member_cost_minus set_variable = { global.EU_budget_min_call_rate = { value = global.EU_budget_min_call_rate subtract = 0.05 clamp = { min = 0 max = 100 } } } update_EU_budget_call_rate = yes EU_country_call_rate_cost_calc = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_15_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_15_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = 1 } add_to_variable = { global.EU_draft_party_array^6 = 1 } add_to_variable = { global.EU_draft_party_array^14 = 1 } add_to_variable = { global.EU_draft_party_array^2 = -1 } add_to_variable = { global.EU_draft_party_array^16 = -1 } add_to_variable = { global.EU_draft_party_array^3 = -1 } add_to_variable = { global.EU_draft_party_array^18 = -1 } add_to_variable = { global.EU_draft_party_array^17 = -1 } add_to_variable = { global.EU_draft_party_array^4 = -1 } add_to_variable = { global.EU_draft_party_array^5 = -1 } add_to_variable = { global.EU_draft_party_array^19 = -1 } add_to_variable = { global.EU_draft_party_array^20 = 1 } add_to_variable = { global.EU_draft_party_array^21 = 1 } add_to_variable = { global.EU_draft_party_array^22 = 1 } add_to_variable = { global.EU_draft_party_array^23 = 1 } update_eu_dirty_variable = yes } EU_global_call_rate_click = { custom_effect_tooltip = tooltip_EU_budget_raise_global_call_rate_effect add_political_power = global.EU_10_per_member_cost_minus for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN set_variable = { THIS.EU_budget_call_rate = { value = THIS.EU_budget_call_rate add = 0.05 clamp = { min = global.EU_budget_min_call_rate max = 100 } } } } update_EU_budget_call_rate = yes EU_country_call_rate_cost_calc = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = -1 } add_to_variable = { global.EU_draft_party_array^6 = -1 } add_to_variable = { global.EU_draft_party_array^14 = -1 } add_to_variable = { global.EU_draft_party_array^2 = -1 } add_to_variable = { global.EU_draft_party_array^16 = -1 } add_to_variable = { global.EU_draft_party_array^3 = 1 } add_to_variable = { global.EU_draft_party_array^18 = 1 } add_to_variable = { global.EU_draft_party_array^17 = 1 } add_to_variable = { global.EU_draft_party_array^4 = 1 } add_to_variable = { global.EU_draft_party_array^5 = 1 } add_to_variable = { global.EU_draft_party_array^19 = 1 } add_to_variable = { global.EU_draft_party_array^20 = -1 } add_to_variable = { global.EU_draft_party_array^21 = -1 } add_to_variable = { global.EU_draft_party_array^22 = -1 } add_to_variable = { global.EU_draft_party_array^23 = -1 } update_eu_dirty_variable = yes } EU_global_call_rate_right_click = { custom_effect_tooltip = tooltip_EU_budget_lower_global_call_rate_effect add_political_power = global.EU_10_per_member_cost_minus for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN set_variable = { THIS.EU_budget_call_rate = { value = THIS.EU_budget_call_rate subtract = 0.05 clamp = { min = global.EU_budget_min_call_rate max = 100 } } } } update_EU_budget_call_rate = yes EU_country_call_rate_cost_calc = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = 1 } add_to_variable = { global.EU_draft_party_array^6 = 1 } add_to_variable = { global.EU_draft_party_array^14 = 1 } add_to_variable = { global.EU_draft_party_array^2 = 1 } add_to_variable = { global.EU_draft_party_array^16 = 1 } add_to_variable = { global.EU_draft_party_array^3 = -1 } add_to_variable = { global.EU_draft_party_array^18 = -1 } add_to_variable = { global.EU_draft_party_array^17 = -1 } add_to_variable = { global.EU_draft_party_array^4 = -1 } add_to_variable = { global.EU_draft_party_array^5 = -1 } add_to_variable = { global.EU_draft_party_array^19 = -1 } add_to_variable = { global.EU_draft_party_array^20 = 1 } add_to_variable = { global.EU_draft_party_array^21 = 1 } add_to_variable = { global.EU_draft_party_array^22 = 1 } add_to_variable = { global.EU_draft_party_array^23 = 1 } update_eu_dirty_variable = yes } EU_THIS_call_rate_click = { custom_effect_tooltip = tooltip_EU_budget_raise_THIS_call_rate_effect add_political_power = THIS.EU_mff_country_cost_minus set_temp_variable = { modify_europeanism = 0.03 } EU_europeanism_change = yes set_temp_variable = { modify_europeanism = -0.08 } set_temp_variable = { modify_europeanism_target = THIS } europeanism_change = yes set_variable = { THIS.EU_budget_call_rate = { value = THIS.EU_budget_call_rate add = 0.01 clamp = { min = global.EU_budget_min_call_rate max = 100 } } } update_EU_budget_call_rate = yes add_to_variable = { global.EU_budget_draft_invested_PP = THIS.EU_mff_country_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = THIS.EU_mff_country_cost } EU_country_call_rate_cost_calc = yes add_to_variable = { global.EU_draft_party_array^1 = 1 } add_to_variable = { global.EU_draft_party_array^6 = 1 } add_to_variable = { global.EU_draft_party_array^14 = 1 } add_to_variable = { global.EU_draft_party_array^2 = -1 } add_to_variable = { global.EU_draft_party_array^16 = -1 } add_to_variable = { global.EU_draft_party_array^3 = 1 } add_to_variable = { global.EU_draft_party_array^18 = 1 } add_to_variable = { global.EU_draft_party_array^17 = 1 } add_to_variable = { global.EU_draft_party_array^4 = 1 } add_to_variable = { global.EU_draft_party_array^5 = 1 } add_to_variable = { global.EU_draft_party_array^19 = 1 } update_eu_dirty_variable = yes } EU_THIS_call_rate_right_click = { custom_effect_tooltip = tooltip_EU_budget_lower_THIS_call_rate_effect add_political_power = THIS.EU_mff_country_cost_minus set_temp_variable = { modify_europeanism = -0.03 } EU_europeanism_change = yes set_temp_variable = { modify_europeanism = 0.08 } set_temp_variable = { modify_europeanism_target = THIS } europeanism_change = yes set_variable = { THIS.EU_budget_call_rate = { value = THIS.EU_budget_call_rate subtract = 0.01 clamp = { min = global.EU_budget_min_call_rate max = 100 } } } update_EU_budget_call_rate = yes add_to_variable = { global.EU_budget_draft_invested_PP = THIS.EU_mff_country_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = THIS.EU_mff_country_cost } EU_country_call_rate_cost_calc = yes add_to_variable = { global.EU_draft_party_array^1 = -1 } add_to_variable = { global.EU_draft_party_array^6 = -1 } add_to_variable = { global.EU_draft_party_array^14 = -1 } add_to_variable = { global.EU_draft_party_array^2 = 1 } add_to_variable = { global.EU_draft_party_array^16 = 1 } add_to_variable = { global.EU_draft_party_array^3 = -1 } add_to_variable = { global.EU_draft_party_array^18 = -1 } add_to_variable = { global.EU_draft_party_array^17 = -1 } add_to_variable = { global.EU_draft_party_array^4 = -1 } add_to_variable = { global.EU_draft_party_array^5 = -1 } add_to_variable = { global.EU_draft_party_array^19 = -1 } update_eu_dirty_variable = yes } EU_global_expenses_click = { custom_effect_tooltip = tooltip_EU_budget_raise_global_exp_effect log = "[GetDateText]: [ROOT.GetName]: decision EU_budget_raise_global_exp" add_political_power = global.EU_10_per_member_cost_minus add_to_variable = { global.EU_global_exp_ratio = 0.04 } subtract_from_variable = { global.EU_growth_exp_ratio = 0.02 } subtract_from_variable = { global.EU_natural_exp_ratio = 0.02 } update_EU_expenditure = yes distribute_EU_budget = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = 1 } add_to_variable = { global.EU_draft_party_array^6 = 1 } add_to_variable = { global.EU_draft_party_array^14 = 1 } add_to_variable = { global.EU_draft_party_array^2 = 1 } add_to_variable = { global.EU_draft_party_array^16 = 1 } add_to_variable = { global.EU_draft_party_array^3 = -1 } add_to_variable = { global.EU_draft_party_array^18 = -1 } add_to_variable = { global.EU_draft_party_array^17 = 1 } add_to_variable = { global.EU_draft_party_array^4 = 1 } add_to_variable = { global.EU_draft_party_array^5 = 1 } add_to_variable = { global.EU_draft_party_array^19 = 1 } add_to_variable = { global.EU_draft_party_array^20 = 1 } add_to_variable = { global.EU_draft_party_array^21 = 1 } add_to_variable = { global.EU_draft_party_array^22 = 1 } add_to_variable = { global.EU_draft_party_array^23 = 1 } update_eu_dirty_variable = yes } EU_global_expenses_right_click = { custom_effect_tooltip = tooltip_EU_budget_lower_global_exp_effect log = "[GetDateText]: [ROOT.GetName]: decision EU_budget_lower_global_exp" add_political_power = global.EU_10_per_member_cost_minus subtract_from_variable = { global.EU_global_exp_ratio = 0.04 } add_to_variable = { global.EU_growth_exp_ratio = 0.02 } add_to_variable = { global.EU_natural_exp_ratio = 0.02 } update_EU_expenditure = yes distribute_EU_budget = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = -1 } add_to_variable = { global.EU_draft_party_array^6 = -1 } add_to_variable = { global.EU_draft_party_array^14 = -1 } add_to_variable = { global.EU_draft_party_array^2 = -1 } add_to_variable = { global.EU_draft_party_array^16 = -1 } add_to_variable = { global.EU_draft_party_array^3 = 1 } add_to_variable = { global.EU_draft_party_array^18 = 1 } add_to_variable = { global.EU_draft_party_array^17 = -1 } add_to_variable = { global.EU_draft_party_array^4 = -1 } add_to_variable = { global.EU_draft_party_array^5 = -1 } add_to_variable = { global.EU_draft_party_array^19 = -1 } add_to_variable = { global.EU_draft_party_array^20 = -1 } add_to_variable = { global.EU_draft_party_array^21 = -1 } add_to_variable = { global.EU_draft_party_array^22 = -1 } add_to_variable = { global.EU_draft_party_array^23 = -1 } update_eu_dirty_variable = yes } EU_administration_expenses_click = { custom_effect_tooltip = tooltip_EU_budget_raise_admin_exp_effect log = "[GetDateText]: [ROOT.GetName]: decision EU_budget_raise_admin_exp" add_political_power = global.EU_10_per_member_cost_minus add_to_variable = { global.EU_admin_exp_ratio = 0.04 } subtract_from_variable = { global.EU_growth_exp_ratio = 0.02 } subtract_from_variable = { global.EU_natural_exp_ratio = 0.02 } update_EU_expenditure = yes distribute_EU_budget = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = 1 } add_to_variable = { global.EU_draft_party_array^6 = 1 } add_to_variable = { global.EU_draft_party_array^14 = 1 } add_to_variable = { global.EU_draft_party_array^2 = 1 } add_to_variable = { global.EU_draft_party_array^16 = 1 } add_to_variable = { global.EU_draft_party_array^20 = -1 } add_to_variable = { global.EU_draft_party_array^21 = -1 } add_to_variable = { global.EU_draft_party_array^22 = -1 } add_to_variable = { global.EU_draft_party_array^23 = -1 } update_eu_dirty_variable = yes } EU_administration_expenses_right_click = { custom_effect_tooltip = tooltip_EU_budget_lower_admin_exp_effect log = "[GetDateText]: [ROOT.GetName]: decision EU_budget_lower_admin_exp" add_political_power = global.EU_10_per_member_cost_minus subtract_from_variable = { global.EU_admin_exp_ratio = 0.04 } add_to_variable = { global.EU_growth_exp_ratio = 0.02 } add_to_variable = { global.EU_natural_exp_ratio = 0.02 } update_EU_expenditure = yes distribute_EU_budget = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = -1 } add_to_variable = { global.EU_draft_party_array^6 = -1 } add_to_variable = { global.EU_draft_party_array^14 = -1 } add_to_variable = { global.EU_draft_party_array^2 = -1 } add_to_variable = { global.EU_draft_party_array^16 = -1 } add_to_variable = { global.EU_draft_party_array^20 = 1 } add_to_variable = { global.EU_draft_party_array^21 = 1 } add_to_variable = { global.EU_draft_party_array^22 = 1 } add_to_variable = { global.EU_draft_party_array^23 = 1 } update_eu_dirty_variable = yes } EU_growth_natural_subsidies_click = { custom_effect_tooltip = tooltip_EU_budget_growth_up_natural_down_effect log = "[GetDateText]: [ROOT.GetName]: decision EU_budget_growth_up_natural_down" add_political_power = global.EU_10_per_member_cost_minus add_to_variable = { global.EU_growth_exp_ratio = 0.05 } subtract_from_variable = { global.EU_natural_exp_ratio = 0.05 } update_EU_expenditure = yes distribute_EU_budget = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = -1 } add_to_variable = { global.EU_draft_party_array^6 = -1 } add_to_variable = { global.EU_draft_party_array^14 = -1 } add_to_variable = { global.EU_draft_party_array^2 = 1 } add_to_variable = { global.EU_draft_party_array^16 = 1 } add_to_variable = { global.EU_draft_party_array^3 = 1 } add_to_variable = { global.EU_draft_party_array^18 = 1 } add_to_variable = { global.EU_draft_party_array^17 = -1 } add_to_variable = { global.EU_draft_party_array^4 = 1 } add_to_variable = { global.EU_draft_party_array^5 = 1 } add_to_variable = { global.EU_draft_party_array^19 = 1 } update_eu_dirty_variable = yes } EU_growth_natural_subsidies_right_click = { custom_effect_tooltip = tooltip_EU_budget_growth_down_natural_up_effect log = "[GetDateText]: [ROOT.GetName]: decision EU_budget_growth_down_natural_up" add_political_power = global.EU_10_per_member_cost_minus subtract_from_variable = { global.EU_growth_exp_ratio = 0.05 } add_to_variable = { global.EU_natural_exp_ratio = 0.05 } update_EU_expenditure = yes distribute_EU_budget = yes add_to_variable = { global.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { THIS.EU_budget_draft_invested_PP = global.EU_10_per_member_cost } add_to_variable = { global.EU_draft_party_array^1 = 1 } add_to_variable = { global.EU_draft_party_array^6 = 1 } add_to_variable = { global.EU_draft_party_array^14 = 1 } add_to_variable = { global.EU_draft_party_array^2 = -1 } add_to_variable = { global.EU_draft_party_array^16 = -1 } add_to_variable = { global.EU_draft_party_array^3 = -1 } add_to_variable = { global.EU_draft_party_array^18 = -1 } add_to_variable = { global.EU_draft_party_array^17 = 1 } add_to_variable = { global.EU_draft_party_array^4 = -1 } add_to_variable = { global.EU_draft_party_array^5 = -1 } add_to_variable = { global.EU_draft_party_array^19 = -1 } update_eu_dirty_variable = yes } EU_run_omt_program_click = { custom_effect_tooltip = tooltip_ECB_Start_OMT_effect hidden_effect = { set_variable = { var = global.OMT_size_limit value = 400 } set_variable = { var = global.OMT_total_value value = 0 } } set_global_flag = omt_started update_eu_dirty_variable = yes } EU_adjust_omt_program_click = { if = { limit = { has_global_flag = active_OMT } custom_effect_tooltip = EU_if_has_active_omt remove_OMT = yes } hidden_effect = { add_to_variable = { var = global.OMT_size_limit value = 200 } for_each_scope_loop = { ### contra OMT array = global.EU_member if = { limit = { has_idea = euro } if = { limit = { check_variable = { THIS.interest_rate < 4.0 } } set_temp_variable = { modify_europeanism = -0.05 } set_temp_variable = { modify_europeanism_target = THIS } europeanism_change = yes news_event = EU_news.46 } else = { set_temp_variable = { modify_europeanism = 0.05 } set_temp_variable = { modify_europeanism_target = THIS } europeanism_change = yes news_event = EU_news.46 } } } } if = { limit = { has_global_flag = active_OMT } custom_effect_tooltip = EU_if_has_active_omt execute_OMT = yes } update_eu_dirty_variable = yes } EU_adjust_omt_program_right_click = { if = { limit = { has_global_flag = active_OMT } custom_effect_tooltip = EU_if_has_active_omt remove_OMT = yes } hidden_effect = { set_variable = { global.OMT_size_limit = { value = global.OMT_size_limit subtract = 200 clamp = { min = 0 max = global.OMT_size_limit } } } for_each_scope_loop = { ### contra OMT array = global.EU_member if = { limit = { has_idea = euro } if = { limit = { check_variable = { THIS.interest_rate < 4.0 } } set_temp_variable = { modify_europeanism = 0.05 } set_temp_variable = { modify_europeanism_target = THIS } europeanism_change = yes news_event = EU_news.45 } else = { set_temp_variable = { modify_europeanism = -0.05 } set_temp_variable = { modify_europeanism_target = THIS } europeanism_change = yes news_event = EU_news.45 } } } } if = { limit = { has_global_flag = active_OMT } custom_effect_tooltip = EU_if_has_active_omt execute_OMT = yes } update_eu_dirty_variable = yes } EU_run_omt_program_right_click = { set_global_flag = active_OMT execute_OMT = yes for_each_scope_loop = { array = global.EU_member tooltip = TT_ALL_EU_MEMBER_NATIONS_GAIN news_event = EU_news.32 } update_eu_dirty_variable = yes } } ai_weights = { # Main Screen/Offices Section EU_Article_50_click = { ai_will_do = { base = 1 modifier = { check_variable = { THIS.europeanism < 0.70 } add = 25 } modifier = { check_variable = { THIS.europeanism < 0.50 } add = 25 } modifier = { add = 10 gov_is_EUexiteer = yes } modifier = { add = 25 EU_external_sov_chi_influence_50 = yes } modifier = { add = -25 has_government = democratic } modifier = { add = -10 has_idea = NATO_member } modifier = { add = -10 democratic > 0.45 } modifier = { factor = 2 has_government = nationalist } modifier = { factor = 5 check_variable = { THIS.breach_of_EU_value > 5 } } # Killswitch modifier = { factor = 0 OR = { has_country_flag = cant_invoke_article_50 AND = { check_variable = { THIS.europeanism > 0.50 } has_elections = yes } NOT = { EU_external_chi_influence_50 = yes } NOT = { EU_external_sov_influence_50 = yes } SOV = { has_idea = EU_member } } } } } # Office Section # 14 Day Delay to allow a player some leeway eu_president_council_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EU_council_president_ai } } } foreign_affairs_security_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EU_foreign_minister_ai } } } eu_sec_general_euro_army_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EUU_euroarmy_sc_ai } } } eu_sec_general_euro_navy_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EUU_euronavy_sc } } } eu_parliament_president_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EU_parliament_president_ai } } } eu_president_commission_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EU_president_commission_ai } } } eu_central_bank_president_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = ECB_president_ai } } } eu_minister_economy_finance_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EU_finance_minister_ai } } } eu_ambassador_to_un_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EUU_ambassador_unsc_ai } } } eu_frontex_director_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 check_variable = { THIS.europeanism < 0.30 } } modifier = { factor = 0 has_global_flag = EU_frontex_ExDir_ai } } } eu_pres_federation_back_click = { ai_will_do = { base = 40 modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.05 } } modifier = { add = 30 check_variable = { THIS.EU_pop_ratio > 0.1 } } modifier = { factor = 0 has_global_flag = EU_president_ai } } } retire_office_click = { ai_will_do = { base = 1 modifier = { add = 5 check_variable = { THIS.europeanism < 0.70 } } modifier = { factor = 0 check_variable = { THIS.europeanism > 0.70 } } modifier = { factor = 0 has_global_flag = EU_ongoing_budget_draft } modifier = { factor = 0 has_global_flag = EU_ongoing_mff_draft } } } # AI Influence Checks PG_party_0_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_1_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_2_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_3_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_4_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_5_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_6_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_7_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_8_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_9_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_10_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_11_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_12_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_13_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_14_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_15_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_16_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_17_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_18_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_19_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_20_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_21_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_22_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } PG_party_23_influence_click = { ai_will_do = { base = 1 modifier = { factor = 0 check_variable = { global.active_MEP_Support > global.MEP_Majority } } } } approve_IPA_button_click = { ai_will_do = { base = 250 modifier = { factor = 1.5 any_of = { array = global.EU_potential value = v index = i var:global.EU_potential^i = { has_country_flag = EU_candidate NOT = { has_idea = EU_member } } } } modifier = { factor = 0 all_of = { array = global.EU_potential value = v index = i var:global.EU_potential^i = { has_country_flag = EU_candidate has_idea = EU_member } } } } } euroscepticism_country_button_click = { ai_will_do = { base = 10 modifier = { add = -40 NOT = { gov_is_eurosceptical = yes } } modifier = { add = 1 gov_is_eurosceptical = yes } modifier = { add = -40 stop_euroscepticism_campaign = yes } modifier = { factor = 0 has_idea = EU_member OR = { AND = { gov_is_eurosceptical = yes check_variable = { europeanism < 0.05 } } has_political_power < 300 check_variable = { interest_rate > 9 } } } } } euroscepticism_euwide_button_click = { ai_will_do = { base = 10 modifier = { add = -40 NOT = { gov_is_eurosceptical = yes } } modifier = { add = 1 gov_is_eurosceptical = yes } modifier = { add = -40 stop_euroscepticism_campaign = yes } modifier = { add = 15 original_tag = SOV date > 2004.1.1 has_political_power > 450 NOT = { has_government = democratic } } modifier = { factor = 0 has_idea = EU_member OR = { AND = { gov_is_eurosceptical = yes check_variable = { europeanism < 0.05 } } has_political_power < 300 check_variable = { interest_rate > 9 } } } } } proeuro_country_button_click = { ai_will_do = { base = 5 modifier = { add = 1 NOT = { gov_is_eurosceptical = yes } } modifier = { add = 1 NOT = { gov_is_eurosceptical = yes } slowdown_european_integration = yes } modifier = { add = 20 has_country_flag = EU_candidate NOT = { has_idea = EU_member } } modifier = { add = -40 gov_is_eurosceptical = yes } modifier = { add = -40 stop_pro_european_campaign = yes } modifier = { factor = 0 OR = { has_country_flag = EU_candidate has_idea = EU_member } OR = { AND = { NOT = { gov_is_eurosceptical = yes } check_variable = { europeanism > 0.89 } } has_political_power < 50 check_variable = { interest_rate > 9 } } } } } proeuro_euwide_button_click = { ai_will_do = { base = 5 modifier = { add = 1 NOT = { gov_is_eurosceptical = yes } } modifier = { add = 1 NOT = { gov_is_eurosceptical = yes } slowdown_european_integration = yes } modifier = { add = -40 gov_is_eurosceptical = yes } modifier = { add = -40 stop_pro_european_campaign = yes } modifier = { factor = 0 OR = { has_country_flag = EU_candidate has_idea = EU_member } OR = { AND = { NOT = { gov_is_eurosceptical = yes } check_variable = { europeanism > 0.89 } } has_political_power < 50 check_variable = { interest_rate > 9 } } } } } support_council_vote_button_click = { ai_will_do = { base = 0 } } reject_council_vote_button_click = { ai_will_do = { base = 0 } } # European budget Buttons EU_min_call_rate_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.var_europeanism > 0.80 } check_variable = { global.EU_average_eco_lvl > 5 } check_variable = { global.EU_budget_min_call_rate < 2.5 } } modifier = { add = 1 check_variable = { global.var_europeanism > 0.80 } check_variable = { global.EU_average_eco_lvl > 4 } check_variable = { global.EU_budget_min_call_rate < 2.0 } } modifier = { add = 1 check_variable = { global.var_europeanism > 0.80 } check_variable = { global.EU_average_eco_lvl > 3 } check_variable = { global.EU_budget_min_call_rate < 1.5 } } modifier = { add = 1 check_variable = { global.var_europeanism > 0.80 } check_variable = { global.EU_average_eco_lvl > 2 } check_variable = { global.EU_budget_min_call_rate < 1.0 } } modifier = { add = 1 check_variable = { global.var_europeanism > 0.80 } check_variable = { global.EU_average_eco_lvl > 1 } check_variable = { global.EU_budget_min_call_rate > 0.5 } } } } EU_min_call_rate_right_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.var_europeanism < 0.80 } check_variable = { global.EU_average_eco_lvl > 5 } check_variable = { global.EU_budget_min_call_rate > 2.5 } } modifier = { add = 1 check_variable = { global.var_europeanism < 0.80 } check_variable = { global.EU_average_eco_lvl > 4 } check_variable = { global.EU_budget_min_call_rate > 2.0 } } modifier = { add = 1 check_variable = { global.var_europeanism < 0.80 } check_variable = { global.EU_average_eco_lvl > 3 } check_variable = { global.EU_budget_min_call_rate > 1.5 } } modifier = { add = 1 check_variable = { global.var_europeanism < 0.80 } check_variable = { global.EU_average_eco_lvl > 2 } check_variable = { global.EU_budget_min_call_rate > 1.0 } } modifier = { add = 1 check_variable = { global.var_europeanism < 0.80 } check_variable = { global.EU_average_eco_lvl > 1 } check_variable = { global.EU_budget_min_call_rate > 0.5 } } modifier = { add = 1 check_variable = { global.var_europeanism < 0.80 } check_variable = { global.EU_average_eco_lvl < 1 } check_variable = { global.EU_budget_min_call_rate > 0.0 } } } } EU_global_call_rate_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.var_europeanism < 0.80 } check_variable = { global.EU_average_eco_lvl < 3 } } } } EU_global_call_rate_right_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.var_europeanism > 0.80 } check_variable = { global.EU_average_eco_lvl > 3 } } } } EU_THIS_call_rate_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.var_europeanism < 0.60 } check_variable = { global.EU_average_gdpc_lvl < EU_average_gdpc_lvl } check_variable = { global.EU_average_eco_lvl < EU_average_eco_lvl } } } } EU_THIS_call_rate_right_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.var_europeanism > 0.60 } check_variable = { global.EU_average_gdpc_lvl > EU_average_gdpc_lvl } check_variable = { global.EU_average_eco_lvl > EU_average_eco_lvl } } } } EU_global_expenses_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.EU_global_exp_ratio < 0.12 } OR = { check_variable = { ruling_party = 2 } ### liberalism check_variable = { ruling_party = 16 } ### Neutral_Libertarian } } modifier = { add = 4 check_variable = { global.EU_global_exp_ratio < 0.18 } EU_is_leader_of_foreign_policy = yes } modifier = { factor = 0 check_variable = { THIS.EU_budget_draft_invested_PP > 99 } } } } EU_global_expenses_right_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.EU_global_exp_ratio > 0.09 } OR = { check_variable = { ruling_party = 20 } ### Nat_Populism check_variable = { ruling_party = 21 } ### Nat_Fascism check_variable = { ruling_party = 22 } ### Nat_Autocracy check_variable = { ruling_party = 23 } ### Monarchist } } modifier = { factor = 0 check_variable = { THIS.EU_budget_draft_invested_PP > 99 } } } } EU_administration_expenses_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.EU_admin_exp_ratio < 0.18 } OR = { check_variable = { ruling_party = 20 } ### Nat_Populism check_variable = { ruling_party = 21 } ### Nat_Fascism check_variable = { ruling_party = 22 } ### Nat_Autocracy check_variable = { ruling_party = 23 } ### Monarchist } } modifier = { factor = 0 check_variable = { THIS.EU_budget_draft_invested_PP > 99 } } } } EU_administration_expenses_right_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.EU_admin_exp_ratio > 0.09 } OR = { check_variable = { ruling_party = 2 } ### liberalism check_variable = { ruling_party = 16 } ### Neutral_Libertarian } } modifier = { factor = 0 check_variable = { THIS.EU_budget_draft_invested_PP > 99 } } } } EU_growth_natural_subsidies_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.EU_growth_exp_ratio < 0.60 } OR = { check_variable = { ruling_party = 3 } ### socialism check_variable = { ruling_party = 18 } ### neutral_Social check_variable = { ruling_party = 17 } ### Neutral_green } } modifier = { add = 1 check_variable = { global.EU_growth_exp_ratio < 0.70 } OR = { check_variable = { ruling_party = 2 } ### liberalism check_variable = { ruling_party = 16 } ### Neutral_Libertarian } } modifier = { add = 1 check_variable = { global.EU_growth_exp_ratio < 0.60 } OR = { check_variable = { ruling_party = 4 } ### Communist-State check_variable = { ruling_party = 5 } ### anarchist_communism check_variable = { ruling_party = 19 } ### Neutral_Communism } } modifier = { add = 1 check_variable = { global.EU_average_eco_lvl > EU_average_eco_lvl } } modifier = { factor = 0 check_variable = { global.EU_average_eco_lvl < EU_average_eco_lvl } } modifier = { factor = 0 check_variable = { THIS.EU_budget_draft_invested_PP > 99 } } } } EU_growth_natural_subsidies_right_click = { ai_will_do = { base = 0 modifier = { add = 1 check_variable = { global.EU_natural_exp_ratio < 0.60 } OR = { check_variable = { ruling_party = 1 } ### conservatism check_variable = { ruling_party = 6 } ### Conservative check_variable = { ruling_party = 14 } ### Neutral_conservatism } } modifier = { add = 1 check_variable = { global.EU_natural_exp_ratio < 0.60 } check_variable = { ruling_party = 17 } ### Neutral_green } modifier = { add = 1 check_variable = { global.EU_average_gdpc_lvl > EU_average_gdpc_lvl } } modifier = { factor = 0 check_variable = { THIS.EU_budget_draft_invested_PP > 99 } } } } EU_run_omt_program_click = { ai_will_do = { base = 1 modifier = { add = 10 any_of_scopes = { array = global.EU_member has_idea = EU_member has_idea = euro check_variable = { THIS.interest_rate > 4.0 } } } ### Euroscepticism modifier = { add = -40 any_of_scopes = { array = global.EU_member check_variable = { var = THIS.europeanism value = 0.4 compare = less_than_or_equals } } } } } EU_adjust_omt_program_click = { ai_will_do = { base = 0 modifier = { add = 40 check_variable = { global.OMT_total_value > 0 } any_of_scopes = { array = global.EU_member has_idea = EU_member has_idea = euro check_variable = { THIS.interest_rate > 4.0 } } } ### Euroscepticism modifier = { add = -80 any_of_scopes = { array = global.EU_member check_variable = { var = THIS.europeanism value = 0.6 compare = less_than_or_equals } } } modifier = { add = -80 all_of_scopes = { array = global.EU_member if = { limit = { has_idea = euro } check_variable = { THIS.interest_rate < 4.0 } } } } modifier = { add = -80 check_variable = { global.OMT_size_limit > 2000 } } } } EU_adjust_omt_program_right_click = { ai_will_do = { base = 0 modifier = { add = -80 check_variable = { global.OMT_total_value > 0 } any_of_scopes = { array = global.EU_member has_idea = euro check_variable = { THIS.interest_rate > 4.0 } } } ### Euroscepticism modifier = { add = 40 any_of_scopes = { array = global.EU_member check_variable = { var = THIS.europeanism value = 0.5 compare = less_than_or_equals } } } } } EU_run_omt_program_right_click = { ai_will_do = { base = 0 modifier = { add = 40 any_of_scopes = { array = global.EU_member has_idea = euro check_variable = { THIS.interest_rate > 4.0 } } } } } } } european_info_dynamic_lists = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "state_of_the_european_union_container" dirty = global.EU_dirty_update_var # The AI does not need to see this visible = { is_ai = no NOT = { has_global_flag = GAME_RULE_eu_disabled } has_country_flag = show_euro_info has_country_flag = new_EU_open } # AI Triggering Section # ai_enabled = Allowed for the AI # ai_check = Ensures they are in the EU before opening the GUI ai_enabled = { always = no } ai_check = { always = no } dynamic_lists = { state_of_the_european_union_list = { array = global.EU_member entry_container = "state_of_the_eu_list" change_scope = yes } } } european_omt_budget_dynamic_lists = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "omt_bank_account_container" dirty = global.EU_dirty_update_var # The AI does not need to see this visible = { is_ai = no NOT = { has_global_flag = GAME_RULE_eu_disabled } has_country_flag = show_eu_fiscal has_country_flag = new_EU_open } # AI Triggering Section # ai_enabled = Allowed for the AI # ai_check = Ensures they are in the EU before opening the GUI ai_enabled = { always = no } ai_check = { always = no } dynamic_lists = { # OMT List -- Euro Budget ecb_omit_list = { array = global.EU_member entry_container = "ecb_omt_eu_list" change_scope = yes } } } european_council_voting_dynamic_lists = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "eu_council_voting_screen_container" dirty = global.EU_dirty_update_var visible = { NOT = { has_global_flag = GAME_RULE_eu_disabled } EU_european_union_council_voting_trigger = yes } # AI Triggering Section # ai_enabled = Allowed for the AI # ai_check = Ensures they are in the EU before opening the GUI ai_enabled = { NOT = { has_global_flag = GAME_RULE_eu_disabled } is_in_array = { global.EU_potential = THIS.id } } ai_check = { has_idea = EU_member # Check for the AI to push a vote to council NOT = { has_global_flag = delay_next_council_vote } OR = { AND = { NOT = { has_idea = EU_commission_president } NOT = { has_idea = EU_council_president } NOT = { has_idea = EU_parliament_president } NOT = { EU_influence_on_all_other_members_3_percent = yes } has_political_power > 500 } has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president EU_influence_on_all_other_members_3_percent = yes } } ai_test_interval = 96 # 4 Days ai_max_weight_taken_per_test = 1 triggers = { eu_council_available_reforms_button_click_enabled = { if = { limit = { has_global_flag = delay_next_council_vote } custom_trigger_tooltip = { tooltip = con_vote_wait NOT = { has_global_flag = delay_next_council_vote } NOT = { has_country_flag = delay_player_next_council_vote } } } else = { custom_trigger_tooltip = { tooltip = con_vote_wait_no_flag NOT = { has_global_flag = delay_next_council_vote } NOT = { has_country_flag = delay_player_next_council_vote } } } ROOT = { OR = { has_political_power > 500 has_idea = EU_commission_president has_idea = EU_council_president has_idea = EU_parliament_president EU_influence_on_all_other_members_3_percent = yes } } custom_trigger_tooltip = { tooltip = EU_commission_president_taken OR = { AND = { NOT = { check_variable = { global.eu_commission = EUU.id } } var:global.eu_commission = { has_idea = EU_commission_president } } check_variable = { global.EU_member^num < 2 } } } custom_trigger_tooltip = { tooltip = no_council_vote_tt check_variable = { global.current_active_vote_disp = 0 } } custom_trigger_tooltip = { tooltip = EU_no_external_chi_influence_15_tt EU_external_chi_influence_15 = no } custom_trigger_tooltip = { tooltip = EU_no_external_sov_influence_15_tt OR = { EU_external_sov_influence_15 = no SOV = { has_idea = EU_member } } } custom_trigger_tooltip = { tooltip = no_high_sceptics_tt NOT = { check_variable = { var = THIS.europeanism value = 0.6 compare = less_than_or_equals } } } if = { limit = { check_variable = { v = 111 } } custom_trigger_tooltip = { tooltip = not_poteuf_tt NOT = { is_in_array = { global.EU_passed_votes = 112 } } NOT = { has_global_flag = european_federation } } } else_if = { limit = { check_variable = { v = 112 } } custom_trigger_tooltip = { tooltip = not_usoe_tt NOT = { is_in_array = { global.EU_passed_votes = 111 } } } } } eu_council_voting_members_list_button_click_enabled = { custom_trigger_tooltip = { tooltip = no_ongoing_vote NOT = { check_variable = { global.current_active_vote_disp = 0 } } } custom_trigger_tooltip = { tooltip = country_not_supporting OR = { AND = { is_in_array = { array = global.EU_active_vote_supporters value = ROOT } is_in_array = { array = global.EU_active_vote_rejecters value = THIS } } AND = { is_in_array = { array = global.EU_active_vote_supporters value = THIS } is_in_array = { array = global.EU_active_vote_rejecters value = ROOT } } } } custom_trigger_tooltip = { tooltip = EU_no_external_chi_influence_15_tt EU_external_chi_influence_15 = no } custom_trigger_tooltip = { tooltip = EU_no_external_sov_influence_15_tt OR = { EU_external_sov_influence_15 = no SOV = { has_idea = EU_member } } } is_ai = yes ROOT = { set_temp_variable = { base_pp_cost = { value = 200 multiply = { value = PREV.EU_pop_ratio multiply = 25 } clamp = { min = 1 max = 750 } } } has_political_power > base_pp_cost } NOT = { has_idea = EUU_voting_rights_suspended } custom_trigger_tooltip = { tooltip = cur_inf_nat NOT = { has_country_flag = current_vote_influenced } } #TODO: Add a favor requirement to sway a nation, outside of the pp requirements #Swaying a large block of nations, especially those who don't support the measure, should not be cheap or easy #Scale the demand based on the PP requirement } } effects = { eu_council_available_reforms_button_click = { log = "[GetDateText]: [ROOT.GetTag]: Enacted an EU Wide Vote with the id of [?v]." set_variable = { global.current_active_vote_disp = v } set_variable = { global.EUXXX_council_agenda = global.current_active_vote_disp } clear_array = global.EU_active_vote_supporters clear_array = global.EU_active_vote_rejecters if = { limit = { NOT = { is_ai = yes } } set_global_flag = EUU_player_proposed_law } ROOT = { if = { limit = { NOT = { has_idea = EU_commission_president } NOT = { has_idea = EU_council_president } NOT = { has_idea = EU_parliament_president } NOT = { EU_influence_on_all_other_members_3_percent = yes } } add_political_power = -500 } } hidden_effect = { set_temp_variable = { focus_index = global.EUXXX_council_agenda } for_each_scope_loop = { array = global.EU_member if = { limit = { is_ai = no } country_event = EUvote.2 } activate_mission = EU_voting_mission_focus_EUXXX_QMV_result } for_each_scope_loop = { array = global.EU_member if = { limit = { NOT = { has_idea = EUU_voting_rights_suspended } } EU_update_AI_focus_voting_modifier = yes } } } EU_show_display_effects_for_law = yes clr_global_flag = EUU_player_proposed_law update_eu_dirty_variable = yes } eu_council_voting_members_list_button_click = { if = { limit = { is_in_array = { array = global.EU_active_vote_supporters value = ROOT } } add_to_array = { global.EU_active_vote_supporters = THIS } if = { limit = { is_in_array = { array = global.EU_active_vote_rejecters value = THIS } } remove_from_array = { array = global.EU_active_vote_rejecters value = THIS } } set_temp_variable = { add_ratio_value = THIS.EU_pop_ratio } add_to_variable = { global.EU_pop_ratio_yes = add_ratio_value } subtract_from_variable = { global.EU_pop_ratio_no = add_ratio_value } } else = { add_to_array = { global.EU_active_vote_rejecters = THIS } if = { limit = { is_in_array = { array = global.EU_active_vote_supporters value = THIS } } remove_from_array = { array = global.EU_active_vote_supporters value = THIS } } set_temp_variable = { add_ratio_value = THIS.EU_pop_ratio } add_to_variable = { global.EU_pop_ratio_no = add_ratio_value } subtract_from_variable = { global.EU_pop_ratio_yes = add_ratio_value } } ROOT = { set_temp_variable = { base_pp_cost = { value = 300 multiply = { value = PREV.EU_pop_ratio multiply = 25 } multiply = -1 clamp = { min = -1000 max = 2500 } } } add_political_power = base_pp_cost } set_country_flag = current_vote_influenced update_eu_dirty_variable = yes } } dynamic_lists = { # Lits for Screens eu_council_voting_members_list = { array = global.EU_member value = eu_council_v_member entry_container = "eu_council_voting_members_list_container" change_scope = yes } list_of_available_council_votes = { array = global.EU_council_votes entry_container = "eu_council_available_reforms_list" ai_weights = { eu_council_available_reforms_button_click = { ai_will_do = { base = 1 modifier = { add = -100 #multiple values can be checked for adding mods check_variable = { THIS.europeanism < 0.50 } } modifier = { add = -50 check_variable = { THIS.europeanism < 0.75 } } modifier = { add = -10 check_variable = { THIS.europeanism < 0.85 } } # Historical Expansion AI Improvement modifier = { add = 250 is_historical_focus_on = yes date > 2004.1.1 check_variable = { v = 601 } } modifier = { add = 250 is_historical_focus_on = yes date > 2007.1.1 check_variable = { v = 602 } } modifier = { add = 250 is_historical_focus_on = yes date > 2013.1.1 check_variable = { v = 603 } } modifier = { factor = 3 has_global_flag = USA_great_financial_crisis OR = { check_variable = { v = 203 } check_variable = { v = 204 } check_variable = { v = 205 } } } # Game Rule for the European Union AI modifier = { factor = 0 OR = { check_variable = { v = 110 } check_variable = { v = 111 } check_variable = { v = 112 } } has_game_rule = { rule = rule_enable_ai_european_union_end_game_paths option = no } } # Do not immediately retry the same vote twice in a row modifier = { factor = 0 NOT = { check_variable = { global.EUU_recently_failed_vote = -1 } } check_variable = { global.EUU_recently_failed_vote = v } } modifier = { factor = 0 has_global_flag = delay_next_council_vote_ai } } } } } list_of_passed_votes = { array = global.EU_passed_votes value = v entry_container = "eu_council_passed_laws_container" } list_of_supporting_members = { array = global.EU_active_vote_supporters value = eu_council_v_support entry_container = "eu_council_vote_supporting_container" change_scope = yes } list_of_rejecting_members = { array = global.EU_active_vote_rejecters value = eu_council_v_reject entry_container = "eu_council_vote_rejecting_container" change_scope = yes } } } european_parliament_dynamic_lists = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "eu_parliament_voting_container" dirty = global.EU_dirty_update_var visible = { NOT = { has_global_flag = GAME_RULE_eu_disabled } EU_european_union_euro_parliament_trigger = yes } # AI Triggering Section # ai_enabled = Allowed for the AI # ai_check = Ensures they are in the EU before opening the GUI ai_enabled = { NOT = { has_global_flag = GAME_RULE_eu_disabled } is_in_array = { global.EU_potential = THIS.id } } ai_check = { has_idea = EU_member check_variable = { global.current_active_agenda_disp = 0 } NOT = { has_country_flag = delay_next_parliament_vote } } ai_test_interval = 168 # 7 Days ai_max_weight_taken_per_test = 1 triggers = { # Shit eu_parliament_available_reforms_button_click_enabled = { if = { limit = { has_country_flag = delay_next_parliament_vote } custom_trigger_tooltip = { tooltip = par_vote_wait NOT = { has_country_flag = delay_next_parliament_vote } } } else = { custom_trigger_tooltip = { tooltip = par_vote_wait_no_flag NOT = { has_country_flag = delay_next_parliament_vote } } } custom_trigger_tooltip = { tooltip = EU_commission_president_taken OR = { AND = { NOT = { check_variable = { global.eu_commission = EUU.id } } var:global.eu_commission = { has_idea = EU_commission_president } } check_variable = { global.EU_member^num < 2 } } } custom_trigger_tooltip = { tooltip = no_active_agenda check_variable = { global.current_active_agenda_disp = 0 } } custom_trigger_tooltip = { tooltip = no_active_budget_mff_draft NOT = { has_global_flag = EU_budget_EP_block } NOT = { has_global_flag = EU_mff_EP_block } } custom_trigger_tooltip = { tooltip = EU_no_external_chi_influence_15_tt EU_external_chi_influence_15 = no } custom_trigger_tooltip = { tooltip = EU_no_external_sov_influence_15_tt OR = { EU_external_sov_influence_15 = no SOV = { has_idea = EU_member } } } if = { limit = { check_variable = { v = 101 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 102 } } custom_trigger_tooltip = { tooltip = euro_convention_tt is_in_array = { global.EU_passed_votes = 101 } } } else_if = { limit = { check_variable = { v = 103 } } custom_trigger_tooltip = { tooltip = euro_constitution_tt is_in_array = { global.EU_passed_votes = 102 } } } else_if = { limit = { check_variable = { v = 104 } } custom_trigger_tooltip = { tooltip = euro_con_pass_tt is_in_array = { global.EU_passed_votes = 103 } } } else_if = { limit = { check_variable = { v = 105 } } custom_trigger_tooltip = { tooltip = treaty_of_lisbon_tt is_in_array = { global.EU_passed_votes = 104 } } } else_if = { limit = { check_variable = { v = 201 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 202 } } custom_trigger_tooltip = { tooltip = ecb_intervention_tt is_in_array = { global.EU_passed_votes = 201 } } } else_if = { limit = { check_variable = { v = 203 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 204 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 205 } } custom_trigger_tooltip = { tooltip = euro_fin_stab_facility_tt is_in_array = { global.EU_passed_votes = 204 } } custom_trigger_tooltip = { tooltip = eurobonds_tt is_in_array = { global.EU_passed_votes = 203 } } } else_if = { limit = { check_variable = { v = 206 } } custom_trigger_tooltip = { tooltip = treaty_of_lisbon_tt is_in_array = { global.EU_passed_votes = 104 } } custom_trigger_tooltip = { tooltip = euro_bank_union_tt is_in_array = { global.EU_passed_votes = 202 } } } else_if = { limit = { check_variable = { v = 207 } } custom_trigger_tooltip = { tooltip = euro_stability_mech_tt is_in_array = { global.EU_passed_votes = 205 } } } else_if = { limit = { check_variable = { v = 208 } } custom_trigger_tooltip = { tooltip = euro_eco_govment_tt is_in_array = { global.EU_passed_votes = 207 } } custom_trigger_tooltip = { tooltip = fiscal_union_tt is_in_array = { global.EU_passed_votes = 206 } } } else_if = { limit = { check_variable = { v = 301 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 302 } } custom_trigger_tooltip = { tooltip = eda_pass_tt is_in_array = { global.EU_passed_votes = 301 } } } else_if = { limit = { check_variable = { v = 303 } } custom_trigger_tooltip = { tooltip = perm_struc_cooperation_tt is_in_array = { global.EU_passed_votes = 302 } } } else_if = { limit = { check_variable = { v = 304 } } custom_trigger_tooltip = { tooltip = euro_def_fund_tt is_in_array = { global.EU_passed_votes = 303 } } custom_trigger_tooltip = { tooltip = euro_external_action_tt is_in_array = { global.EU_passed_votes = 105 } } } else_if = { limit = { check_variable = { v = 305 } } custom_trigger_tooltip = { tooltip = euro_security_council_tt is_in_array = { global.EU_passed_votes = 304 } } } else_if = { limit = { check_variable = { v = 306 } } custom_trigger_tooltip = { tooltip = euro_security_council_tt is_in_array = { global.EU_passed_votes = 304 } } } else_if = { limit = { check_variable = { v = 307 } } custom_trigger_tooltip = { tooltip = euro_army_tt is_in_array = { global.EU_passed_votes = 305 } } custom_trigger_tooltip = { tooltip = euro_navy_tt is_in_array = { global.EU_passed_votes = 306 } } custom_trigger_tooltip = { tooltip = euro_nuclear_power_tt is_in_array = { global.EU_passed_votes = 308 } } } else_if = { limit = { check_variable = { v = 308 } } custom_trigger_tooltip = { tooltip = euro_army_tt is_in_array = { global.EU_passed_votes = 305 } } custom_trigger_tooltip = { tooltip = euro_navy_tt is_in_array = { global.EU_passed_votes = 306 } } } else_if = { limit = { check_variable = { v = 401 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 402 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 403 } } has_political_power > 200 } else_if = { limit = { check_variable = { v = 404 } } custom_trigger_tooltip = { tooltip = dublin_II_tt is_in_array = { global.EU_passed_votes = 403 } } } else_if = { limit = { check_variable = { v = 405 } } custom_trigger_tooltip = { tooltip = dublin_II_tt is_in_array = { global.EU_passed_votes = 403 } } NOT = { TUR = { has_idea = EU_member } } has_global_flag = EUU_migrant_crisis_triggered } else_if = { limit = { check_variable = { v = 406 } } custom_trigger_tooltip = { tooltip = euro_border_coast_guard_tt is_in_array = { global.EU_passed_votes = 408 } } custom_trigger_tooltip = { tooltip = reloc_resettle_asylum_tt is_in_array = { global.EU_passed_votes = 404 } } } else_if = { limit = { check_variable = { v = 407 } } custom_trigger_tooltip = { tooltip = dublin_II_tt is_in_array = { global.EU_passed_votes = 403 } } custom_trigger_tooltip = { tooltip = eda_pass_tt is_in_array = { global.EU_passed_votes = 301 } } } else_if = { limit = { check_variable = { v = 408 } } custom_trigger_tooltip = { tooltip = frontex_pass_tt is_in_array = { global.EU_passed_votes = 407 } } } else_if = { limit = { check_variable = { v = 601 } } has_political_power > 300 date > 2002.1.1 } else_if = { limit = { check_variable = { v = 602 } } has_political_power > 300 is_in_array = { global.EU_passed_votes = 601 } custom_trigger_tooltip = { tooltip = allow_2007_enlargement_tt is_in_array = { global.EU_passed_votes = 601 } } custom_trigger_tooltip = { tooltip = no_ongoing_expansion_tt check_variable = { global.EU_expansion_check = 0 } } } else_if = { limit = { check_variable = { v = 603 } } has_political_power > 300 custom_trigger_tooltip = { tooltip = allow_2013_enlargement_tt is_in_array = { global.EU_passed_votes = 602 } } custom_trigger_tooltip = { tooltip = no_ongoing_expansion_tt check_variable = { global.EU_expansion_check = 0 } } } else_if = { limit = { OR = { check_variable = { v = 605 } check_variable = { v = 606 } check_variable = { v = 607 } check_variable = { v = 608 } check_variable = { v = 609 } check_variable = { v = 610 } check_variable = { v = 611 } } } has_political_power > 300 custom_trigger_tooltip = { tooltip = 2013_enlargement_pass_tt is_in_array = { global.EU_passed_votes = 603 } } custom_trigger_tooltip = { tooltip = no_ongoing_expansion_tt check_variable = { global.EU_expansion_check = 0 } } } else_if = { limit = { check_variable = { v = 650 } } has_political_power > 300 custom_trigger_tooltip = { tooltip = 2013_enlargement_pass_tt is_in_array = { global.EU_passed_votes = 603 } } } else_if = { limit = { check_variable = { v = 651 } } has_political_power > 300 custom_trigger_tooltip = { tooltip = extended_enlargement_framework_pass_tt is_in_array = { global.EU_passed_votes = 650 } } } else_if = { limit = { OR = { check_variable = { v = 652 } check_variable = { v = 654 } check_variable = { v = 655 } check_variable = { v = 656 } check_variable = { v = 657 } check_variable = { v = 658 } check_variable = { v = 659 } check_variable = { v = 660 } } } has_political_power > 300 custom_trigger_tooltip = { tooltip = lisbon_treaty_amendment_pass_tt is_in_array = { global.EU_passed_votes = 651 } } } else_if = { limit = { check_variable = { v = 653 } } has_political_power > 300 custom_trigger_tooltip = { tooltip = eu_russia_treaty_pass_tt is_in_array = { global.EU_passed_votes = 652 } } } else_if = { limit = { check_variable = { v = 110 } } custom_trigger_tooltip = { tooltip = euro_min_fin_eco_tt is_in_array = { global.EU_passed_votes = 208 } } custom_trigger_tooltip = { tooltip = euro_army_tt is_in_array = { global.EU_passed_votes = 305 } } custom_trigger_tooltip = { tooltip = euro_navy_tt is_in_array = { global.EU_passed_votes = 306 } } custom_trigger_tooltip = { tooltip = euro_asylum_agency_tt is_in_array = { global.EU_passed_votes = 406 } } } else_if = { limit = { check_variable = { v = 111 } } custom_trigger_tooltip = { tooltip = federalized_eu_tt is_in_array = { global.EU_passed_votes = 110 } } custom_trigger_tooltip = { tooltip = not_poteuf_tt NOT = { is_in_array = { global.EU_passed_votes = 112 } } NOT = { is_in_array = { global.EU_council_votes = 112 } } NOT = { has_global_flag = european_federation } } has_political_power > 300 } else_if = { limit = { check_variable = { v = 112 } } custom_trigger_tooltip = { tooltip = federalized_eu_tt is_in_array = { global.EU_passed_votes = 110 } } custom_trigger_tooltip = { tooltip = not_usoe_tt NOT = { is_in_array = { global.EU_passed_votes = 111 } } NOT = { is_in_array = { global.EU_council_votes = 111 } } } has_political_power > 300 } } } effects = { # Scrollbar Buttons eu_parliament_available_reforms_button_click = { set_variable = { global.current_active_agenda_disp = v } set_variable = { global.active_MEP_Support = 0 } # Notify all nations if not AI hidden_effect = { for_each_scope_loop = { array = global.EU_member if = { limit = { is_ai = no } country_event = EUvote.1 } } } custom_effect_tooltip = EU_propose_agenda_tt hidden_effect = { log = "[GetDateText]: [ROOT.GetName] Decision EU_parliament_focus_EU[?v]_EP_agenda" set_ruling_party_PG_support = yes set_global_flag = EU_active_EP_agenda_holder for_each_scope_loop = { array = global.EU_member activate_mission = EU_parliament_focus_EUXXX_approve } } # Political Power if = { limit = { OR = { check_variable = { v = 101 } check_variable = { v = 201 } check_variable = { v = 203 } check_variable = { v = 204 } check_variable = { v = 301 } check_variable = { v = 401 } check_variable = { v = 402 } check_variable = { v = 403 } } } hidden_effect = { add_political_power = -200 } } else_if = { limit = { OR = { check_variable = { v = 601 } check_variable = { v = 602 } check_variable = { v = 603 } check_variable = { v = 605 } check_variable = { v = 606 } check_variable = { v = 607 } check_variable = { v = 608 } check_variable = { v = 609 } check_variable = { v = 610 } check_variable = { v = 611 } check_variable = { v = 650 } check_variable = { v = 651 } check_variable = { v = 652 } check_variable = { v = 653 } check_variable = { v = 654 } check_variable = { v = 655 } check_variable = { v = 656 } check_variable = { v = 657 } check_variable = { v = 658 } check_variable = { v = 659 } check_variable = { v = 660 } check_variable = { v = 112 } check_variable = { v = 111 } } } hidden_effect = { add_political_power = -300 } } # Display Section: EU_show_display_effects_for_law = yes update_eu_dirty_variable = yes } } dynamic_lists = { # List of Available European Reforms -- European Parliament eu_parliament_available_reforms_list = { array = global.EU_potential_votes entry_container = "eu_parliament_available_reforms_list_container" ai_weights = { eu_parliament_available_reforms_button_click = { ai_will_do = { base = 1 modifier = { add = -100 #multiple values can be checked for adding mods check_variable = { THIS.europeanism < 0.50 } } modifier = { add = -50 check_variable = { THIS.europeanism < 0.75 } } modifier = { add = -10 check_variable = { THIS.europeanism < 0.85 } } #Socalist Block modifier = { add = 25 is_socialist_block = yes } # Do not do EP before June unless you make more than 4 PP a day modifier = { add = -10 date < 2000.6.1 OR = { political_power_daily < 4.0 NOT = { has_idea = EU_commission_president } NOT = { has_idea = EU_council_president } } } # Historical AI Focus modifier = { add = 250 check_variable = { v = 601 } date > 2004.1.1 OR = { is_historical_focus_on = yes SOV = { has_added_tension_amount > 5 } USA = { has_added_tension_amount > 10 } CHI = { has_added_tension_amount > 5 } } } modifier = { add = 250 check_variable = { v = 602 } date > 2007.1.1 OR = { is_historical_focus_on = yes SOV = { has_added_tension_amount > 5 } USA = { has_added_tension_amount > 10 } CHI = { has_added_tension_amount > 5 } } } modifier = { add = 250 check_variable = { v = 603 } date > 2013.1.1 OR = { is_historical_focus_on = yes SOV = { has_added_tension_amount > 5 } USA = { has_added_tension_amount > 10 } CHI = { has_added_tension_amount > 5 } } } # Pass the Charter First (We need this) modifier = { add = 250 OR = { check_variable = { v = 101 } check_variable = { v = 102 } check_variable = { v = 103 } } } # The EU should be more proactive if the Great Financial Crisis in the US occured modifier = { factor = 3 has_global_flag = USA_great_financial_crisis OR = { check_variable = { v = 203 } check_variable = { v = 204 } check_variable = { v = 205 } } } # Game Rule for the European Union AI modifier = { factor = 0 OR = { check_variable = { v = 110 } check_variable = { v = 111 } check_variable = { v = 112 } } has_game_rule = { rule = rule_enable_ai_european_union_end_game_paths option = no } } # Killswitch modifier = { factor = 0 OR = { has_global_flag = EP_AI_hold_their_vote NOT = { check_variable = { global.current_active_agenda_disp = 0 } } } } } } } } } } # Secondary Display Dynamic Lists epsd_dynamic_lists = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "eu_parliament_2nd_display_container" dirty = global.EU_dirty_update_var visible = { is_ai = no NOT = { has_global_flag = GAME_RULE_eu_disabled } has_country_flag = eu_sec_dis_open has_country_flag = show_eu_parliament has_country_flag = new_EU_open NOT = { has_country_flag = eu_party_detail_open } } ai_enabled = { always = no } ai_check = { always = no } dynamic_lists = { epsd_container_list = { array = global.EU_member entry_container = "eu_parliament_2nd_display" change_scope = yes } } } # Party MEP breakdown panel — populated when a party's view button is clicked. # Reuses the left secondary strip; epsd_dynamic_lists hides while this is open. eu_party_member_detail_gui = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "eu_party_member_detail_container" dirty = global.EU_dirty_update_var visible = { is_ai = no NOT = { has_global_flag = GAME_RULE_eu_disabled } has_country_flag = eu_sec_dis_open has_country_flag = show_eu_parliament has_country_flag = new_EU_open has_country_flag = eu_party_detail_open } ai_enabled = { always = no } ai_check = { always = no } effects = { eu_party_detail_back_click = { clr_country_flag = eu_party_detail_open update_eu_dirty_variable = yes } } dynamic_lists = { eu_party_members_list = { array = global.EU_MEP_members_current entry_container = "eu_party_member_detail" change_scope = yes } } } # Fiscal — Contributions Secondary Display eu_contributions_2nd_display_gui = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "eu_contributions_2nd_display_container" dirty = global.EU_dirty_update_var visible = { is_ai = no NOT = { has_global_flag = GAME_RULE_eu_disabled } has_country_flag = eu_sec_dis_open has_country_flag = show_eu_fiscal has_country_flag = new_EU_open NOT = { has_country_flag = eu_fiscal_distrib_view } } ai_enabled = { always = no } dynamic_lists = { eu_contrib_list = { array = global.EU_member entry_container = "eu_contributions_2nd_display" change_scope = yes } } } # Fiscal — Distributions Secondary Display eu_distribution_2nd_display_gui = { context_type = player_context parent_scripted_gui = european_union_gui window_name = "eu_distribution_2nd_display_container" dirty = global.EU_dirty_update_var visible = { is_ai = no NOT = { has_global_flag = GAME_RULE_eu_disabled } has_country_flag = eu_sec_dis_open has_country_flag = show_eu_fiscal has_country_flag = new_EU_open has_country_flag = eu_fiscal_distrib_view } ai_enabled = { always = no } dynamic_lists = { eu_distrib_list = { array = global.EU_member entry_container = "eu_distribution_2nd_display" change_scope = yes } } } }