
Action
Obtain Marriage
We can close our ties to the Imperial and Kuge families by getting a Marriage with them with one of their minor members.
Definitionin_game/common/generic_actions/religious_factions.txt:138
139type = religiousfaction
141sound = UI_action_religion_generic
143potential = {
144scope:actor.religion = {
145has_religious_factions = yes
}
}
149allow = {
}
152automation_tick = never
153automation_tick_frequency = 12
155ai_tick = monthly
156ai_tick_frequency = 12
158select_trigger = {
159looking_for_a = religion
160source = actor
161target_flag = recipient
162name = "choose_religion" Choose the Religion:
163column = {
164data = name
}
}
168select_trigger = {
169looking_for_a = character
170source = actor
171target_flag = target
172name = "marry_kuge" Choose a Character to marry into a minor Kuge
173none_available_msg_key = "no_valid_characters"
174column = {
175data = character_info
}
}
183price = price:get_marriage_from_imperial_court
185cooldown = {
186type = get_marriage_from_imperial_court
187years = 2
}
190effect = {
191if = {
192limit = {
192exists = scope:target
}
193if = {
194limit = {
194scope:target = {
194is_female = no
}
}
195scope:actor ?= {
196create_character = {
197culture = scope:actor.culture
198religion = scope:actor.religion
199age = 18
200female = yes
202marry_character = scope:target
}
}
}
206else = {
207scope:actor ?= {
208create_character = {
209culture = scope:actor.culture
210religion = scope:actor.religion
211age = 18
212female = no
214marry_character = scope:target
}
}
}
}
219custom_tooltip = marriage_from_imperial_court_tt We can marry one of our Characters into a minor Kuge
}
225ai_will_do = {
227if = {
228limit = {
229scope:actor ?= {
230has_ruler = yes
}
}
233add = {
234value = scope:actor.ruler.age_in_years
235subtract = 22
236multiply = 5
}
240add = {
241value = scope:recipient.random_integer
242modulo = 1000
243multiply = -10
}
}
247if = {
248limit = {
249scope:actor ?= {
249has_heir = yes
}
}
251add = {
252value = scope:actor.heir.age_in_years
253subtract = 22
254multiply = 5
}
258add = {
259value = scope:recipient.random_integer
260modulo = 1000
261multiply = -10
}
}
264if = {
265limit = {
266exists = scope:target
}
268if = {
269limit = {
269scope:target = {
269is_ruler = yes
}
}
270add = 50
}
272if = {
273limit = {
273scope:target = {
273is_heir = yes
}
}
274add = 20
}
276if = {
277limit = {
277scope:target = {
277has_dynasty = yes
}
}
278add = 5
}
}
}