Взаимодействие c персонажем

Выдача аклья замуж

aclla_distributionin_game/common/character_interactions/aclla_distribution.txt:1

Concept выйдет замуж за правителя выбранной Concept. Это действие окажет на провинцию следующий эффект:
Аклья выдана замуж

ТребуетГорожанеСословиеselect trigger 1ПростолюдиныСословиеselect trigger 1Запрет на бракТип модификатораselect trigger 1Возможен брак с акльейТип модификатораpotentialАклья выдана замужСтатический модификаторselect trigger 2

2is_consort_action = no
3on_own_nation = yes
4sound = "event:/SFX/UI/Character/Unique/sfx_ui_character_arrange_marriage"
5message = yes
6potential = {
7scope:actor = {
}
}
10ai_tick = daily
11ai_tick_frequency = 90
12allow = {
}
15select_trigger = {
16looking_for_a = character
17source = actor
18target_flag = recipient
19name = "choose_character" Выберите Concept:
20column = {
21data = name
}
23visible = {
24is_female = yes
25is_alive = yes
26is_consort = no
27is_ruler = no
28is_heir = no
}
30enabled = {
31is_adult = yes
32has_available_marriage_slot = yes
34NOT = {
}
35NOT = {
}
}
}
39select_trigger = {
40looking_for_a = province
41source = actor
42target_flag = target
43name = "aclla_distribution_select_title" Выберите, в какую провинцию отправить аклью
44none_available_msg_key = "aclla_distribution_no_provinces"
45column = {
45data = name
}
46column = {
46data = population
}
47column = {
47data = satisfaction
}
48visible = {
49not = {
49has_province_modifier = aclla_distributed
}
50any_location_in_province = {
51owner = scope:actor
}
}
}
56effect = {
57if = {
58limit = {
59exists = scope:target
}
61scope:target = {
62add_province_modifier = {
63modifier = aclla_distributed
64years = 20
65mode = add_and_extend
}
}
}
69if = {
70limit = {
71exists = scope:recipient
}
73scope:recipient = {
74add_character_modifier = {
74modifier = banned_from_cabinet
74years = 20
74mode = add_and_extend
}
75add_character_modifier = {
75modifier = block_marriage
75years = 20
75mode = add_and_extend
}
76add_character_modifier = {
76years = 20
76mode = add_and_extend
}
}
}
}
81ai_will_do = {
83add = {
84if = {
85limit = {
86scope:target = {
87province_satisfaction < 0
}
}
90value = scope:target.province_satisfaction
91multiply = -5
}
}
95add = {
96if = {
97limit = {
98scope:recipient = {
}
}
102value = 100
}
}
}