Scripted trigger
should_avoid_hostile_action_against_due_to_personal_relations_trigger
should_avoid_hostile_action_against_due_to_personal_relations_trigger = { ACTOR = … RECIPIENT = … }game/common/scripted_triggers/00_interaction_triggers.txt, line 393 (31 lines). Parameters: $ACTOR$, $RECIPIENT$.
should_avoid_hostile_action_against_due_to_personal_relations_trigger is a scripted trigger in Crusader Kings III, written at line 393 of its file. A call passes 2 parameters: ACTOR and RECIPIENT. The game's script calls it in 12 places, among them … Imprison (interaction), … Retract Vassal (interaction) and … Revoke Title (interaction). Patch 1.20.1.2, from game/common/scripted_triggers/00_interaction_triggers.txt.
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (31 lines of game script)
should_avoid_hostile_action_against_due_to_personal_relations_trigger = {
$ACTOR$ = {
OR = {
has_any_good_relationship_with_character_trigger = { CHARACTER = $RECIPIENT$ }
is_allied_to = $RECIPIENT$
opinion = {
target = $RECIPIENT$
value >= very_high_positive_opinion
}
# Plus filter out heirs & other family, unless we hate 'em.
AND = {
OR = {
is_close_or_extended_family_of = $RECIPIENT$
any_spouse = { this = $RECIPIENT$ }
is_heir_of = $RECIPIENT$
}
NOR = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = $RECIPIENT$ }
exposed_cheating_on_spouse_trigger = { SPOUSE = $RECIPIENT$ }
AND = {
is_ai = yes
opinion = {
target = $RECIPIENT$
value <= low_negative_opinion
}
}
}
}
}
}
}As written in game/common/scripted_triggers/00_interaction_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls should_avoid_hostile_action_against_due_to_personal_relations_trigger.
Character interactions (10)
Events (1)
Scripted modifiers (AI weights) (1)
- intermediary_liege_will_accept_standard_modifiers
Source: game/common/scripted_triggers/00_interaction_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.