
Country InteractionChanged this version
Intervene in Union Civil War
We should intervene in this Civil War and sort it out once and for all.
Definitionin_game/common/country_interactions/intervene_in_union_civil_war.txt:1
2type = union
3category = CATEGORY_UNION_ACTIONS
8ai_prerequisite = {
9exists = union
10union = {
11any_international_organization_member = {
12in_civil_war = yes
13NOT = {
13this = root
}
}
}
16NOT = {
16is_during_bankruptcy = yes
}
17at_war = no
}
20potential = {
21scope:actor = {
22exists = union
}
}
26allow = {
}
29select_trigger = {
30looking_for_a = country
31interaction_source_list = {
32scope:actor = {
33union = {
34every_international_organization_member = {
35limit = {
36in_civil_war = yes
37NOT = {
37this = scope:actor
}
}
39add_to_list = source
}
}
}
}
44target_flag = recipient
45name = "choose_country" Choose the Country:
46column = {
47data = name
}
49visible = {
50in_civil_war = yes
51in_union_with = scope:actor
}
53enabled = {
54not = {
54is_at_war_with = scope:actor
}
}
}
58select_trigger = {
59looking_for_a = country
60interaction_source_list = {
61scope:recipient = {
62civil_war = {
63attacker_leader = {
64add_to_list = source
}
66defender_leader = {
67add_to_list = source
}
}
}
}
72target_flag = side
73name = "intervene_in_union_civil_war_choose_side" Choose which side to intervene on behalf of:
74column = {
75data = name
}
77visible = {
78not = {
78is_at_war_with = scope:actor
}
79scope:recipient = {
80civil_war = {
81OR = {
82AND = {
83is_a_defender = root
84can_join_as_defender = scope:actor
}
86AND = {
87is_an_attacker = root
88can_join_as_attacker = scope:actor
}
}
}
}
}
94enabled = {
}
}
98effect = {
99scope:actor = {
100reverse_add_opinion = {
101target = scope:side
102modifier = opinion_helped_in_civil_war
}
}
105scope:recipient = {
106civil_war = {
107if = {
108limit = {
109attacker_leader = scope:side
}
111scope:actor = {
112join_war_as_attacker = {
113war = prev
114reason = intervene
}
}
}
118else = {
119scope:actor = {
120join_war_as_defender = {
121war = prev
122reason = intervene
}
}
}
}
}
}
130ai_will_do = {
131add = {
132desc = "game_concept_opinion"
133scope:actor = {
134value = "opinion(scope:side)"
135divide = 5
}
}
138add = {
139desc = "game_concept_trust"
140scope:actor = {
141value = "trust(scope:side)"
142divide = 5
}
}
145add = {
146desc = "game_concept_war_exhaustion"
147scope:actor = {
148value = war_exhaustion
149divide = -2
}
}
152add = {
153desc = "LENGTH_OF_WAR_TOOLTIP"
154scope:recipient = {
155civil_war = {
156value = war_length_in_years
157add = -4
158multiply = 10
}
}
}
162add = {
163desc = "SAME_UNION"
164value = 250
}
}