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

Scripted effect

councillor_leaving_effect

councillor_leaving_effect = yes

game/common/scripted_effects/00_councillor_effects.txt, line 732 (54 lines). No parameters.

councillor_leaving_effect is a scripted effect in Crusader Kings III, written at line 732 of its file. It takes no parameters: councillor_leaving_effect = yes. The game's script calls it in 1 place, among them on_councillor_left (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_councillor_effects.txt.

What it does

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

The script as written (54 lines of game script)
councillor_leaving_effect = {
	if = {
		limit = {
			NOT = { is_councillor_of = scope:old_employer } 
			scope:old_employer = { government_allows = council }
		}
		scope:councillor = {
			# Councillor leaving because of marriage
			if = {
				limit = {
					is_playable_character = no
					is_married = yes
					primary_spouse = { is_playable_character = yes }
				}
				scope:old_employer = {
					send_interface_message = {
						type = msg_left_council_position
						title = councillor_leaving_court_message_title
						desc = councillor_leaving_court_marriage_notification
						left_icon = scope:councillor
						right_icon = scope:councillor.primary_spouse
					}
				}
			}
			# Councillor leaving because of title inheritance
			else_if = {
				limit = {
					is_playable_character = yes
					NOT = { is_vassal_of = scope:old_employer }
				}
				scope:old_employer = {
					send_interface_message = {
						type = msg_left_council_position
						title = councillor_leaving_court_message_title
						desc = councillor_leaving_court_landed_notification
						left_icon = scope:councillor
						right_icon = scope:councillor.primary_title
					}
				}
			}
			# Generic fallback
			else = {
				scope:old_employer = {
					send_interface_message = {
						type = msg_left_council_position
						title = councillor_leaving_court_message_title
						desc = councillor_leaving_court_generic_fallback_notification
						left_icon = scope:councillor
					}
				}
			}
		}
	}
}

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

Where it is used

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

On actions (the game's own hooks) (1)

  • on_councillor_left

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