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

Scripted effect

undirected_ghw_recipient_selection_on_death_effect

undirected_ghw_recipient_selection_on_death_effect = yes

game/common/scripted_effects/00_religious_interaction_effects.txt, line 698 (115 lines). No parameters.

undirected_ghw_recipient_selection_on_death_effect is a scripted effect in Crusader Kings III, written at line 698 of its file. It takes no parameters: undirected_ghw_recipient_selection_on_death_effect = yes. The game's script calls it in 1 place, among them great_holy_war.0024 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_religious_interaction_effects.txt.

What it does

  • If

    Then

    • scope:the_faith.great_holy_war:
      • set_designated_winner = scope:target_kingdom.holder

    Else if

    Then

    • scope:the_faith.great_holy_war:
      • set_designated_winner = scope:ghw_claimant

    Otherwise

    • scope:the_faith.great_holy_war:
      • reset_designated_winner = yes

• 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 (115 lines of game script)
undirected_ghw_recipient_selection_on_death_effect = {
	#Prioritize Holder of the target_kingdom.
	#Then Claimants of the target_kingdom.
	#And so forth...
	if = { #The Kingdom is held by a member of the Faith, the Crusade is attempting to restore some of its provinces.
		limit = {
			scope:target_kingdom = {
				holder ?= {
					this.faith = scope:the_faith
					NOR = {
						has_trait = excommunicated
						has_trait = incapable
						has_trait = devoted
						this = root
					}
				}
			}
		}
		scope:the_faith.great_holy_war = {
			set_designated_winner = scope:target_kingdom.holder
		}
		scope:target_kingdom.holder = {
			save_scope_as = ghw_claimant
		}
	}
	else_if = { #Claimants of the King-title belonging to the Faith exist.
		limit = {
			scope:target_kingdom = {
				any_claimant = {
					this.faith = scope:the_faith
					NOR = {
						has_trait = excommunicated
						has_trait = incapable
						has_trait = devoted
						this = root
					}
				}
			}
		}
		scope:target_kingdom = {
			random_claimant = {
				limit = {
					this.faith = scope:the_faith
					is_adult = yes
					has_trait = zealous
					NOR = {
						has_trait = excommunicated
						has_trait = incapable
						has_trait = devoted
						this = root
					}
					rite = { rite_has_dominant_ruling_gender = prev }
					reverse_opinion = {
						target = scope:ghw_sponsor
						value >= 0
					}
				}
				alternative_limit = {
					this.faith = scope:the_faith
					is_adult = yes
					NOR = {
						has_trait = excommunicated
						has_trait = incapable
						has_trait = devoted
						this = root
					}
					rite = { rite_has_dominant_ruling_gender = prev }
					reverse_opinion = {
						target = scope:ghw_sponsor
						value >= 0
					}
				}
				alternative_limit = {
					this.faith = scope:the_faith
					is_adult = yes
					NOR = {
						has_trait = excommunicated
						has_trait = incapable
						has_trait = devoted
						this = root
					}
					rite = { rite_has_dominant_ruling_gender = prev }
				}
				alternative_limit = {
					this.faith = scope:the_faith
					NOR = {
						has_trait = excommunicated
						has_trait = incapable
						has_trait = devoted
						this = root
					}
					rite = { rite_has_dominant_ruling_gender = prev }
				}
				alternative_limit = {
					this.faith = scope:the_faith
					NOR = {
						has_trait = excommunicated
						has_trait = incapable
						has_trait = devoted
						this = root
					}
				}
				save_scope_as = ghw_claimant
			}
		}
		scope:the_faith.great_holy_war = {
			set_designated_winner = scope:ghw_claimant
		}
	}
	else = { #Else leave Open: the Recepient of the top contributor gets it.
		scope:the_faith.great_holy_war = {
			reset_designated_winner = yes
		}
	}
}

As written in game/common/scripted_effects/00_religious_interaction_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/00_religious_interaction_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?