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

Брак со знатным человеком

marry_noblein_game/common/character_interactions/marry_noble.txt:1

Concept заключит брак с кем-то из местных аристократов.

ТребуетГорожанеСословиеselect trigger 2АристократыСословиеselect trigger 2МонархияФорма правленияpotentialТеократияФорма правленияallow, potentialЛюбой наследник по материПравило престолонаследияpotentialСиньориальные выборыПравило престолонаследияpotential, select trigger 2Не может взаимодействоватьТип модификатораselect trigger 2Вступление в брак только с членами династии сюзеренаТип модификатораselect trigger 2Духовенство не может вступать в бракТип модификатораallowПривлекательность бракаТип модификатораeffectХристианствоРелигиозная группаallow

3sound = UI_action_character_marry_noble
5is_consort_action = yes
6on_own_nation = yes
7context_menu_click_mode = click
12message = yes
15potential = {
16scope:actor = {
17OR = {
}
}
}
26ai_tick = daily
27ai_tick_frequency = 120
29allow = {
30scope:actor = {
31NAND = {
32government_type = government_type:theocracy
33religion = {
}
}
}
}
39select_trigger = {
40looking_for_a = character
41source = actor
42target_flag = recipient
43name = "choose_character" Выберите Concept:
44column = {
45data = name
}
47visible = {
48is_alive = yes
}
50enabled = {
51is_eligible_for_royal_marriage = yes
}
}
55select_trigger = {
56top_widget = marry_noble_character_top
57looking_for_a = character
58source = actor
59target_flag = target
60name = "marry_noble_select_title" Выберите достойную партию
61none_available_msg_key = "marry_noble_no_characters"
62pre_evaluation_sort_value = {
63value = 50
64subtract = age_in_years
}
66pre_evaluation_number_to_evaluate_fully = 10
67column = {
68data = character_info
}
70visible = {
71NOT = {
71is_same_gender = scope:recipient
}
72not = {
72is_spouse_of = scope:recipient
}
74OR = {
76AND = {
77scope:actor = {
}
}
}
81NOT = {
81is_close_relative = scope:recipient
}
85OR = {
87AND = {
89has_dynasty = yes
90OR = {
91owner = {
91any_subject = {
91this = scope:actor
}
}
92dynasty = {
93any_character_in_dynasty = {
94owner = {
94any_subject = {
94this = scope:actor
}
}
}
}
}
}
}
}
}
108effect = {
109if = {
110limit = {
111exists = scope:recipient
112exists = scope:target
}
114scope:recipient = {
115marry_character = scope:target
}
}
119if = {
120limit = {
121scope:actor ?= {
121NOT = {
121has_estate_privilege = estate_privilege:noble_marriage_rights
}
}
}
123scope:actor = {
124add_legitimacy = legitimacy_mild_penalty (-10)
}
}
127if = {
128limit = {
129scope:recipient = character:vij_bukka_raya_sangama
}
131scope:target = {
132add_to_list = bukka_raya_previous_spouses
}
}
137if = {
138limit = {
139scope:target = {
}
}
141scope:actor = {
142add_prestige = {
143value = scope:target.modifier:marriage_desirability
144multiply = 0.5
}
}
}
}
150ai_will_do = {
154add = {
155if = {
156limit = {
157scope:recipient ?= {
158has_available_marriage_slot = no
}
}
161value = -1000
}
}
167add = {
168if = {
169limit = {
170scope:recipient = {
171is_ruler = yes
}
}
174value = scope:recipient.age_in_years
175subtract = 30
176multiply = 5
}
}
180add = {
181if = {
182limit = {
183scope:recipient = {
184OR = {
185is_heir = yes
186AND = {
187exists = father
188father = {
189is_ruler = yes
}
}
192AND = {
193exists = mother
194mother = {
195is_ruler = yes
}
}
}
}
}
201value = scope:recipient.age_in_years
202subtract = 30
203multiply = 5
}
}
207add = {
208if = {
209limit = {
210scope:target = {
211is_female = yes
212age_in_years = 35
}
}
215value = 35
216subtract = scope:target.age_in_years
217multiply = 10
}
}
}