
Action
Grant Ruler a Divorce
The strength of our clerical offices is determined by such acts as granting the ability to petition for a legal divorce. This would undoubtedly allow us more diplomatic and dynastic maneuverability.
Definitionin_game/common/generic_actions/church_power.txt:481
482type = religious
484sound = UI_action_religion_generic
486ai_tick = daily
487ai_tick_frequency = 80
489automation_tick = monthly
490automation_tick_frequency = 1
491player_automated_category = religiousdoctrines
493message = national_church_action
495potential = {
}
498allow = {
499scope:actor = {
500has_ruler = yes
501ruler ?= {
502num_of_spouses > 0
}
}
}
507price = price:national_church_power
509select_trigger = {
510looking_for_a = religion
511source = actor
512target_flag = recipient
513name = "choose_religion" Choose the Religion:
514column = {
515data = name
}
517visible = {
518has_tag = church_aspects
}
}
522select_trigger = {
523show_if = {
524scope:actor.ruler ?= {
525num_of_spouses > 1
}
}
528looking_for_a = character
529source = actor
530target_flag = target
531name = "choose_consort_to_divorce_from" Choose Consort to divorce from
532column = {
533data = character_info
}
535interaction_source_list = {
536scope:actor.ruler ?= {
537every_spouse = {
538limit = {
539is_alive = yes
}
541add_to_list = source
}
}
}
545visible = {
}
547enabled = {
}
}
551effect = {
552scope:actor = {
553if = {
554limit = {
554exists = scope:target
}
555ruler ?= {
555divorce_character = scope:target
}
}
557else = {
558ruler ?= {
558divorce_character = first_spouse
}
}
}
}
563ai_will_do = {
564add = -50
565add = {
566if = {
567limit = {
568scope:actor = {
569modifier:care_about_producing_heirs = yes
570has_ruler = yes
571ruler = {
572location.owner ?= scope:actor
}
574trigger_if = {
575limit = {
575exists = scope:target
}
576scope:target = {
577is_pregnant = no
578age_in_years > 35
}
}
581trigger_else = {
582ruler = {
583first_spouse = {
584is_pregnant = no
585age_in_years > 35
}
}
588heir ?= {
589NOT = {
590father ?= scope:actor.ruler
}
}
}
}
}
596add = {
597value = {
598value = 100
}
}
}
}
}