Scripted effect
successful_befriend_potential_friend_effect
successful_befriend_potential_friend_effect = { CHARACTER = … }game/common/scripted_effects/00_scheme_scripted_effects.txt, line 14410 (43 lines). Parameters: $CHARACTER$.
successful_befriend_potential_friend_effect is a scripted effect in Crusader Kings III, written at line 14410 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 11 places, among them … Friendship (event befriend_outcome.0002), Befriend: An Enjoyable Evening (event befriend_outcome.2001) and Befriend: An Evening's Company (event befriend_outcome.2003). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (43 lines of game script)
successful_befriend_potential_friend_effect = {
$CHARACTER$ = {
if = { #Always leads to a potential friendship
limit = {
NOR = {
has_relation_potential_friend = root
has_relation_friend = root
}
}
if = { #Remove potential rival relation if you have it
limit = {
has_relation_potential_rival = root
}
remove_relation_potential_rival = root
}
set_relation_potential_friend = root
}
if = {
limit = {
number_of_traits_in_common = {
target = root
value >= 3
}
}
$CHARACTER$ = {
add_opinion = {
modifier = friendliness_opinion
target = root
opinion = 30
}
}
}
else = {
$CHARACTER$ = {
add_opinion = {
modifier = friendliness_opinion
target = root
opinion = 20
}
}
}
}
}As written in game/common/scripted_effects/00_scheme_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls successful_befriend_potential_friend_effect.
Events (11)
- … Friendship
befriend_outcome.0002 - Befriend: An Enjoyable Evening
befriend_outcome.2001 - Befriend: An Evening's Company
befriend_outcome.2003 - Befriend: Ending Strife
befriend_outcome.2005 - Befriend: Fruitful Diplomacy
befriend_outcome.2201 - Befriend: Kindred Minds
befriend_outcome.2004
5 more
- Befriend: Mutual Understanding
befriend_outcome.2006 - Befriend: Political Appeasement
befriend_outcome.6006 - Befriend: Shared Sorrow is Half Sorrow
befriend_outcome.9800 - Befriend: The Dance
befriend_outcome.2002 - Befriend: The Estate
befriend_outcome.2301
Source: game/common/scripted_effects/00_scheme_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.