
Country InteractionChanged this version
Enforce Union Peace
We will demand that they leave a war
Senior PartnerSpecial Statusselect trigger 1
Allow Enforce Union Peace in UnionModifier Typeselect trigger 1
Establish SeniorityPolicypotential, select trigger 1Definitionin_game/common/country_interactions/union_enforce_peace.txt:1
2type = union
3category = CATEGORY_UNION_ACTIONS
5potential = {
6scope:actor = {
7exists = union
}
}
14allow = {
}
17select_trigger = {
18looking_for_a = country
19interaction_source_list = {
20scope:actor = {
21union = {
22if = {
23limit = {
}
31every_international_organization_member = {
32limit = {
33NOT = {
33this = scope:actor
}
}
35add_to_list = source
}
}
}
}
}
41target_flag = recipient
42name = "choose_country" Choose the Country:
43column = {
44data = name
}
46visible = {
47any_current_war = {
48not = {
48is_in_war = scope:actor
}
}
50in_union_with = scope:actor
}
}
60select_trigger = {
61looking_for_a = war
62source = recipient
63target_flag = target
64name = "union_enforce_peace_select_title" Select a War for Recipient to Leave
65none_available_msg_key = "union_enforce_peace_no_wars"
66default_sort = select_target_acceptance_total
67column = {
68data = name
}
70column = {
71data = select_target_acceptance_total
}
73visible = {
74defender_leader != scope:recipient
75NOT = {
76any_war_participant = {
77this = scope:actor
}
}
}
}
84effect = {
85if = {
86limit = {
86exists = scope:target
}
87scope:recipient = {
88leave_war = {
89war = scope:target
90actor = scope:actor
}
}
}
94else = {
95custom_tooltip = select_a_war_to_leave Select a war for them to leave
}
97scope:recipient = {
98add_opinion = {
99modifier = opinion_enforced_peace
100target = scope:actor
}
}
}
104reject_effect = {
105scope:recipient = {
106add_opinion = {
107modifier = opinion_enforced_peace
108target = scope:actor
}
}
}
112accept = {
113subtract = {
114desc = "DIPLOREASON_BASE" Base
115value = 25
}
117add = {
118desc = "DIPLOREASON_DIPLOMATIC_REPUTATION" Diplomatic Reputation
119value = "scope:actor.modifier:diplomatic_reputation"
120multiply = 3
}
122add = {
123desc = "THEIR_OPINION_TOOLTIP" Their opinion of us
124value = "scope:recipient.opinion(scope:actor)"
125divide = 4
}
127if = {
128limit = {
128exists = scope:target
}
129add = {
130desc = "LENGTH_OF_WAR_TOOLTIP" Length of War
131value = "scope:target.war_length_in_years"
132multiply = 5
}
134add = {
135desc = "DIPLOREASON_WARSCORE" war score icon Current Warscore
136value = "scope:recipient.war_score_in_war(scope:target)"
137multiply = -1
}
139if = {
140limit = {
141scope:target = {
142any_defender = {
142this = scope:recipient
}
}
}
145subtract = {
146desc = "DIPLOREASON_DEFENSIVE_WAR" Target is a defensive war
147value = 75
}
}
150else_if = {
151limit = {
152scope:target = {
153attacker_leader ?= scope:recipient
}
}
156subtract = {
157desc = "DIPLOREASON_WAR_LEADER" Is War Leader
158value = 50
}
}
}
162add = {
163desc = "DIPLOREASON_AVERAGE_ESTATE_SATISFACTION" Average Estate Satisfaction
164value = "scope:recipient.average_estate_satisfaction"
165subtract = 0.3
166multiply = 100
}
}
169ai_will_do = {
170value = -1000
}