Scripted trigger
advanced_allowed_to_imprison_character_trigger
advanced_allowed_to_imprison_character_trigger = { CHARACTER = … }game/common/scripted_triggers/00_scripted_triggers.txt, line 252 (46 lines). Parameters: $CHARACTER$.
advanced_allowed_to_imprison_character_trigger is a scripted trigger in Crusader Kings III, written at line 252 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 2 places, among them … Imprison (interaction) and allowed_to_imprison_character_trigger (scripted trigger). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_scripted_triggers.txt.
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (46 lines of game script)
advanced_allowed_to_imprison_character_trigger = {
save_temporary_scope_as = allowed_imprisoner
$CHARACTER$ = {
save_temporary_scope_as = allowed_prisoner
is_imprisoned = no
NOT = { is_at_war_with = scope:allowed_imprisoner }
custom_description = {
text = "character_interactions_imprison_recently_ransomed"
object = scope:allowed_prisoner
NOT = {
has_opinion_modifier = {
target = scope:allowed_imprisoner
modifier = ransomed_from_prison
}
}
}
NOT = { has_strong_hook = scope:allowed_imprisoner }
custom_tooltip = {
text = hostage_travelling_tt
NOT = { exists = var:hostage_travelling_to_warden }
}
trigger_if = {
limit = {
has_government = landless_adventurer_government
is_ruler = yes
}
scope:allowed_imprisoner = { is_landed = yes }
reverse_has_opinion_modifier = {
target = scope:allowed_imprisoner
modifier = eviction_ignored_opinion
}
domicile.domicile_location.county ?= { target_is_de_facto_liege_or_above = scope:allowed_imprisoner.primary_title }
}
}
scope:allowed_imprisoner = {
custom_description = {
text = "character_interactions_imprison_ally_without_reason"
object = scope:allowed_prisoner
OR = {
NOT = { is_allied_to = scope:allowed_prisoner }
has_imprisonment_reason = scope:allowed_prisoner
is_spouse_of = scope:allowed_prisoner
}
}
}
}As written in game/common/scripted_triggers/00_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls advanced_allowed_to_imprison_character_trigger.
Character interactions (1)
Scripted triggers (1)
Source: game/common/scripted_triggers/00_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.