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

Scripted effect

hard_imprison_character_effect

hard_imprison_character_effect = { IMPRISONER = … TARGET = … }

game/common/scripted_effects/00_prison_effects.txt, line 1961 (55 lines). Parameters: $IMPRISONER$, $TARGET$.

hard_imprison_character_effect is a scripted effect in Crusader Kings III, written at line 1961 of its file. A call passes 2 parameters: IMPRISONER and TARGET. The game's script calls it in 33 places, among them Establish Sōryō Administration (casus belli), Independence (casus belli) and Independence War (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/00_prison_effects.txt.

What it does

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

The script as written (55 lines of game script)
hard_imprison_character_effect = {
	$TARGET$ = { save_temporary_scope_as = new_target }
	$IMPRISONER$ = { save_temporary_scope_as = new_imprisoner }

	

	scope:new_imprisoner = {
		imprison = {
			target = scope:new_target
			type = house_arrest
		}
	}

	imprison_hostage_tooltip_effect = { WHO = scope:new_target }

	hidden_effect = {
		#Disband any scheme you have against them
		scope:new_imprisoner = {
			if = {
				limit = {
					any_scheme = {
						is_scheme_target_type = character
						scheme_target_character = scope:new_target
					}
				}
				every_scheme = {
					limit = {
						is_scheme_target_type = character
						scheme_target_character = scope:new_target
					}
					end_scheme = yes
				}
			}
		}

		#Send break up event if they are your lover
		scope:new_imprisoner = {
			if = {
				limit = {
					has_relation_lover = scope:new_target
					NOT = { has_relation_rival = scope:new_target } #To enable really strange love stories
				}
				scope:new_target = {
					trigger_event = {
						id = lover.0101
						days = { 14 30 }
					}
				}
			}
		}

		#Remove them as guardian/ward for any courtiers and give feedback about this
		imprison_remove_ward_guardian_effect = { IMPRISONER = scope:new_imprisoner  PRISONER = scope:new_target }
	}
}

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

Where it is used

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

Events (21)

15 more

Scripted effects inside an event file (2)

  • diarch_coup_attempt_imprison_liege_effect
  • overthrow_regent_scheme_success_effect

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