Требование присоединения
Взаимодействие с державойИзменено в этой версии

Требование присоединения

rtr_demand_annexationin_game/common/country_interactions/rtr_demand_annexation.txt:3

Давно разделённая импения должна объединиться. Пусть все склонятся перед нашей властью!

ТребуетРегиональное превосходствоПовод для войныselect triggerУкрощение мятежниковПовод для войныselect triggerКитайДержаваallow, potential, reject effect, select trigger«Красные повязки»Международное объединениеpotentialДоступна добродетельностьТип модификатораeffectЕсть повод для войны «Восстание „Красных повязок“»Тип модификатораallow, potentialВосстание «Красных повязок»Ситуацияpotentialrtr_yuan_allegianceПеременнаяaccept

Определениеin_game/common/country_interactions/rtr_demand_annexation.txt:3

4type = diplomacy
5category = CATEGORY_HOSTILE_ACTIONS
7ai_tick = monthly
8ai_tick_frequency = 6
9automation_tick = never
10automation_tick_frequency = 12
12block_when_at_war = yes
14cooldown = {
15type = rtr_demand_annexation
16years = 3
}
19price = price:rtr_demand_annexation_price
21potential = {
22is_situation_active = situation:red_turban_rebellions
23scope:actor = {
24OR = {
}
}
}
32allow = {
33scope:actor = {
34OR = {
35tag = CHI
36AND = {
}
}
}
}
44select_trigger = {
45looking_for_a = country
46target_flag = recipient
47name = "rtr_demand_annexation_select_title" Выберите Concept
48none_available_msg_key = "rtr_demand_annexation_no_countries"
49allow_self = no
50column = {
51data = name
}
53column = {
54data = population
}
56visible = {
57capital ?= {
58is_discovered_by = scope:actor
59OR = {
60region = region:east_china_region
61region = region:north_china_region
62region = region:south_china_region
63region = region:west_china_region
}
}
66NOT = {
66country_type = pop
}
67within_diplomatic_range = scope:actor
68NOT = {
68is_at_war_with = scope:actor
}
69NOT = {
69is_fighting_war_together_with = scope:actor
}
70NOT = {
70is_subject_of = scope:actor
}
71NOT = {
71ruler ?= scope:actor.ruler
}
}
73enabled = {
74trigger_if = {
75limit = {
76scope:actor = {
76tag = CHI
}
}
78NOT = {
79scope:actor = {
80has_casus_belli_of_type_on = {
}
}
}
}
87trigger_else = {
88NOT = {
89scope:actor = {
90has_casus_belli_of_type_on = {
}
}
}
}
}
}
100effect = {
101scope:actor = {
102if = {
103limit = {
103exists = scope:recipient
}
104annex_country = {
105country = scope:recipient
106reason = Diplomatic
107transfer = yes
}
}
110else = {
111custom_tooltip = rtr_demand_annexation_tt Выбранная Concept будет Concept
}
113if = {
114limit = {
}
115add_righteousness = righteousness_weak_penalty (-10)
}
}
}
119reject_effect = {
120scope:actor = {
121if = {
122limit = {
122tag = CHI
}
123add_casus_belli = {
124target = scope:recipient
}
}
128else = {
129add_casus_belli = {
}
}
}
}
137ai_will_do = {
138add = 200
139if = {
140limit = {
141scope:actor ?= {
142has_variable = rtr_yuan_allegiance
}
144scope:actor.var:rtr_yuan_allegiance > 0
145scope:actor.var:rtr_yuan_allegiance < 50
}
147subtract = 150
}
149if = {
150limit = {
150exists = scope:recipient
}
151if = {
152limit = {
153scope:actor ?= {
}
157scope:recipient = {
}
}
162subtract = 200
}
164add = {
165value = "scope:actor.opinion(scope:recipient)"
166divide = -5
}
168add = {
169value = "scope:actor.country_economical_base"
170subtract = "scope:recipient.country_economical_base"
171multiply = 1
172min = -200
173max = 200
}
175if = {
176limit = {
176scope:recipient = {
176is_allied_with = {
176target = scope:actor
}
}
}
177subtract = 100
}
179if = {
180limit = {
180scope:recipient = {
180has_truce_with = scope:actor
}
}
181subtract = 100
}
183if = {
184limit = {
184scope:recipient = {
184NOT = {
184is_neighbor_of = scope:actor
}
}
}
185subtract = 1000
}
}
}
190accept = {
191add = {
192desc = "DIPLOREASON_BASE" Базовое значение
193value = -200
}
195if = {
196limit = {
197scope:actor ?= {
198has_variable = rtr_yuan_allegiance
}
200scope:actor.var:rtr_yuan_allegiance > 0
201scope:actor.var:rtr_yuan_allegiance < 50
}
203add = {
204desc = "RTR_NEUTRALS_TITLE" Нейтральные
205value = 150
}
}
208if = {
209limit = {
209exists = scope:recipient
}
210if = {
211limit = {
212scope:actor ?= {
}
216scope:recipient = {
}
}
221add = {
222desc = "RTR_LOYALISTS_TITLE" Верные сторонники CL GEN
223value = 200
}
}
226subtract = {
227desc = "game_concept_opinion" Мнение
228value = "scope:actor.opinion(scope:recipient)"
229divide = -5
}
231add = {
232desc = "DIPLOREASON_ECONOMICAL_BASE_DIFFERENCE" Разница в Concept
233value = "scope:actor.country_economical_base"
234subtract = "scope:recipient.country_economical_base"
235multiply = 1
236min = -200
237max = 200
}
239if = {
240limit = {
240scope:recipient = {
240is_allied_with = {
240target = scope:actor
}
}
}
241add = {
242desc = "HAS_ALLIANCE" Союз
243value = 100
}
}
}
}