
국가 상호 작용이번 버전 신규
동맹에 부대 대여
전쟁 동맹국에 우리 부대 중 하나의 임시 지휘권을 부여합니다. 더 이상 같은 편으로 참전한 전쟁이 없게 되면 부대는 반환됩니다.
정의in_game/common/country_interactions/lend_unit_to_ally.txt:1
2type = diplomacy
3category = CATEGORY_MILITARY_ACTIONS
5ai_prerequisite = {
6army_size > 0
}
9potential = {
10scope:actor = {
11at_war = yes
}
}
15allow = {
}
19select_trigger = {
20looking_for_a = country
21target_flag = recipient
22interaction_source_list = {
23scope:actor = {
24every_current_war = {
25if = {
26limit = {
26is_an_attacker = scope:actor
}
27attacker_leader = {
28if = {
29limit = {
29NOT = {
29this = scope:actor
}
}
30add_to_list = source
}
}
}
34if = {
35limit = {
35is_a_defender = scope:actor
}
36defender_leader = {
37if = {
38limit = {
38NOT = {
38this = scope:actor
}
}
39add_to_list = source
}
}
}
}
}
}
46cache_interaction_source_list = yes
47name = "choose_country" 국가 선택:
48column = {
48data = name
}
49visible = {
50always = yes
}
52enabled = {
53NOT = {
53this = scope:actor
}
}
}
58select_trigger = {
59looking_for_a = unit
60source = actor
61target_flag = lend_unit_target
62name = "lend_unit_to_ally_choose_unit" 대여해 줄 부대 선택
63none_available_msg_key = "lend_unit_to_ally_no_units"
64column = {
64data = name
}
65visible = {
66is_army = yes
71NOT = {
71any_sub_unit = {
71is_condottieri = yes
}
}
72NOT = {
72any_sub_unit = {
72is_mercenary = yes
}
}
76NOT = {
76any_sub_unit = {
76is_levy = yes
}
}
}
}
80diplo_chance = {
81base = 50
82opinion = 0.3
}
85accept = {
87add = {
88desc = "DIPLOREASON_LOSING_WAR" 전쟁에서 패배 중임
89if = {
90limit = {
91scope:recipient = {
91lowest_war_score < -10
}
}
93add = 25
}
}
97subtract = {
98desc = "DIPLOREASON_SUFFICIENT_ARMY" 추가 병력이 필요하지 않음
99if = {
100limit = {
101scope:recipient = {
101lowest_war_score >= 10
}
}
103add = 20
}
}
107add = {
108desc = "DIPLOREASON_OPINION" 우호도
109value = "scope:recipient.opinion(scope:actor)"
110multiply = 0.3
}
}
114effect = {
115if = {
116limit = {
117exists = scope:lend_unit_target
118exists = scope:recipient
}
120scope:lend_unit_target = {
121lend_unit_to_country = scope:recipient
}
123scope:actor = {
124add_opinion = {
125target = scope:recipient
126modifier = opinion_lent_unit
}
}
}
}
132ai_will_do = {
133value = 0
136if = {
137limit = {
138scope:actor = {
139any_current_war = {
140NOT = {
141OR = {
142attacker_leader = scope:actor
143defender_leader = scope:actor
}
}
146OR = {
147AND = {
148attacker_leader = scope:recipient
149is_an_attacker = scope:actor
}
151AND = {
152defender_leader = scope:recipient
153is_a_defender = scope:actor
}
}
}
157relative_military_strength = {
158target = scope:recipient
159value < 0.5
}
161scope:recipient = {
161lowest_war_score < 0
}
162calc_true_if = {
163any_unit = {
163is_army = yes
}
164amount >= 2
}
}
}
168add = 60
}
172if = {
173limit = {
174scope:actor = {
175is_subject_of = scope:recipient
176subject_loyalty >= MIN_SUBJECT_LOYALTY_FOR_ACTION
177liberty_desire < 25
178relative_military_strength = {
179target = scope:recipient
180value < 0.3
}
182scope:recipient = {
182lowest_war_score < 0
}
183calc_true_if = {
184any_unit = {
184is_army = yes
}
185amount >= 2
}
}
}
189add = 80
}
193if = {
194limit = {
195scope:actor = {
195lowest_war_score < -15
}
}
197add = -1000
}
}