add_namespace = USoEevent country_event = { id = USoEevent.1 title = USoEevent.1.t desc = USoEevent.1.d picture = GFX_EUU_nonaggression_pact is_triggered_only = yes # Yes option = { name = USoEevent.1.a log = "[GetDateText]: [Root.GetName]: event USoEevent.1.a" FROM = { diplomatic_relation = { country = ROOT relation = non_aggression_pact active = yes } } ai_chance = { base = 1 } } # No option = { name = USoEevent.1.b ai_chance = { base = 0 } } } country_event = { id = USoEevent.2 title = USoEevent.2.t desc = USoEevent.2.d picture = GFX_EUU_alliance_offer is_triggered_only = yes # Yes option = { name = USoEevent.2.a log = "[GetDateText]: [Root.GetName]: event USoEevent.2.a" if = { limit = { FROM = { is_in_faction = yes is_faction_leader = yes } } FROM = { add_to_faction = ROOT } } else_if = { limit = { FROM = { NOT = { is_in_faction = yes } } } FROM = { leave_faction = yes create_faction_from_template = faction_template_eurasian_alliance add_to_faction = ROOT } } ai_chance = { base = 1 } } # No option = { name = USoEevent.2.b ai_chance = { base = 0 } } } country_event = { id = USoEevent.3 title = USoEevent.3.t desc = USoEevent.3.d picture = GFX_EUU_alliance_offer is_triggered_only = yes # Yes option = { name = USoEevent.3.a log = "[GetDateText]: [Root.GetName]: event USoEevent.3.a" if = { limit = { FROM = { is_in_faction = yes is_faction_leader = yes } } FROM = { add_to_faction = ROOT } } else_if = { limit = { FROM = { NOT = { is_in_faction = yes } } } FROM = { create_faction_from_template = faction_template_western_alliance add_to_faction = ROOT } } ai_chance = { base = 1 } } # No option = { name = USoEevent.3.b log = "[GetDateText]: [Root.GetName]: event USoEevent.3.b" FROM = { set_temp_variable = { wargoal_on = ROOT } set_temp_variable = { wargoal_type = 2 } add_threat_from_wargoal_effect = yes create_wargoal = { type = annex_everything target = ROOT } } ai_chance = { base = 0 } } } country_event = { id = USoEevent.4 title = USoEevent.4.t desc = USoEevent.4.d picture = GFX_EUU_alliance_offer is_triggered_only = yes # Yes option = { name = USoEevent.4.a log = "[GetDateText]: [Root.GetName]: event USoEevent.4.a" if = { limit = { FROM = { is_in_faction = yes is_faction_leader = yes } } FROM = { add_to_faction = ROOT } } else_if = { limit = { FROM = { NOT = { is_in_faction = yes } } } FROM = { create_faction_from_template = faction_template_western_alliance add_to_faction = ROOT } } ai_chance = { base = 1 } } # No option = { name = USoEevent.4.b log = "[GetDateText]: [Root.GetName]: event USoEevent.4.b" FROM = { set_temp_variable = { wargoal_on = ROOT } add_threat_from_wargoal_effect = yes create_wargoal = { type = puppet_wargoal_focus target = ROOT } } ai_chance = { base = 0 } } } country_event = { id = USoEevent.5 title = USoEevent.5.t desc = USoEevent.5.d picture = GFX_EUU_environmental_treaty is_triggered_only = yes # Yes option = { name = USoEevent.5.a log = "[GetDateText]: [Root.GetName]: event USoEevent.5.a" FROM = { set_temp_variable = { percent_change = 3 } change_influence_percentage = yes } ai_chance = { base = 1 } } } country_event = { id = USoEevent.6 title = USoEevent.6.t desc = USoEevent.6.d picture = GFX_EUU_environmental_sanctions is_triggered_only = yes # Yes option = { name = USoEevent.6.a log = "[GetDateText]: [Root.GetName]: event USoEevent.6.a" FROM = { add_opinion_modifier = { target = ROOT modifier = sanctions_relations } reverse_add_opinion_modifier = { target = ROOT modifier = sanctions_relations } } ai_chance = { base = 1 } } } country_event = { id = USoEevent.7 title = USoEevent.7.t desc = USoEevent.7.d picture = GFX_EUU_environmental_sanctions is_triggered_only = yes # Yes option = { name = USoEevent.7.a ai_chance = { base = 1 } } }