
Country InteractionChanged this version
Intervene in Subject Civil War
We should intervene in this Civil War and sort it out once and for all.
Definitionin_game/common/country_interactions/intervene_in_subject_civil_war.txt:1
2type = subject
3category = CATEGORY_SUBJECT_ACTIONS
8ai_prerequisite = {
9any_subject = {
9in_civil_war = yes
}
10NOT = {
10is_during_bankruptcy = yes
}
11at_war = no
}
14potential = {
}
17allow = {
}
20select_trigger = {
21looking_for_a = country
22interaction_source_list = {
23scope:actor = {
24every_subject = {
25limit = {
26in_civil_war = yes
}
28add_to_list = source
}
}
}
32target_flag = recipient
33name = "choose_country" Choose the Country:
34column = {
35data = name
}
37visible = {
38in_civil_war = yes
39is_subject_of = scope:actor
}
41enabled = {
42not = {
42is_at_war_with = scope:actor
}
}
}
49select_trigger = {
50looking_for_a = country
51interaction_source_list = {
52scope:recipient = {
53civil_war = {
54attacker_leader = {
55add_to_list = source
}
57defender_leader = {
58add_to_list = source
}
}
}
}
63target_flag = side
64name = "intervene_in_subject_civil_war_choose_side" Choose which side to intervene on behalf of:
65column = {
66data = name
}
68visible = {
69not = {
69is_at_war_with = scope:actor
}
70scope:recipient = {
71civil_war = {
72OR = {
73AND = {
74is_a_defender = root
75can_join_as_defender = scope:actor
}
77AND = {
78is_an_attacker = root
79can_join_as_attacker = scope:actor
}
}
}
}
}
85enabled = {
}
}
89effect = {
90scope:actor = {
91reverse_add_opinion = {
92target = scope:side
93modifier = opinion_helped_in_civil_war
}
}
96scope:recipient = {
97civil_war = {
98if = {
99limit = {
100attacker_leader = scope:side
}
102scope:actor = {
103join_war_as_attacker = {
104war = prev
105reason = intervene
}
}
}
109else = {
110scope:actor = {
111join_war_as_defender = {
112war = prev
113reason = intervene
}
}
}
}
}
}
121ai_will_do = {
122add = {
123desc = "game_concept_opinion"
124scope:actor = {
125value = "opinion(scope:side)"
126divide = 5
}
}
129add = {
130desc = "game_concept_trust"
131scope:actor = {
132value = "trust(scope:side)"
133divide = 5
}
}
136add = {
137desc = "game_concept_war_exhaustion"
138scope:actor = {
139value = war_exhaustion
140divide = -2
}
}
143add = {
144desc = "LENGTH_OF_WAR_TOOLTIP"
145scope:recipient = {
146civil_war = {
147value = war_length_in_years
148add = -4
149multiply = 10
}
}
}
}