merge_subject = { requires_approval = yes can_use_obligations = yes show_effect_in_tooltip = yes potential = { NOT = { is_country_type = decentralized } scope:target_country = { NOT = { is_country_type = decentralized } is_direct_subject_of = root } } possible = { is_at_war = no scope:target_country = { is_at_war = no } has_diplomatic_relevance = scope:target_country is_revolutionary = no scope:target_country = { is_revolutionary = no } custom_tooltip = { text = DIPLO_ACTION_MARKET_CONNECTION_REQUIRED OR = { AND = { market = { has_port = yes } scope:target_country.market = { has_port = yes } } scope:actor.market = { any_scope_country = { is_adjacent = root } } } } } accept_effect = { hidden_effect = { every_scope_state = { limit = { owner = { is_player = yes } } set_variable = pm_convert_origin } every_scope_state = { limit = { owner = { is_player = yes } is_split_state = yes } set_variable = { name = pm_convert_split value = arable_land } } } annex = scope:target_country hidden_effect = { every_scope_state = { limit = { has_variable = pm_convert_split arable_land > var:pm_convert_split } remove_variable = pm_convert_origin remove_variable = pm_convert_split } every_scope_state = { limit = { NOT = { has_variable = pm_convert_origin } } pm_convert_custom = yes } every_scope_state = { limit = { has_variable = pm_convert_origin } remove_variable = pm_convert_origin } } create_incident = { country = scope:target_country value = 10 } } ai = { accept_score = { value = 0 add = { desc = "DIPLOMATIC_ACCEPTANCE_BASE" value = -100 } if = { limit = { has_truce_with = scope:actor } add = { desc = "DIPLOMATIC_ACCEPTANCE_TRUCE" value = -100 } } add = { desc = "DIPLOMATIC_ACCEPTANCE_RELATIONS" if = { limit = { "relations(scope:actor)" < relations_threshold:cordial } value = 0 } if = { limit = { "relations(scope:actor)" >= relations_threshold:cordial "relations(scope:actor)" < relations_threshold:amicable } value = 0 } if = { limit = { "relations(scope:actor)" >= relations_threshold:amicable "relations(scope:actor)" < relations_threshold:friendly } value = 0 } if = { limit = { "relations(scope:actor)" >= relations_threshold:friendly } value = 100 } } use_obligation_chance = { value = 100 } owe_obligation_chance = { value = 0 } } use_obligation_chance = { value = 100 } owe_obligation_chance = { value = 0 } } use_obligation_chance = { value = 100 } owe_obligation_chance = { value = 0 } }