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_revoked_court_position_effect

basic_revoked_court_position_effect = yes

game/common/scripted_effects/00_court_position_effects.txt, line 96 (49 lines). No parameters.

basic_revoked_court_position_effect is a scripted effect in Crusader Kings III, written at line 96 of its file. It takes no parameters: basic_revoked_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 losing a court position

What it does

  • scope:employee:
    • If

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

      Then

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

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

      Then

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

      a check the game hides

      Then

  • pam_celestial_hierarchy_fire_fulfillment_effect = yes
  • employed_booner_invalidation_effect = { EMPLOYEE = scope:employee LIEGE = scope:liege }

• 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 (49 lines of game script)
basic_revoked_court_position_effect = {
	scope:employee = {
		if = {
			limit = {
				has_opinion_modifier = {
					modifier = courtly_court_position_opinion
					target = scope:liege
				}
			}
			remove_opinion = {
				modifier = courtly_court_position_opinion
				target = scope:liege
			}
		}
		if = {
			limit = {
				has_opinion_modifier = {
					modifier = hired_me_opinion
					target = scope:liege
				}
			}
			remove_opinion = {
				modifier = hired_me_opinion
				target = scope:liege
			}
		}
		if = {	
			limit = {
				NOT = { has_character_flag = no_revoke_opinion_loss }
			}
			add_opinion = {
				modifier = revoked_court_position_opinion
				target = scope:liege
				opinion = -30
			}
		}

		# Unity impact
		#add_clan_unity_interaction_effect = {
		#	CHARACTER = scope:liege
		#	TARGET = this
		#	VALUE = 0 #minor_unity_loss
		#	DESC = clan_unity_assigned_to_court_position.desc
		#	REVERSE_NON_HOUSE_TARGET = no
		#}
	}
	pam_celestial_hierarchy_fire_fulfillment_effect = yes
	employed_booner_invalidation_effect = { EMPLOYEE = scope:employee LIEGE = scope:liege }
}

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_revoked_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?