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

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)

5 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?