Scripted trigger
is_visitable_relation_trigger
is_visitable_relation_trigger = { CHARACTER = … }game/common/scripted_triggers/00_courtier_guest_management_triggers.txt, line 760 (12 lines). Parameters: $CHARACTER$.
is_visitable_relation_trigger is a scripted trigger in Crusader Kings III, written at line 760 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 1 place, among them select_pool_to_move_to_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_courtier_guest_management_triggers.txt.
The comment above it in the file
POOL TRIGGERS###
What it checks
- Their capital province:
NOT = { has_relation_rival = $CHARACTER$ }$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 (12 lines of game script)
is_visitable_relation_trigger = {
capital_province ?= { local_pool_is_full_trigger = no }
NOR = {
this = $CHARACTER$.host
has_relation_rival = $CHARACTER$
}
$CHARACTER$ = {
NOT = {
var:last_visited_ruler ?= prev
}
}
}As written in game/common/scripted_triggers/00_courtier_guest_management_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_visitable_relation_trigger.
Scripted effects (1)
Source: game/common/scripted_triggers/00_courtier_guest_management_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.