Scripted effect
failed_befriend_opinion_critical_change_effect
failed_befriend_opinion_critical_change_effect = { CHARACTER = … }game/common/scripted_effects/00_scheme_scripted_effects.txt, line 14514 (28 lines). Parameters: $CHARACTER$.
failed_befriend_opinion_critical_change_effect is a scripted effect in Crusader Kings III, written at line 14514 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 12 places, among them … Friendship (event befriend_outcome.0002), Befriend: A Cold Meeting (event befriend_outcome.8201) and Befriend: A Mistake (event befriend_outcome.8003). 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 (28 lines of game script)
failed_befriend_opinion_critical_change_effect = {
$CHARACTER$ = {
add_opinion = {
modifier = disastrous_befriend_attempt_opinion
target = root
}
if = {
limit = {
NOR = {
has_relation_potential_rival = root
has_relation_rival = root
}
}
hidden_effect = { set_relation_potential_rival = root }
}
else_if = { #If you already are potential rivals, you have a chance of becoming Rivals
limit = {
has_relation_potential_rival = root
NOT = { has_relation_rival = root }
}
hidden_effect = { remove_relation_potential_rival = root }
set_relation_rival = {
target = root
reason = rival_disastrous_befriend_attempt
}
}
}
}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 failed_befriend_opinion_critical_change_effect.
Events (12)
- … Friendship
befriend_outcome.0002 - Befriend: A Cold Meeting
befriend_outcome.8201 - Befriend: A Mistake
befriend_outcome.8003 - Befriend: A Mistake
befriend_outcome.8005 - Befriend: An Awkward Meal
befriend_outcome.8001 - Befriend: Improper Groveling
befriend_outcome.8009
6 more
- Befriend: Irreconcilable Differences
befriend_outcome.8004 - Befriend: Irreconcilable Politics
befriend_outcome.8006 - Befriend: Priestly Disagreements
befriend_outcome.8008 - Befriend: The Dance
befriend_outcome.8002 - Befriend: The Estate
befriend_outcome.8301 - Befriend: The Price of Trust
befriend_outcome.8007
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.