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

Scripted effect · All Under Heaven files

coup_ceremonial_liege_scheme_failure_effect

coup_ceremonial_liege_scheme_failure_effect = yes

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 3667 (88 lines). No parameters.

coup_ceremonial_liege_scheme_failure_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3667 of its file. It takes no parameters: coup_ceremonial_liege_scheme_failure_effect = yes. The game's script calls it in 2 places, among them Seize Throne: Coveted Crown (event scheme_critical_moments.2925) and Seize Throne: Hopes Dashed (event scheme_critical_moments.2923). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

What it does

• 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 (88 lines of game script)
coup_ceremonial_liege_scheme_failure_effect = {
	scope:owner.top_liege.primary_title.var:administrative_ui_special_title = { save_scope_as = ceremonial_title }
	scope:scheme = { end_scheme = yes }
 	#Add Watchful Modifier to the target
	scope:target = {
		save_scope_as = background_dungeon_scope
		save_scope_as = background_courtyard_scope
		save_scope_as = background_throne_room_scope
		show_as_tooltip = {
			add_character_modifier = {
				modifier = watchful_modifier
				days = watchful_modifier_duration
			}
		}
	}
	scope:owner = {
		create_character_memory = {
			type = seized_throne_failed_memory
			participants = { deposed = scope:target }
		}
		ordered_memory = {
			memory_type = seized_throne_failed_memory
			order_by = memory_creation_date
			if = {
				limit = {
					NOT = { exists = var:ceremonial_title }
				}
				set_variable = {
					name = ceremonial_title
					value = scope:ceremonial_title
				}
			}
		}
		add_character_flag = was_abducted_block_notification_event
		create_title_and_vassal_change = {
			type = conquest
			save_scope_as = change
			add_claim_on_loss = yes
		}
		every_held_title = {
			limit = {
				is_landless_type_title = no
				tier > tier_barony
			}
			change_title_holder_include_vassals = {
				holder = scope:target
				change = scope:change
			}
		}
		resolve_title_and_vassal_change = scope:change
	}
	hidden_effect = { change_prison_type = dungeon }
	rightfully_imprison_character_less_verbose_effect = {
		TARGET = scope:owner
		IMPRISONER = scope:target
	}
	attempted_coup_ceremonial_liege_opinion_effect = {
		VICTIM = scope:target
		PLOTTER = scope:owner
	}
	# If we're a clan this affects unity
	add_clan_unity_interaction_effect = {
		CHARACTER = scope:owner
		TARGET = scope:target
		VALUE = medium_unity_loss
		DESC = clan_unity_coup_ceremonial_liege_attempted.desc
		REVERSE_NON_HOUSE_TARGET = no
	}
	scope:target = {
		create_character_memory = {
			type = throne_seized_failed_memory
			participants = { deposer = scope:owner }
		}
		ordered_memory = {
			memory_type = throne_seized_failed_memory
			order_by = memory_creation_date
			if = {
				limit = {
					NOT = { exists = var:ceremonial_title }
				}
				set_variable = {
					name = ceremonial_title
					value = scope:ceremonial_title
				}
			}
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

Where it is used

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

Events (2)

Source: game/common/scripted_effects/10_dlc_tgp_scripted_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?