Scripted trigger · Friends and Foes files
valid_for_feud_events_with_target_trigger
valid_for_feud_events_with_target_trigger = { TARGET = … }game/common/scripted_triggers/03_bp1_scripted_triggers.txt, line 40 (50 lines). Parameters: $TARGET$.
valid_for_feud_events_with_target_trigger is a scripted trigger in Crusader Kings III, in the Friends and Foes files, written at line 40 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 26 places, among them A … Enemy (event bp1_house_feud.0004), A … Honor (event bp1_house_feud.0013) and A … Pride (event bp1_house_feud.0014). Patch 1.20.1.2, from game/common/scripted_triggers/03_bp1_scripted_triggers.txt.
What it checks
valid_for_feud_events_trigger = yesNOT = { house = $TARGET$.house }If
- Is landed
$TARGET$.house.house_head = { is_landed = yes }
Then
tier_difference = { target = $TARGET$.house.house_head value >= -1 }tier_difference = { target = $TARGET$.house.house_head value <= 1 }
NOT = { is_close_family_of = $TARGET$.house.house_head }NOT = { has_any_good_relationship_with_character_trigger = { CHARACTER = $TARGET$.house.house_head } }If
a check the game hides
Then
NOT = { this.house = $TARGET$.house.house_head.liege.house }
in_diplomatic_range = $TARGET$.house.house_head$TARGET$.house.house_head = { save_temporary_scope_as = target_house_head_temp }
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (50 lines of game script)
valid_for_feud_events_with_target_trigger = {
# General checks
valid_for_feud_events_trigger = yes
# Victim House Head must exist
exists = $TARGET$.house.house_head
# Target House must be different
NOT = { house = $TARGET$.house }
# Ensure target is 'equal'
trigger_if = {
limit = {
is_landed = yes
$TARGET$.house.house_head = { is_landed = yes }
}
tier_difference = {
target = $TARGET$.house.house_head
value >= -1
}
tier_difference = {
target = $TARGET$.house.house_head
value <= 1
}
}
trigger_else = {
NOR = {
highest_held_title_tier > tier_duchy
$TARGET$.house.house_head.highest_held_title_tier > tier_duchy
}
}
NOR = {
# Is not part of same family as target House Head
is_close_family_of = $TARGET$.house.house_head
# Is not friendly with target House Head
has_any_good_relationship_with_character_trigger = { CHARACTER = $TARGET$.house.house_head }
}
# Avoid starting Feuds between Vassals and Lieges, as they are not 'equals'
trigger_if = {
limit = { exists = $TARGET$.house.house_head.liege }
NOR = {
# Is not liege of target House Head
this = $TARGET$.house.house_head.liege
# Does not share house with target's liege
this.house = $TARGET$.house.house_head.liege.house
}
}
# Must be near target House Head
in_diplomatic_range = $TARGET$.house.house_head
# Save scopes for checking against
save_temporary_scope_as = house_head_temp
$TARGET$.house.house_head = { save_temporary_scope_as = target_house_head_temp }
}As written in game/common/scripted_triggers/03_bp1_scripted_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls valid_for_feud_events_with_target_trigger.
Events (18)
- A … Enemy
bp1_house_feud.0004 - A … Honor
bp1_house_feud.0013 - A … Pride
bp1_house_feud.0014 - A Damnable House
bp1_house_feud.0001 - A Maltreated …
bp1_house_feud.0011 - A Vengeful …
bp1_house_feud.0009
12 more
- An Eye for an Eye
bp1_house_feud.0003 - bp1_house_feud.9001
- Crowned Cuckquean
bp1_house_feud.0012 - Danger: No Vacancy
travel_danger_events.5010 - Decapitation
mpo_nomad_events.1011 - Dynastic Solidarity
bp1_house_feud.0002 - ep2_wedding.0957
- Espionage: Murder
spymaster_task.0344 - feast.7102
- Lure of Vendetta
bp1_house_feud.0005 - Smouldering in Captivity
bp1_house_feud.0007 - Unforgivable Treatment
bp1_house_feud.0010
Scripted effects inside an event file (1)
- mpo_nomad_events_1011_heir_resents_effect
Scripted triggers inside an event file (2)
- house_feud_close_family_prison_trigger
- house_feud_competing_claims_trigger
Scripted effects (4)
Scripted triggers (1)
Source: game/common/scripted_triggers/03_bp1_scripted_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.