
Country InteractionChanged this version
Negotiate Succession Law
Their succession law is volatile and will lead to an end of the union. The ruling class must be convinced to adopt our own laws for a secure succession.
MonarchyGovernment Typepotential
RepublicGovernment Typeaccept
TheocracyGovernment Typeaccept
Enabled Negotiate Succession LawModifier Typeallow
Establish SeniorityPolicypotentialRecently Negotiated Succession LawStatic Modifierselect triggerunion_senior_partnerVariablepotentialDefinitionin_game/common/country_interactions/negotiate_succession_law.txt:1
2category = CATEGORY_UNION_ACTIONS
3type = union
4ai_tick = monthly
5ai_tick_frequency = 24
7automation_tick = never
8automation_tick_frequency = 12
9potential = {
10scope:actor = {
11exists = succession_law
12exists = union
14union ?= {
}
}
}
21allow = {
22scope:actor = {
23succession_law = {
24NOT = {
24is_locked_for = scope:actor
}
}
}
}
32select_trigger = {
33looking_for_a = country
34target_flag = recipient
35name = "choose_country" Choose the Country:
36column = {
36data = name
}
37visible = {
38in_union_with = scope:actor
}
40enabled = {
45custom_tooltip = {
46text = recently_negotiated_succession_law_cooldown_tt We have not recently negotiated the Succession Law of Recipient
}
49trigger_if = {
50limit = {
51has_heir = yes
52scope:actor = {
52has_heir = yes
}
}
54heir != scope:actor.heir
}
56trigger_else = {
57has_heir = no
}
59OR = {
60custom_tooltip = {
61text = negotiate_succession_law_at Recipient has a different Succession Law other than Actor Heir Selection and is able to change to it
62AND = {
}
}
67custom_tooltip = {
68text = negotiate_succession_law_ct Recipient has a NOT a compatible Policy for Heir Religion which would allow a Actor Religion Heir to be eligible for them and is able to change their laws
69scope:actor.succession_law = {
69NOT = {
69has_tag = cannot_be_transferred
}
}
70succession_law = {
71this != scope:actor.succession_law
72NOT = {
72is_locked_for = root
}
}
}
}
}
}
79effect = {
80if = {
81limit = {
81exists = scope:recipient
}
82scope:actor = {
83if = {
84limit = {
85succession_law = {
85NOT = {
85has_tag = cannot_be_transferred
}
}
86scope:recipient = {
87succession_law = {
88this != scope:actor.succession_law
89NOT = {
89is_locked_for = prev
}
}
}
}
93succession_law = {
94save_scope_as = target_heir_selection
}
}
}
98scope:recipient = {
99if = {
100limit = {
100exists = scope:target_heir_selection
}
101change_heir_selection = scope:target_heir_selection
}
103else = {
104custom_tooltip = negotiate_succession_law_dt Actor Heir Selection can not be applied to Recipient
}
106if = {
107limit = {
108AND = {
}
}
}
115add_opinion = {
116target = scope:actor
117modifier = opinion_enforced_succession_law_changes
}
119add_country_modifier = {
}
}
}
126else = {
127custom_tooltip = negotiate_succession_law_tt Change the Succession Law of the target Country to Actor Heir Selection
128custom_tooltip = negotiate_succession_law_bt Also change the Heir Religion of the target country to Heir Religion Law if their policy is NOT locked
}
}
137block_when_at_war = yes
139ai_will_do = {
140add = {
141desc = "TARGET_ACCEPTANCE"
142value = "scope:actor.country_interaction_acceptance(country_interaction:negotiate_succession_law|scope:recipient)"
}
}
146accept = {
147subtract = {
148desc = "DIPLOREASON_BASE" Base
149value = 50
}
151add = {
152desc = "THEIR_OPINION_TOOLTIP" Their opinion of us
153value = "scope:recipient.opinion(scope:actor)"
154if = {
155limit = {
156scope:recipient = {
157opinion(scope:actor) > 0
}
}
160divide = 10
}
162else = {
163divide = 5
}
}
166if = {
168subtract = {
169desc = "is_theocracy" Is a Theocracy
170value = 100
}
}
173if = {
175subtract = {
176desc = "is_republic" Is a Republic
177value = 50
}
}
180add = {
181desc = "[diplomatic_reputation|e]"
182value = scope:actor.modifier:diplomatic_reputation
183multiply = 3
}
185add = {
186desc = "DIPLOREASON_TRUST" Their Trust towards us
187value = "scope:recipient.trust(scope:actor)"
188divide = 5
}
190if = {
191limit = {
191exists = scope:actor.union
}
192add = {
193desc = "DIPLOREASON_YEARS_IN_UNION" Years in our Union
194value = "scope:recipient.years_in_international_organization(scope:actor.union)"
195divide = 4
}
}
}