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

Подкуп для вступления в лигу

italian_wars_bribe_countryin_game/common/country_interactions/italian_wars_country_interactions.txt:167

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

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

Определениеin_game/common/country_interactions/italian_wars_country_interactions.txt:167

168type = diplomacy
169category = CATEGORY_ECONOMY_ACTIONS
171ai_limit_per_check = 1
173ai_prerequisite = {
174monthly_balance > 5
175num_loans < 1
176prestige > 10
177trigger_if = {
178limit = {
179prestige < 20
}
}
183trigger_else = {
}
}
188potential = {
189trigger_if = {
190limit = {
192situation_is_active = yes
193has_variable = iw_tension
}
}
197situation_is_active = yes
}
}
201trigger_else = {
201always = no
}
}
204allow = {
205scope:actor = {
205at_war = no
}
206scope:actor = {
}
}
209cooldown = {
210type = italian_wars_bribe_country
211years = 5
}
214price = price:bribe_voter_for_policy
215price_modifier = {
216add = {
217value = 1
218desc = "BASE_VALUE" Базовое значение: Валенсия
}
220if = {
221limit = {
222scope:actor = {
222is_leader_of_international_organization = international_organization:italian_league_1
}
}
224add = {
225desc = "size_of_our_league_tt" Размер нашей лиги
227multiply = 0.1
228subtract = 0.1
}
}
231if = {
232limit = {
233scope:actor = {
233is_leader_of_international_organization = international_organization:italian_league_2
}
}
235add = {
236desc = "size_of_our_league_tt" Размер нашей лиги
238multiply = 0.1
239subtract = 0.1
}
}
242if = {
243limit = {
244scope:actor = {
244is_leader_of_international_organization = international_organization:italian_league_3
}
}
246add = {
247desc = "size_of_our_league_tt" Размер нашей лиги
249multiply = 0.1
250subtract = 0.1
}
}
253if = {
254limit = {
255scope:actor = {
255is_leader_of_international_organization = international_organization:foreign_league_france
}
}
257add = {
258desc = "size_of_our_league_tt" Размер нашей лиги
260multiply = 0.1
261subtract = 0.1
}
}
264if = {
265limit = {
266scope:actor = {
266is_leader_of_international_organization = international_organization:foreign_league_hre
}
}
268add = {
269desc = "size_of_our_league_tt" Размер нашей лиги
271multiply = 0.1
272subtract = 0.1
}
}
275if = {
276limit = {
277scope:actor = {
277is_leader_of_international_organization = international_organization:foreign_league_iberia
}
}
279add = {
280desc = "size_of_our_league_tt" Размер нашей лиги
282multiply = 0.1
283subtract = 0.1
}
}
286if = {
287limit = {
288scope:actor = {
288is_leader_of_international_organization = international_organization:foreign_league_balkan
}
}
290add = {
291desc = "size_of_our_league_tt" Размер нашей лиги
293multiply = 0.1
294subtract = 0.1
}
}
}
298payee = scope:recipient
301select_trigger = {
302looking_for_a = country
303target_flag = recipient
304name = "italian_wars_bribe_country_select_country" Кого подкупить для вступления в нашу лигу?
305none_available_msg_key = "italian_wars_bribe_country_no_countries"
306pre_evaluation_sort_value = {
308if = {
308limit = {
308is_during_bankruptcy = yes
}
308add = 100
}
309if = {
309limit = {
309monthly_balance < 0
}
309add = 20
}
}
311pre_evaluation_number_to_evaluate_fully = 3
312column = {
313data = name
}
315column = {
316data = population
}
318visible = {
319capital.region = region:italy_region
320NOT = {
320this = scope:actor
}
321NOT = {
}
322NOT = {
322has_cooldown = join_a_league
}
323NOT = {
324any_international_organizations_member_of = {
325has_member = root
326international_organization_has_leader = yes
327leader_country = scope:actor
328OR = {}
}
}
}
340enabled = {
341at_war = no
342is_subject = no
343custom_tooltip = {
344text = is_not_leader_of_any_leagues_tt Не является лидером какой-либо лиги
}
347scope:actor = {
348gold > root.monthly_income_total
}
}
}
354select_trigger = {
355looking_for_a = value
356target_flag = target_value
357name = "italian_wars_bribe_country_select_gold_amount" Сколько Concept предложить?
358min = 1
359max = scope:actor.gold
360step = scope:recipient.monthly_income_total
361default = {
362value = scope:recipient.monthly_income_total
363multiply = 6
}
365ai_override_value = {
366value = scope:recipient.monthly_income_total
367multiply = 6
}
}
371effect = {
372if = {
373limit = {
373exists = scope:recipient
}
374custom_tooltip = {
375text = recipient_wont_be_able_to_join_another_league_tt Recipient НЕ смоEnd Gegu присоединиться к другой лиге в течение 2 лет
376scope:recipient = {
377add_cooldown = {
378type = join_a_league
379years = 2
}
}
}
383if = {
384limit = {
384exists = scope:target_value
}
385scope:actor = {
386add_gold = {
387value = scope:target_value
388multiply = -1
}
}
391scope:recipient = {
392add_gold = scope:target_value
}
}
395scope:actor = {
396random_international_organizations_member_of = {
397limit = {
398leader_country ?= scope:actor
399OR = {}
}
409add_country_to_international_organization = scope:recipient
}
}
}
}
414reject_effect = {
415if = {
416limit = {
416exists = scope:recipient
}
417scope:actor = {
418add_opinion = {
419target = scope:recipient
420modifier = opinion_rejected_bribe_voter_for_policy
}
}
}
}
426ai_will_do = {
427if = {
428limit = {
428exists = scope:recipient
}
429add = {
430value = scope:recipient.num_locations_owned_or_owned_by_subjects_or_below
431desc = "location number of recipient and subjects"
}
}
435if = {
436limit = {
437exists = scope:target_value
}
440add = {
441desc = "OFFERED_GOLD" Предложенные Concept
442value = {
443value = scope:target_value
444divide = 4
445subtract = {
446value = scope:recipient.monthly_income_total
447multiply = 3
}
}
}
}
}
454diplo_chance = {
455base = 5
456in_debt = 5
}
459accept = {
460if = {
461limit = {
462scope:recipient = {
463monthly_balance < 0
}
}
466add = {
467desc = "IN_DEFICIT" В державе дефицит
468value = 10
}
}
471if = {
472limit = {
473scope:recipient = {
474is_during_bankruptcy = yes
}
}
477add = {
478desc = "IS_BANKRUPT_TOOLTIP" Concept
479value = 1000
}
}
482if = {
483limit = {
483exists = scope:target_value
}
484add = {
485desc = "OFFERED_GOLD" Предложенные Concept
486value = {
487value = scope:target_value
488divide = 8
}
}
}
494add = {
495desc = "TARGET_LEADER_TRUST" Их Concept к нам
496scope:actor = {
497scope:recipient = {
498value = this_trust_of_prev
499multiply = 0.25
}
}
}
503subtract = {
504desc = "TARGET_LEADER_RELATIVE_STRENGTH" Concept относительно нашей
505value = 25
506multiply = "scope:recipient.relative_strength(scope:actor)"
}
508add = {
509desc = "TARGET_LEADER_OPINION" Их Concept о нас
510scope:actor = {
511scope:recipient = {
512value = this_opinion_of_prev
513multiply = 0.15
}
}
}
519if = {
520limit = {
520scope:recipient = {
}
}
521if = {
522limit = {
522scope:recipient = {
522is_member_of_international_organization = international_organization:italian_league_1
}
}
523save_temporary_scope_as = league_leader_current
}
}
525else_if = {
526limit = {
526scope:recipient = {
526is_member_of_international_organization = international_organization:italian_league_2
}
}
527save_temporary_scope_as = league_leader_current
}
}
529else_if = {
530limit = {
530scope:recipient = {
530is_member_of_international_organization = international_organization:italian_league_3
}
}
531save_temporary_scope_as = league_leader_current
}
}
533if = {
534limit = {
534exists = scope:league_leader_current
}
535subtract = {
536desc = "LEAGUE_LEADER_CURRENT_TRUST" Их Concept к CL DAT
537scope:league_leader_current = {
538scope:recipient = {
539value = this_trust_of_prev
540multiply = 0.25
}
}
}
544subtract = {
545desc = "RELATIVE_STRENGTH_LEAGUE_LEADER_CURRENT" Concept относительно мощи CL GEN
546value = 25
547multiply = "scope:recipient.relative_strength(scope:league_leader_current)"
}
549add = {
550desc = "LEAGUE_LEADER_CURRENT_OPINION" Их Concept Predlog Obo CL PREP
551scope:league_leader_current = {
552scope:recipient = {
553value = this_opinion_of_prev
554multiply = -0.15
}
}
}
}
}
}