add_namespace = MD_raid add_namespace = MD_nuclear_energy # Nuclear Energy Warning country_event = { id = MD_nuclear_energy.1 title = MD_nuclear_energy.1.t desc = MD_nuclear_energy.1.d picture = GFX_raid_city_fire #replace this with a nuclear symbol or something I dunno is_triggered_only = yes option = { name = MD_nuclear_energy.1.a ai_chance = { base = 1 } } option = { name = MD_nuclear_energy.1.b log = "[GetDateText]: [This.GetName]: MD_nuclear_energy.1.b executed" add_political_power = -50 if = { limit = { has_idea = non_nuclear_power } swap_ideas = { remove_idea = non_nuclear_power add_idea = nuclear_energy } } ai_chance = { base = 1 } } } # War Event country_event = { id = MD_raid.1 title = MD_raid.1.t desc = MD_raid.1.d picture = GFX_raid_city_fire is_triggered_only = yes trigger = { NOT = { FROM = { original_tag = ROOT } } NOT = { FROM = { is_ally_with = ROOT } } NOT = { has_country_flag = block_raid_events } } option = { name = MD_raid.1.NATO log = "[GetDateText]: [This.GetName]: MD_raid.1.NATO executed" trigger = { has_idea = NATO_member NOT = { FROM = { has_country_flag = promised_retaliation_against@ROOT } } } hidden_effect = { news_event = MD_raid.17 } if = { limit = { has_country_flag = conceded_to@FROM } clr_country_flag = conceded_to@FROM set_country_flag = { flag = does_not_trust@FROM days = 270 value = 1 } } custom_effect_tooltip = RAID_war_instantly_TT hidden_effect = { FROM = { # Creating an Offensive War to Trigger Article 5 declare_war_on = { target = ROOT type = annex_everything } } } hidden_effect = { FROM = { country_event = MD_raid.15 } } # Simple AI for now until something more advanced is placed here - DROID ai_chance = { base = 40 modifier = { # Don't go to war if not at war already factor = 0 has_war = yes } modifier = { factor = 1.6 has_government = nationalist } modifier = { factor = 0.3 has_government = neutrality } modifier = { factor = 1.5 has_idea = super_power } modifier = { factor = 15 USA = { has_idea = NATO_member } } } } # Retaliate option = { name = MD_raid.1.a log = "[GetDateText]: [This.GetName]: MD_raid.1.a executed" trigger = { if = { limit = { has_idea = NATO_member } FROM = { has_country_flag = promised_retaliation_against@ROOT } } else = { NOT = { has_idea = NATO_member } } } hidden_effect = { news_event = MD_raid.16 } if = { limit = { has_country_flag = conceded_to@FROM } clr_country_flag = conceded_to@FROM set_country_flag = { flag = does_not_trust@FROM days = 270 value = 1 } } add_war_support = 0.10 add_opinion_modifier = { target = FROM modifier = violated_territorial_sovereignty } set_temp_variable = { wargoal_on = FROM } add_threat_from_wargoal_effect = yes create_wargoal = { type = puppet_wargoal_focus target = FROM expire = 120 } add_stability = -0.05 hidden_effect = { FROM = { country_event = MD_raid.15 } } # Simple AI for now until something more advanced is placed here - DROID ai_chance = { base = 40 modifier = { factor = 0 OR = { #Don't attack Western if Western AND = { has_government = democratic FROM = { has_government = democratic } } #Don't get new enemies has_war = yes has_civil_war = yes #Don't attack if they are land locked non-neighbour AND = { NOT = { is_neighbor_of = FROM } FROM = { NOT = { any_owned_state = { is_coastal = yes } } } } #Ignore if they are small and not a neighbour NOT = { is_neighbor_of = FROM } } } modifier = { factor = 1.6 has_government = nationalist } modifier = { factor = 0.3 has_government = neutrality } modifier = { factor = 0 strength_ratio = { tag = FROM ratio < 0.75 } } modifier = { factor = 1.5 has_idea = super_power } modifier = { factor = 0 strength_ratio = { tag = FROM ratio > 0.5 } } } } # Promise a response option = { name = MD_raid.1.b log = "[GetDateText]: [This.GetName]: MD_raid.1.b executed" if = { limit = { has_country_flag = conceded_to@FROM } clr_country_flag = conceded_to@FROM set_country_flag = { flag = does_not_trust@FROM days = 270 value = 1 } } add_war_support = 0.10 if = { limit = { is_ai = yes } add_political_power = 200 add_command_power = 50 } add_opinion_modifier = { target = FROM modifier = violated_territorial_sovereignty } set_country_flag = { flag = promised_retaliation_against@FROM days = 270 value = 1 } custom_effect_tooltip = MD_timed_raid_TT FROM = { country_event = { id = MD_raid.6 days = 1 } } hidden_effect = { FROM = { country_event = MD_raid.15 } } ai_chance = { base = 20 modifier = { factor = 2 strength_ratio = { tag = FROM ratio > 0.5 } } modifier = { factor = 0.05 NOT = { is_neighbor_of = FROM } } modifier = { factor = 1.6 has_government = nationalist } modifier = { factor = 1.6 has_government = communism } modifier = { factor = 0.3 has_government = neutrality } # Country specific responses # Iran - Israel modifier = { factor = 20 original_tag = ISR FROM = { original_tag = PER } } modifier = { factor = 20 original_tag = PER FROM = { original_tag = ISR } } # Pakistan - India modifier = { factor = 20 ROOT = { original_tag = RAJ } FROM = { original_tag = PAK } } modifier = { factor = 20 ROOT = { original_tag = PAK } FROM = { original_tag = RAJ } } } } # Demand Reparations option = { name = MD_raid.1.c log = "[GetDateText]: [This.GetName]: MD_raid.1.c executed" trigger = { OR = { NOT = { has_idea = non_state_actor } NOT = { original_tag = ISI } salafist_caliphate_are_in_power = no } } if = { limit = { has_country_flag = conceded_to@FROM } clr_country_flag = conceded_to@FROM set_country_flag = { flag = does_not_trust@FROM days = 270 value = 1 } } add_opinion_modifier = { target = FROM modifier = violated_territorial_sovereignty } set_country_flag = { flag = recently_demanded_reparations days = 365 value = 1 } FROM = { country_event = { id = MD_raid.2 days = 2 } } hidden_effect = { FROM = { country_event = MD_raid.15 } } ai_chance = { base = 60 # If somewhat weaker, then try to avoid a response modifier = { factor = 10 strength_ratio = { tag = FROM ratio < 1 } } modifier = { factor = 0.1 has_government = nationalist } modifier = { factor = 2 has_government = neutrality } modifier = { factor = 2 has_idea = NATO_member } modifier = { factor = 1.5 is_historical_focus_on = yes } modifier = { # Hostile nations won't pay — don't bother demanding factor = 0.05 has_opinion = { target = FROM value < -100 } } modifier = { # Only demand reparations once per year factor = 0 has_country_flag = recently_demanded_reparations } # Country specific modifier = { factor = 0 original_tag = ISR FROM = { original_tag = PER } } modifier = { factor = 0 original_tag = PER FROM = { original_tag = ISR } } } } # Diplomatic protest option = { name = MD_raid.1.e log = "[GetDateText]: [This.GetName]: MD_raid.1.e executed" trigger = { NOT = { FROM = { is_embargoed_by = ROOT } } } if = { limit = { has_country_flag = conceded_to@FROM } clr_country_flag = conceded_to@FROM set_country_flag = { flag = does_not_trust@FROM days = 270 value = 1 } } add_opinion_modifier = { target = FROM modifier = violated_territorial_sovereignty } hidden_effect = { FROM = { country_event = MD_raid.15 } } if = { limit = { has_dlc = "By Blood Alone" } send_embargo = FROM } ai_chance = { base = 50 # If absolutely weaker, completely avoid conflict modifier = { factor = 10 strength_ratio = { tag = FROM ratio < 1.0 } } modifier = { factor = 0.1 has_government = nationalist } modifier = { factor = 2 has_government = neutrality } modifier = { factor = 2 has_idea = NATO_member } modifier = { factor = 1.5 is_historical_focus_on = yes } } } } country_event = { id = MD_raid.2 title = MD_raid.2.t desc = MD_raid.2.d picture = GFX_raid_international_sanctions is_triggered_only = yes # Don't Pay Reparations option = { name = MD_raid.2.a log = "[GetDateText]: [This.GetName]: MD_raid.2.a executed" FROM = { country_event = MD_raid.4 } ai_chance = { base = 5 modifier = { OR = { has_country_flag = does_not_trust@FROM has_government = fascism has_government = nationalist strength_ratio = { tag = FROM ratio < 0.50 } } factor = 50 } } } # Pay Reparations option = { name = MD_raid.2.b log = "[GetDateText]: [This.GetName]: MD_raid.2.b executed" custom_effect_tooltip = MD_reparation_TT set_country_flag = { flag = conceded_to@FROM days = 360 value = 1 } set_country_flag = { flag = recently_paid_reparations days = 365 value = 1 } effect_tooltip = { FROM = { set_temp_variable = { treasury_change = { value = gdp_total multiply = 0.02 } } clamp_temp_variable = { var = treasury_change min = 0 max = 200 } modify_treasury_effect = yes } ROOT = { set_temp_variable = { raider_gdp = FROM.gdp_total } set_temp_variable = { treasury_change = { value = raider_gdp multiply = 0.02 clamp = { min = 0 max = 200 } multiply = -1 } } modify_treasury_effect = yes } } FROM = { country_event = MD_raid.3 } ai_chance = { base = 5 modifier = { factor = 10 strength_ratio = { # Mr big man please don't pucker my booty hole - Country paying the reparations tag = FROM ratio > 0.50 } } modifier = { factor = 0 set_temp_variable = { input_cost = FROM.gdp_total } multiply_temp_variable = { input_cost = 0.02 } set_temp_variable = { interest_rate_check = 7.99 } calculate_ai_interest = yes } modifier = { # Don't pay reparations more than once per year factor = 0 has_country_flag = recently_paid_reparations } modifier = { # Don't pay reparations to a nation that hates us factor = 0 FROM = { has_opinion = { target = ROOT value < -75 } } } modifier = { # Don't pay reparations to a nation we hate factor = 0 has_opinion = { target = FROM value < -75 } } } } } # Reparations Paid! country_event = { id = MD_raid.3 title = MD_raid.3.t desc = MD_raid.3.d picture = GFX_message_signing is_triggered_only = yes # Good option = { name = MD_raid.3.a log = "[GetDateText]: [This.GetName]: MD_raid.3.a executed" custom_effect_tooltip = MD_reparation2_TT ROOT = { set_temp_variable = { treasury_change = { value = gdp_total multiply = 0.02 } } clamp_temp_variable = { var = treasury_change min = 0 max = 200 } modify_treasury_effect = yes } FROM = { set_temp_variable = { raider_gdp = ROOT.gdp_total } set_temp_variable = { treasury_change = { value = raider_gdp multiply = 0.02 clamp = { min = 0 max = 200 } multiply = -1 } } modify_treasury_effect = yes } ai_chance = { base = 40 } } } # Reparations Refused! country_event = { id = MD_raid.4 title = MD_raid.4.t desc = MD_raid.4.d picture = GFX_treaty_rejected is_triggered_only = yes # Ok, they asked for it option = { name = MD_raid.4.a log = "[GetDateText]: [This.GetName]: MD_raid.4.a executed" news_event = MD_raid.16 set_temp_variable = { wargoal_on = FROM } add_threat_from_wargoal_effect = yes create_wargoal = { type = puppet_wargoal_focus target = FROM expire = 120 } ai_chance = { base = 5 modifier = { factor = 10 strength_ratio = { tag = FROM ratio > 1.25 } } modifier = { factor = 0 strength_ratio = { tag = FROM ratio > 0.5 } } modifier = { factor = 0.5 NOT = { is_neighbor_of = FROM } } modifier = { factor = 2 has_idea = super_power } } } # Don't fight a war, but hey, lets get the whole world to fuck their eco if we can option = { name = MD_raid.4.c log = "[GetDateText]: [This.GetName]: MD_raid.4.c executed" trigger = { NOT = { has_idea = non_state_actor } NOT = { OR = { has_country_flag = is_raid_sanctioning@FROM FROM = { has_country_flag = promised_retaliation_against@ROOT } } } } set_temp_variable = { ga_new_vote_type = 7 } set_temp_variable = { ga_new_vote_nation = FROM } update_ga_vote = yes set_country_flag = is_raid_sanctioning@FROM ai_chance = { base = 20 modifier = { factor = 10 strength_ratio = { tag = FROM ratio < 1 } } modifier = { factor = 5 strength_ratio = { tag = FROM ratio > 0.5 } } modifier = { factor = 5 NOT = { is_neighbor_of = FROM } } } } # It is not worth it option = { name = MD_raid.4.b log = "[GetDateText]: [This.GetName]: MD_raid.4.b executed" ai_chance = { base = 55 } country_event = { id = MD_raid.5 days = 3 } } } # Our Government Faces International and Domestic Humiliation country_event = { id = MD_raid.5 title = MD_raid.5.t desc = MD_raid.5.d picture = GFX_raid_international_sanctions is_triggered_only = yes # Ok option = { name = MD_raid.5.a ai_chance = { base = 40 } } } country_event = { id = MD_raid.6 title = MD_raid.6.t desc = MD_raid.6.d picture = GFX_raid_retaliation is_triggered_only = yes # Ok option = { name = MD_raid.6.a ai_chance = { base = 40 } } } country_event = { id = MD_raid.8 hidden = yes is_triggered_only = yes immediate = { log = "Starting Raid for [THIS.GetTag] To [?ROOT.actor_country.GetTag]" var:ROOT.actor_country = { country_event = MD_raid.9 set_country_flag = { flag = temp_flag_raids days = 2 value = 1 } } } } #Raid event that coordinates all the other raid events going out in the proper order country_event = { id = MD_raid.9 hidden = yes is_triggered_only = yes immediate = { log = "Starting Raid for [?ROOT.target_country.GetTag] FROM [FROM.GetTag]" var:ROOT.target_country = { country_event = MD_raid.1 } } } #Event given to all neighboring countries that a neighbor just got raided country_event = { id = MD_raid.10 title = MD_raid.10.t desc = MD_raid.10.d picture = GFX_raid_city_fire is_triggered_only = yes trigger = { NOT = { OR = { has_country_flag = temp_flag_raids has_country_flag = disable_raid_notification } } } option = { name = MD_raid.10.a log = "[GetDateText]: [This.GetName]: MD_raid.10.a executed" add_opinion_modifier = { target = FROM modifier = violated_neighbors_sovereignty } if = { limit = { NOT = { has_country_flag = waived_notif_warning } } custom_effect_tooltip = disable_raid_notifs_TT } set_country_flag = waived_notif_warning ai_chance = { base = 5 modifier = { has_opinion = { target = FROM value < -10 } add = 10 } modifier = { is_in_faction_with = FROM add = -20 } } } option = { name = MD_raid.10.b log = "[GetDateText]: [This.GetName]: MD_raid.10.b executed" if = { limit = { NOT = { has_country_flag = waived_notif_warning } } custom_effect_tooltip = disable_raid_notifs_TT } set_country_flag = waived_notif_warning ai_chance = { base = 5 } } } #Event to faction members country_event = { id = MD_raid.12 title = MD_raid.12.t desc = MD_raid.12.d picture = GFX_raid_city_fire is_triggered_only = yes trigger = { NOT = { has_country_flag = disable_raid_notification } } option = { name = MD_raid.12.a log = "[GetDateText]: [This.GetName]: MD_raid.12.a executed" add_opinion_modifier = { target = FROM modifier = violated_allies_sovereignty } if = { limit = { NOT = { has_country_flag = waived_notif_warning } } custom_effect_tooltip = disable_raid_notifs_TT } set_country_flag = waived_notif_warning ai_chance = { base = 40 } } option = { name = MD_raid.12.b log = "[GetDateText]: [This.GetName]: MD_raid.12.b executed" if = { limit = { NOT = { has_country_flag = waived_notif_warning } } custom_effect_tooltip = disable_raid_notifs_TT } set_country_flag = waived_notif_warning ai_chance = { base = 1 } } } country_event = { # I will bite your fucking ear off if you touch this id = MD_raid.15 #*Touch* - Doolittle hidden = yes is_triggered_only = yes immediate = { log = "Starting Raid for [THIS.GetTag] To [?ROOT.actor_country.GetTag]" send_events_to_others = yes } } # News news_event = { id = MD_raid.16 title = MD_raid.16.t desc = MD_raid.16.d picture = GFX_raid_news_escalating_tension major = yes is_triggered_only = yes option = { name = MD_raid.16.a } } news_event = { id = MD_raid.17 title = MD_raid.17.t desc = MD_raid.17.d picture = GFX_world_nato_article major = yes is_triggered_only = yes option = { name = MD_raid.17.a } }