CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · By God Alone files

bestow_title_shared_effect

bestow_title_shared_effect = yes

game/common/scripted_effects/pam_effects.txt, line 12764 (127 lines). No parameters.

bestow_title_shared_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 12764 of its file. It takes no parameters: bestow_title_shared_effect = yes. The game's script calls it in 2 places, among them bestow_title_effect (scripted effect) and request_unformed_title_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

The comment above it in the file

Creates the unheld title and hands it to its new holder. Runs in the new holder's scope; callers must save scope:bestowed_title_holder and scope:bestowing_cleric first, since the clergy and the ruler swap roles between the bestowal and the petition.

What it does

  • scope:target: Gains the … Title (bestowed title holder)
  • scope:target:
    • If title tier exactly Empire › scope:bestowed_title_holder: Opinion: Received Empire (+50)
    • Else, if title tier exactly Kingdom › scope:bestowed_title_holder: Opinion: Received Kingdom (+25)
    • Else, if title tier exactly Duchy › scope:bestowed_title_holder: Opinion: Received Duchy (+15)
  • If

    • Their government is not a Theocratic-type Government
    • top_participant_group:the_christian_church:
      • One of these

        • participant_group_type = christian_clerical_main_power_rulers
        • or

          participant_group_type = christian_regular_main_power_rulers
    • The Christian Church: The current phase counts “A prelate single-handedly bestowes a Kingdom upon a secular Ruler”
    • scope:target.tier >= tier_kingdom

    Then

    • If

      • scope:target.tier >= tier_empire

      Then

      Otherwise

    Else if

    • Government is a Theocratic-type Government
    • top_participant_group:the_christian_church:
      • One of these

        • participant_group_type = christian_clerical_main_power_rulers
        • or

          participant_group_type = christian_regular_main_power_rulers
    • The Christian Church: The current phase counts “A prelate bestowes a Kingdom to the Clergy”

    Then

  • If

    • scope:bestowing_cleric: Is played by a person

    Then

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (120 lines of game script)
bestow_title_shared_effect = {
	create_title_and_vassal_change = {
		type = created
		save_scope_as = ecclesiastical_bestow_title_change
		add_claim_on_loss = no
	}
	scope:target = {
		change_title_holder = {
			holder = scope:bestowed_title_holder
			change = scope:ecclesiastical_bestow_title_change
		}
	}
	resolve_title_and_vassal_change = scope:ecclesiastical_bestow_title_change

	scope:target ?= {
		if = {
			limit = { tier = tier_empire }
			scope:bestowed_title_holder = {
				add_opinion = {
					modifier = received_title_empire
					target = scope:bestowing_cleric
					opinion = 50
				}
			}
		}
		else_if = {
			limit = { tier = tier_kingdom }
			scope:bestowed_title_holder = {
				add_opinion = {
					modifier = received_title_kingdom
					target = scope:bestowing_cleric
					opinion = 25
				}
			}
		}
		else_if = {
			limit = { tier = tier_duchy }
			scope:bestowed_title_holder = {
				add_opinion = {
					modifier = received_title_duchy
					target = scope:bestowing_cleric
					opinion = 15
				}
			}
		}
	}
    if = {
    	limit = {
    		NOT = { government_has_flag = government_is_theocracy }
    		top_participant_group:the_christian_church ?= {
				OR = {
					participant_group_type = christian_clerical_main_power_rulers
					participant_group_type = christian_regular_main_power_rulers
				}
			}
			situation:the_christian_church ?= {
				situation_top_has_catalyst = catalyst_hof_bestowed_title
			}
			scope:target.tier >= tier_kingdom
    	}
    	if = {
    		limit = {
    			exists = scope:target
    			scope:target.tier >= tier_empire
    		}
    		situation:the_christian_church = {
    			trigger_situation_catalyst = catalyst_hof_bestowed_title_major
    		}
    	}
    	else = {
    		situation:the_christian_church = {
    			trigger_situation_catalyst = catalyst_hof_bestowed_title
    		}
    	}
    }
    else_if = {
    	limit = {
    		government_has_flag = government_is_theocracy
    		top_participant_group:the_christian_church ?= {
				OR = {
					participant_group_type = christian_clerical_main_power_rulers
					participant_group_type = christian_regular_main_power_rulers
				}
			}
			situation:the_christian_church ?= {
				situation_top_has_catalyst = catalyst_hof_bestowed_title_clergy
			}
    	}
    	if = {
    		limit = {
    			exists = scope:target
    			scope:target.tier >= tier_empire
    		}
    		situation:the_christian_church = {
    			trigger_situation_catalyst = catalyst_hof_bestowed_title_clergy_major
    		}
    	}
    	else_if = {
    		limit = {
    			exists = scope:target
    			scope:target.tier >= tier_kingdom
    		}
    		situation:the_christian_church = {
    			trigger_situation_catalyst = catalyst_hof_bestowed_title_clergy
    		}
    	}
    	else = {
    		situation:the_christian_church = {
    			trigger_situation_catalyst = catalyst_hof_bestowed_title_clergy_minor
    		}
    	}
    }
	scope:bestowing_cleric = { save_scope_as = cleric }
    if = {
    	limit = {
    		scope:bestowing_cleric = {
    			is_ai = no
    		}
    	}
    	ecclesiastical_title_bestowing_clerical_hesitation_effect = yes

As written in game/common/scripted_effects/pam_effects.txt.

The first 120 of its 127 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 12764.

Where it is used

Every place in common/, events/ and history/ that calls bestow_title_shared_effect.

Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?