Scripted trigger
neighboring_county_or_viking_conquest_trigger
neighboring_county_or_viking_conquest_trigger = { CHARACTER = … }game/common/scripted_triggers/00_war_and_peace_triggers.txt, line 1044 (36 lines). Parameters: $CHARACTER$.
neighboring_county_or_viking_conquest_trigger is a scripted trigger in Crusader Kings III, written at line 1044 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 3 places, among them County Conquest (casus belli), Duchy Conquest (casus belli) and Invasion (casus belli). Patch 1.20.1.2, from game/common/scripted_triggers/00_war_and_peace_triggers.txt.
The comment above it in the file
Non-vikings will for the AI just assert it's legal, as the target titles should already have fallen back to only allowing land and sea borders
What it checks
One of these
If
$CHARACTER$ = { can_use_viking_invasion_cbs_trigger = yes }
Then
- Is coastal County
One of these
$CHARACTER$ = { is_ai = no }or
is_neighbor_to_realm = $CHARACTER$or
$CHARACTER$ = { … }
Otherwise
$CHARACTER$ = { is_ai = no }
or
Any neighboring county › Their holder:target_is_same_character_or_above = $CHARACTER$
• 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 (36 lines of game script)
neighboring_county_or_viking_conquest_trigger = {
OR = {
trigger_if = {
limit = {
$CHARACTER$ = {
can_use_viking_invasion_cbs_trigger = yes
}
}
is_coastal_county = yes
OR = {
$CHARACTER$ = { is_ai = no }
is_neighbor_to_realm = $CHARACTER$
$CHARACTER$ = {
NOT = {
any_sub_realm_title = {
tier = tier_county
NOT = {
is_connected_to = {
target = $CHARACTER$.capital_province.county
}
}
}
}
}
}
}
trigger_else = {
$CHARACTER$ = { is_ai = no }
}
any_neighboring_county = {
holder = {
target_is_same_character_or_above = $CHARACTER$
}
}
}
}As written in game/common/scripted_triggers/00_war_and_peace_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls neighboring_county_or_viking_conquest_trigger.
Casus belli (3)
Source: game/common/scripted_triggers/00_war_and_peace_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.