
国家関与このバージョンで変更
好感度で参戦要請
わが国の敵を攻撃することで、我々を支援するよう要求する。
定義in_game/common/country_interactions/ask_join_war_for_favors.txt:1
2type = diplomacy
3category = CATEGORY_INFLUENCE_ACTIONS
5diplomatic_cost = ask_join_war_for_favors_cost
7potential = {
8scope:actor = {
9at_war = yes
10any_current_war = {
11not = {
11is_in_war = root
}
12or = {
13attacker_leader = scope:actor
14defender_leader = scope:actor
}
}
}
}
20allow = {
}
23select_trigger = {
24looking_for_a = country
25target_flag = recipient
26interaction_source_list = {
27scope:actor = {
28every_country_that_can_be_called_offensively = {
29add_to_list = source
}
31every_country_that_can_be_called_defensively = {
32add_to_list = source
}
}
}
36name = "choose_country" 国家を選択:
37show_why_not_enabled = yes
38none_available_msg_key = "no_valid_countries"
39column = {
40data = name
}
42visible = {
}
44enabled = {
45scope:actor = {
46any_current_war = {
47not = {
47is_in_war = root
}
48trigger_if = {
49limit = {
50attacker_leader = scope:actor
}
52root = {
53can_join_offensive_war_with = scope:actor
}
}
56trigger_else_if = {
57limit = {
58defender_leader = scope:actor
}
60root = {
61can_join_defensive_war_with = scope:actor
}
}
64trigger_else = {
65always = no
}
}
}
}
}
72select_trigger = {
73looking_for_a = war
74target_flag = war
75interaction_source_list = {
76scope:actor = {
77every_current_war = {
78add_to_list = source
}
}
}
82cache_interaction_source_list = yes
83name = "choose_war_to_join" 参戦要請をおこなう戦争を選択:
84default_sort = select_target_acceptance_total
85column = {
86data = name
}
88column = {
89data = select_target_acceptance_total
}
91visible = {
}
93enabled = {
94not = {
94is_in_war = scope:recipient
}
96trigger_if = {
97limit = {
98is_civil_war_for = scope:actor
99scope:actor = {
99is_subject_or_below_of = scope:recipient
}
}
}
104trigger_if = {
105limit = {
106attacker_leader = scope:actor
}
108can_join_as_attacker = scope:recipient
109NOT = {
110defender_leader = {
111is_subject_or_below_of = scope:recipient
}
}
114scope:recipient = {
115can_join_offensive_war_with = scope:actor
116NOT = {
117has_truce_with = root.defender_leader
}
}
}
121trigger_else_if = {
122limit = {
123defender_leader = scope:actor
}
125can_join_as_defender = scope:recipient
126NOT = {
127attacker_leader = {
128is_subject_or_below_of = scope:recipient
}
}
131scope:recipient = {
132can_join_defensive_war_with = scope:actor
133NOT = {
134has_truce_with = root.attacker_leader
}
}
}
138trigger_else = {
139always = no
}
}
}
144ai_will_do = {
145add = {
146desc = "TARGET_ACCEPTANCE"
147value = "scope:actor.country_interaction_acceptance(country_interaction:ask_join_war_for_favors|scope:recipient)"
}
}
151diplo_chance = {
152base = 100
153levy_availability = -100
154low_manpower = -20
155negative_stability = -0.2
156war_exhaustion = -2
157in_debt = -5
158recipient_civil_war = -100
159recipient_at_war = -100
160recipient_occupied_beseiged_locations = -100
161disloyal_subject = -100
162opinion = 0.2
163lacks_border = -10
164border_distance = -0.1
}
167accept = {
168if = {
169limit = {
169exists = scope:war
}
170if = {
171limit = {
171scope:war.attacker_leader = scope:actor
}
172if = {
173limit = {
173scope:war = {
173any_defender = {
173in_union_with = root
}
}
}
174subtract = {
175desc = "DIPLOREASON_WOULD_BREAK_UNION" 相手国の同君連合を解消することになる
176value = 1000
}
}
179if = {
181subtract = {
182desc = "DIPLOREASON_ALLIED_TO_ENEMY" 敵国との同盟
183value = 20
}
}
186subtract = {
187desc = "DIPLOREASON_TARGET_OPINION" 目標評価
188value = "opinion(scope:war.defender_leader)"
189multiply = 0.5
}
191subtract = {
192desc = "DIPLOREASON_BORDER_DISTANCE" 国境の距離
193value = "border_distance_to(scope:war.defender_leader)"
194multiply = 0.1
}
}
197else = {
198if = {
199limit = {
199scope:war = {
199any_attacker = {
199in_union_with = root
}
}
}
200subtract = {
201desc = "DIPLOREASON_WOULD_BREAK_UNION" 相手国の同君連合を解消することになる
202value = 1000
}
}
205if = {
207subtract = {
208desc = "DIPLOREASON_ALLIED_TO_ENEMY" 敵国との同盟
209value = 20
}
}
212subtract = {
213desc = "DIPLOREASON_TARGET_OPINION" 目標評価
214value = "opinion(scope:war.attacker_leader)"
215multiply = 0.5
}
217subtract = {
218desc = "DIPLOREASON_BORDER_DISTANCE" 国境の距離
219value = "border_distance_to(scope:war.attacker_leader)"
220multiply = 0.1
}
}
}
}
226effect = {
227scope:war = {
228if = {
229limit = {
230attacker_leader = scope:actor
}
232scope:recipient = {
233join_war_as_attacker = {
234war = prev
235call_in_subjects = yes
}
}
}
239else_if = {
240limit = {
241defender_leader = scope:actor
}
243scope:recipient = {
244join_war_as_defender = {
245war = prev
246call_in_subjects = yes
}
}
}
}
}