Scripted trigger
befriend_scope_is_close_to_target_trigger
befriend_scope_is_close_to_target_trigger = yesgame/common/scripted_triggers/00_scheme_befriend_triggers.txt, line 30 (20 lines). No parameters.
befriend_scope_is_close_to_target_trigger is a scripted trigger in Crusader Kings III, written at line 30 of its file. It takes no parameters: befriend_scope_is_close_to_target_trigger = yes (or no). The game's script calls it in 2 places, among them befriend_ongoing_3009_spouse_trigger (local trigger) and befriend_ongoing_3013_spouse_trigger (local trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_scheme_befriend_triggers.txt.
What it checks
One of these
is_close_or_extended_family_of = scope:targetor
is_consort_of = scope:targetor
has_relation_friend = scope:targetor
All of these
One of these
court_owner = scope:targetor
liege ?= scope:targetor
Any vassal:this = scope:target
- Opinion from target more than 30
• 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 (20 lines of game script)
befriend_scope_is_close_to_target_trigger = {
OR = {
is_close_or_extended_family_of = scope:target
is_consort_of = scope:target
has_relation_friend = scope:target
AND = {
OR = {
court_owner = scope:target
liege ?= scope:target
any_vassal = {
this = scope:target
}
}
reverse_opinion = {
target = scope:target
value > 30
}
}
}
}As written in game/common/scripted_triggers/00_scheme_befriend_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls befriend_scope_is_close_to_target_trigger.
Scripted triggers inside an event file (2)
- befriend_ongoing_3009_spouse_trigger
- befriend_ongoing_3013_spouse_trigger
Source: game/common/scripted_triggers/00_scheme_befriend_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.