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

Scripted effect · Legends of the Dead files

grab_appropriate_chronicler_effect

grab_appropriate_chronicler_effect = yes

game/common/scripted_effects/06_dlc_ce1_legend_effects.txt, line 21 (100 lines). No parameters.

grab_appropriate_chronicler_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 21 of its file. It takes no parameters: grab_appropriate_chronicler_effect = yes. The game's script calls it in 48 places, among them A … Blessing (event legend_spread_events.5005), A Bloody Heirloom (event legend_spread_events.5015) and A Deathbed Confession (event legend_spread_events.8060). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (100 lines of game script)
grab_appropriate_chronicler_effect = {
	if = { #If the culture would have relied on poets for this we grab them first
		limit = {
			OR = {
				culture = { 
					OR = {
						has_cultural_tradition = tradition_fp1_northern_stories
						has_cultural_parameter = poet_trait_gives_bonuses
						has_cultural_tradition = tradition_storytellers
						has_cultural_tradition = tradition_chanson_de_geste 
					}
				}
				rite = {
					trait_is_virtue_rite = lifestyle_poet
				}
			}
			any_court_position_holder = {
				type = court_poet_court_position
				is_available_ai_adult = yes
			}
		}
		random_court_position_holder = {
			type = court_poet_court_position
			limit = {
				is_available_ai_adult = yes
			}
			save_scope_as = chronicler
		}
	}		
	else_if = { #Otherwise we go for the Chronicler first
		limit = {
			any_court_position_holder = {
				type = chronicler_court_position
				is_available_ai_adult = yes
			}
		}
		random_court_position_holder = {
			type = chronicler_court_position
			limit = {
				is_available_ai_adult = yes
			}
			save_scope_as = chronicler
		}
	}
	else_if = {
		limit = {
			any_court_position_holder = {
				type = court_poet_court_position
				is_available_ai_adult = yes
			}
		}
		random_court_position_holder = {
			type = court_poet_court_position
			limit = {
				is_available_ai_adult = yes
			}
			save_scope_as = chronicler
		}
	}
	else_if = {
		limit = {
			any_court_position_holder = {
				type = court_musician_court_position
				is_available_ai_adult = yes
			}
		}
		random_court_position_holder = {
			type = court_musician_court_position
			limit = {
				is_available_ai_adult = yes
			}
			save_scope_as = chronicler
		}
	}
	else = {
		ordered_courtier = {
			limit = {
				this != root
				is_available_ai_adult = yes
			}
			order_by = {
				value = diplomacy
				if = {
					limit = {
						OR = {
							has_trait = lifestyle_poet
							has_trait = journaller
						}
					}
					add = 10
				}
				if = {
					limit = { is_spouse_of = root  }
					add = -2
				}
			}
			save_scope_as = chronicler
		}
	}
}

As written in game/common/scripted_effects/06_dlc_ce1_legend_effects.txt.

Where it is used

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

Events (48)

42 more

Source: game/common/scripted_effects/06_dlc_ce1_legend_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?