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

Scripted effect

basic_gained_court_position_effect

basic_gained_court_position_effect = yes

game/common/scripted_effects/00_court_position_effects.txt, line 7 (44 lines). No parameters.

basic_gained_court_position_effect is a scripted effect in Crusader Kings III, written at line 7 of its file. It takes no parameters: basic_gained_court_position_effect = yes. The game's script calls it in 51 places, among them Bookmaker (court position), Champion Charioteer (court position) and Cherbi (court position). Patch 1.20.1.2, from game/common/scripted_effects/00_court_position_effects.txt.

The comment above it in the file

Basic effect for gaining a court position

What it does

  • scope:employee:
    • If

      • has_opinion_modifier = { modifier = revoked_court_position_opinion target = scope:liege }

      Then

      • remove_opinion = { modifier = revoked_court_position_opinion target = scope:liege }
    • If

      • Is a ruler
      • has_vassal_stance = courtly

      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 (44 lines of game script)
basic_gained_court_position_effect = {
	scope:employee = {
		if = {
			limit = {
				has_opinion_modifier = {
					modifier = revoked_court_position_opinion
					target = scope:liege
				}
			}
			remove_opinion = {
				modifier = revoked_court_position_opinion
				target = scope:liege
			}
		}
		if = {
			limit = {
				is_ruler = yes
				has_vassal_stance = courtly
			}
			add_opinion = {
				target = scope:liege
				modifier = courtly_court_position_opinion
			}
		}
		if = {
			limit = {
				scope:liege = { is_ai = no }
			}
			set_variable = {
				name = court_8311_cooldown
				years = 2
			}
		}

		# Unity impact
		#add_clan_unity_interaction_effect = {
		#	CHARACTER = scope:liege
		#	TARGET = this
		#	VALUE = 0 #minor_unity_gain
		#	DESC = clan_unity_assigned_to_court_position.desc
		#	REVERSE_NON_HOUSE_TARGET = yes
		#}
	}
}

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

Where it is used

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

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