
Международное объединениеИзменено в этой версии
Коалиция
Коалиция — это группа Concept, объединившихся на почве общей Concept к другой Concept и желающих сдержать её потенциальную агрессию. Нападение на одного участника коалиции считается нападением на всех сразу. Также коалиция может объявить противнику Concept.
КоалицияПовод для войныjoin offensive wars always
ДанникТип ленникаauto leave triggerОпределениеin_game/common/international_organizations/coalition.txt:1
3has_target = yes
4show_on_diplomatic_map = yes
5expel_members_who_are_targets_of_other_members = yes
6expel_members_who_are_attackers_at_war_with_other_members = yes
7expel_members_who_are_defenders_at_war_with_other_members = yes
8has_leader_country = yes
9leader_type = country
10show_strength_comparison_with_target = yes
11declare_war_on_target_casus_belli = cb_coalition
12promote_strongest_member_to_war_leader = yes
14gives_food_access_to_members = yes
16create_visible_trigger = {
17always = yes
}
20invite_visible_trigger = {
21always = yes
}
24diplomatic_capacity_cost = {
25add = {
26desc = "UPKEEP_BASE_VALUE" Базовое значение
27value = 1
}
}
32leader_color = define:NMapColors|INTERNATIONAL_ORGANIZATION_LEADER_COLOR
38join_defensive_wars_always = {
39scope:target ?= {
40this = root.international_organization_target
}
}
43join_offensive_wars_always = {
44scope:target ?= {
45this = root.international_organization_target
}
47trigger_if = {
48limit = {
49exists = scope:casus_belli
}
}
}
55can_declare_war = {
56always = yes
}
59modifier = {
}
62target_modifier = {
63monthly_complacency = -0.05
}
66potential_target_trigger = {
67has_countries_with_near_coalition_grade_antagonism = yes
}
70can_target_trigger = {
71has_countries_with_coalition_grade_antagonism = yes
}
80can_leave_trigger = {
81OR = {
82not = {
82exists = scope:target
}
83not = {
83is_at_war_with = scope:target
}
}
}
87auto_disband_trigger = {
88or = {
89total_members < 1
90not = {
90country_exists = scope:target
}
}
}
94auto_leave_trigger = {
95trigger_if = {
96limit = {
96exists = scope:target
}
97or = {
102and = {
103not = {
103is_at_war_with = scope:target
}
104or = {
105giving_scripted_relation = {
106type = relation_type:anti_coalition_treaty
107target = scope:target
}
109has_truce_with = scope:target
110is_subject_or_below_of = scope:target
111scope:target = {
112is_subject_or_below_of = root
}
114in_union_with = scope:target
116antagonism = {
117target = scope:target
118value < 30
}
}
}
}
}
124trigger_else = {
125always = yes
}
}
143ai_desire_to_join = {
144add = {
145desc = "AT_WAR_TRIGGER" Ведёт Concept
146if = {
147limit = {
148is_at_war_with = scope:target
}
150value = 20
}
}
153add = {
154desc = "game_concept_antagonism" Неприязнь
155scope:target = {
156value = prev_antagonism_towards_this
}
}
160if = {
161limit = {
162exists = scope:recipient
}
166scope:recipient ?= {
167add = {
168desc = "CURRENT_SIZE_COMPARED_TO_TARGET" Относительный размер
169value = "organization_strength_relative_to_country(scope:target|yes)"
170add = -5
171multiply = -25
}
}
}
177if = {
178limit = {
179NOT = {
179exists = scope:recipient
}
}
181add = {
182desc = "CURRENT_SIZE_COMPARED_TO_TARGET" Относительный размер
183value = "relative_strength(scope:target)"
184add = -0.5
185multiply = 40
}
}
189add = {
190desc = "DISTANCE_TO_TARGET" Расстояние
191scope:target = {
192value = "border_distance_to(root)"
193multiply = -0.5
}
}
197if = {
198limit = {
199scope:target = {
200border_distance_to(root) > 300
}
}
203add = -1000
}
206add = {
207desc = "OPINION" Мнение
208value = "opinion(scope:target)"
209multiply = -0.5
210max = 0
}
}
214ai_desire_to_allow_new_member = {
215add = {
216desc = "WE_WANT_THE_ORGANIZATION_TO_GROW" Мы хотим развивать Concept
217value = 20
}
}