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.
Casus belli (7)
Events (21)
- … Advancements
fp2_struggle.1002 - … of Opportunity
hunt.7410 - … of Opportunity
hunt.7411 - … of Opportunity
hunt.7412 - A …' Fate
fp3_yearly.8890 - Abducted!
abduct_outcome.5001
15 more
- An Acidic Accident
fp3_yearly.8021 - An Epic Unfinished
commission_epic.6005 - Concerned …
intrigue_dread_special.1301 - Cut Short
hunt.0085 - Doomsday Preachers
epidemic_events.5904 - Dreams of Destruction
fp2_struggle.1050 - Ghazi Gone Bad
fp3_yearly.8000 - Hail to the …
coronation_events.1023 - Hunted
hunt.4009 - Hunted
hunt.4010 - Roaming, Raving
epidemic_events.5906 - Soul of Iron
fp2_struggle.1010 - The Loose End
bp2_yearly.5000 - trait_specific_interactions.0152
- Usury against Unity
fp3_clan.8000
Scripted effects inside an event file (2)
- diarch_coup_attempt_imprison_liege_effect
- overthrow_regent_scheme_success_effect
Scripted effects (3)
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.