Scripted trigger
basic_allowed_to_imprison_character_trigger
basic_allowed_to_imprison_character_trigger = { CHARACTER = … }game/common/scripted_triggers/00_scripted_triggers.txt, line 223 (28 lines). Parameters: $CHARACTER$.
basic_allowed_to_imprison_character_trigger is a scripted trigger in Crusader Kings III, written at line 223 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 5 places, among them … Imprison (interaction), Imprison (interaction) and Punish Criminal (interaction). 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 (28 lines of game script)
basic_allowed_to_imprison_character_trigger = { #Only to be used in is_shown for imprison interaction and similar
save_temporary_scope_as = allowed_imprisoner
$CHARACTER$ = {
OR = {
AND = {
target_is_liege_or_above = scope:allowed_imprisoner
trigger_if = {
limit = { is_foreign_court_guest = yes }
host = {
target_is_liege_or_above = scope:allowed_imprisoner
}
}
}
is_foreign_court_or_pool_guest_of = scope:allowed_imprisoner
AND = {
# EP3 EVICTION
has_government = landless_adventurer_government
reverse_has_opinion_modifier = {
target = scope:allowed_imprisoner
modifier = eviction_ignored_opinion
}
}
}
NOT = {
is_imprisoned_by = scope:allowed_imprisoner
}
}
}As written in game/common/scripted_triggers/00_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls basic_allowed_to_imprison_character_trigger.
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.