Просьба поддержать лигу
Взаимодействие с державойНовое в этой версии

Просьба поддержать лигу

grant_italian_league_sponsorin_game/common/country_interactions/italian_league_sponsor_interactions.txt:1

Мы предложим державе поддержать нашу лигу, что позволит ей присоединиться в качестве мецената, который ежемесячно предоставляет нам дукаты и рекрутов.

ТребуетБалканская лигаМеждународное объединениеacceptФранцузская лигаМеждународное объединениеaccept, select triggerИмперская лигаМеждународное объединениеaccept, select triggerИберийская лигаМеждународное объединениеaccept, select triggerПервая итальянская лигаМеждународное объединениеeffect, potential, select triggerВторая итальянская лигаМеждународное объединениеeffect, potential, select triggerТретья итальянская лигаМеждународное объединениеeffect, potential, select trigger

Определениеin_game/common/country_interactions/italian_league_sponsor_interactions.txt:1

2type = diplomacy
3category = CATEGORY_FRIENDLY_ACTIONS
5ai_limit_per_check = 1
7potential = {
8scope:actor = {
9OR = {
10is_leader_of_international_organization = international_organization:italian_league_1
11is_leader_of_international_organization = international_organization:italian_league_2
12is_leader_of_international_organization = international_organization:italian_league_3
}
}
}
17allow = {
18scope:recipient ?= {
19monthly_manpower > {
20value = scope:actor.monthly_manpower
21multiply = 0.33
}
23monthly_income_total > {
24value = scope:actor.monthly_income_total
25multiply = 0.33
}
}
}
30select_trigger = {
31looking_for_a = country
32target_flag = recipient
33name = "choose_country" Выберите Concept:
34column = {
35data = name
}
37visible = {
38is_rebel_country = no
39NOR = {
40is_member_of_international_organization = international_organization:italian_league_1
41is_member_of_international_organization = international_organization:italian_league_2
42is_member_of_international_organization = international_organization:italian_league_3
43is_member_of_international_organization = international_organization:foreign_league_france
44is_member_of_international_organization = international_organization:foreign_league_hre
45is_member_of_international_organization = international_organization:foreign_league_iberia
46capital.region = region:italy_region
}
}
49enabled = {
50NOT = {
50is_at_war_with = scope:actor
}
}
}
54effect = {
55scope:actor = {
56random_international_organizations_member_of = {
65add_country_to_international_organization = scope:recipient
66international_organization_add_special_status = {
68country = scope:recipient
}
}
}
}
74ai_will_do = {
76add = {
77desc = "[situation_tension|e]"
78value = situation:italian_wars.var:iw_tension
79multiply = 0.5
}
83add = {
84desc = "game_concept_monthly_income_trade_and_tax"
85value = scope:recipient.monthly_income_trade_and_tax
86multiply = 0.1
}
90add = {
91desc = "game_concept_monthly_manpower"
92value = scope:recipient.monthly_manpower
93multiply = 20
}
97add = {
98desc = "game_concept_opinion"
99value = "scope:recipient.opinion(scope:actor)"
100multiply = 0.3
}
102add = {
103desc = "game_concept_trust"
104value = "scope:recipient.trust(scope:actor)"
105multiply = 0.2
}
109if = {
110limit = {
110scope:recipient = {
110is_great_power = yes
}
}
111add = {
112desc = "[great_power|e]"
113value = 20
}
}
116if = {
117limit = {
117scope:recipient = {
117is_regional_power = yes
}
}
118add = {
119desc = "[regional_power|e]"
120value = 10
}
}
125if = {
126limit = {
128leader_country ?= {
129OR = {
130scope:recipient = {
130is_rival_of = prev
}
131scope:recipient = {
131is_enemy_of = prev
}
}
}
}
}
136add = {
137desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_FRANCE" Соперник или враг французской лиги
138value = 15
}
}
141if = {
142limit = {
144leader_country ?= {
145OR = {
146scope:recipient = {
146is_rival_of = prev
}
147scope:recipient = {
147is_enemy_of = prev
}
}
}
}
}
152add = {
153desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_HRE" Соперник или враг имперской лиги
154value = 15
}
}
157if = {
158limit = {
160leader_country ?= {
161OR = {
162scope:recipient = {
162is_rival_of = prev
}
163scope:recipient = {
163is_enemy_of = prev
}
}
}
}
}
168add = {
169desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_IBERIA" Соперник или враг иберийской лиги
170value = 15
}
}
173if = {
174limit = {
176leader_country ?= {
177OR = {
178scope:recipient = {
178is_rival_of = prev
}
179scope:recipient = {
179is_enemy_of = prev
}
}
}
}
}
184add = {
185desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_BALKAN" Соперник или враг балканской лиги
186value = 15
}
}
191if = {
192limit = {
193scope:recipient = {
194relative_strength = {
195target = scope:actor
196value < 0.5
}
}
}
200subtract = {
201desc = "DIPLOREASON_TOO_WEAK_TO_SPONSOR"
202value = 1000
}
}
207if = {
208limit = {
209scope:recipient = {
210OR = {
211is_rival_of = scope:actor
212is_enemy_of = scope:actor
}
}
}
216subtract = {
217desc = "DIPLOREASON_RIVAL_OR_ENEMY"
218value = 1000
}
}
}
223accept = {
225add = {
226desc = "BASE_VALUE" Базовое значение: Валенсия
227value = -50
}
231add = {
232desc = "[opinion|e]"
233value = "scope:recipient.opinion(scope:actor)"
234multiply = 0.5
}
236add = {
237desc = "[trust|e]"
238scope:recipient = {
239value = "trust(scope:actor)"
240divide = 4
}
}
247if = {
248limit = {
249scope:recipient = {
250relative_strength = {
251target = scope:actor
252value > 0.5
}
}
}
256add = {
257desc = "[country_strength|e]"
258value = "scope:recipient.relative_strength(scope:actor)"
259multiply = 20
260max = 30
}
}
263else = {
264subtract = {
265desc = "[country_strength|e]"
266value = 1000
}
}
271if = {
272limit = {
272scope:recipient = {
272monthly_balance > 5
}
}
273add = {
274desc = "COMFORTABLE_MONTHLY_BALANCE" Хороший ежемесячный доход
275value = scope:recipient.monthly_balance
276multiply = -0.5
277min = -20
}
}
282if = {
283limit = {
283scope:recipient = {
283monthly_manpower > 0.1
}
}
284add = {
285desc = "COMFORTABLE_MANPOWER" Избыток рекрутов в резерве
286value = scope:recipient.monthly_manpower
287multiply = -50
288min = -20
}
}
293if = {
294limit = {
296leader_country ?= {
297OR = {
298scope:recipient = {
298is_rival_of = prev
}
299scope:recipient = {
299is_enemy_of = prev
}
}
}
}
}
304add = {
305desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_FRANCE" Соперник или враг французской лиги
306value = 10
}
}
311if = {
312limit = {
314leader_country ?= {
315OR = {
316scope:recipient = {
316is_rival_of = prev
}
317scope:recipient = {
317is_enemy_of = prev
}
}
}
}
}
322add = {
323desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_HRE" Соперник или враг имперской лиги
324value = 10
}
}
329if = {
330limit = {
332leader_country ?= {
333OR = {
334scope:recipient = {
334is_rival_of = prev
}
335scope:recipient = {
335is_enemy_of = prev
}
}
}
}
}
340add = {
341desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_IBERIA" Соперник или враг иберийской лиги
342value = 10
}
}
347if = {
348limit = {
350leader_country ?= {
351OR = {
352scope:recipient = {
352is_rival_of = prev
}
353scope:recipient = {
353is_enemy_of = prev
}
}
}
}
}
358add = {
359desc = "RIVAL_OR_ENEMY_OF_FOREIGN_LEAGUE_BALKAN" Соперник или враг балканской лиги
360value = 10
}
}
}