CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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)

6 more

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.

Spotted a mistake on this page?