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

Scripted effect

journey_find_or_create_excellent_court_position_effect

journey_find_or_create_excellent_court_position_effect = { COURT_POSITION = … LOCATION = … }

game/common/scripted_effects/00_journey_effects.txt, line 84 (57 lines). Parameters: $COURT_POSITION$, $LOCATION$.

journey_find_or_create_excellent_court_position_effect is a scripted effect in Crusader Kings III, written at line 84 of its file. A call passes 2 parameters: COURT_POSITION and LOCATION. The game's script calls it in 1 place, among them Poor … (event bp3_journey.1900). Patch 1.20.1.2, from game/common/scripted_effects/00_journey_effects.txt.

What it does

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

The script as written (57 lines of game script)
journey_find_or_create_excellent_court_position_effect = {
	#if = {
	#	limit = {
	#		any_pool_character = {
	#			province = $LOCATION$
	#			culture = $LOCATION$.culture
	#			aptitude = {
	#				court_position = $COURT_POSITION$
	#				value >= 4
	#			}
	#			is_available_healthy_ai_adult = yes
	#			$COURT_POSITION$_validity_trigger = { EMPLOYER = root }
	#		}
	#	}
	#	random_pool_character = {
	#		province = $LOCATION$
	#		limit = {
	#			culture = $LOCATION$.culture
	#			aptitude = {
	#				court_position = $COURT_POSITION$
	#				value >= 4
	#			}
	#			is_available_healthy_ai_adult = yes
	#			$COURT_POSITION$_validity_trigger = { EMPLOYER = root }
	#		}
	#		save_scope_as = local_character
	#	}
	#}
	#else = {
		create_character = {
			template = $COURT_POSITION$_template
			location = $LOCATION$
			culture = $LOCATION$.culture
			faith = $LOCATION$.faith
			rite = $LOCATION$.rite
			save_scope_as = local_character
		}
		scope:local_character = {
			add_character_flag = {
				flag = silently_disappear_me
				years = 1
			}
		}
	#}
	if = {
		limit = {
			any_court_position_holder = {
				type = $COURT_POSITION$
			}
		}
		random_court_position_holder = {
			type = $COURT_POSITION$
			save_scope_as = current_holder
		}
	}
	add_character_flag = $COURT_POSITION$
}

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

Where it is used

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

Events (1)

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