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

Scripted effect

get_potential_enemies_effect

get_potential_enemies_effect = { CHARACTER = … LISTNAME = … }

game/common/scripted_effects/00_relation_effects.txt, line 751 (65 lines). Parameters: $CHARACTER$, $LISTNAME$.

get_potential_enemies_effect is a scripted effect in Crusader Kings III, written at line 751 of its file. A call passes 2 parameters: CHARACTER and LISTNAME. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.

The comment above it in the file

Makes a list of characters who are classified as potential enemies
Parameters
CHARACTER - The character whose enemies are being found
LISTNAME - The name of the list

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (65 lines of game script)
get_potential_enemies_effect = {
	$CHARACTER$ = {
		every_vassal = {
			limit = {
				is_powerful = yes
				opinion = {
					target = $CHARACTER$
					value <= 0
				}
				NOT = { is_in_list = $LISTNAME$ }
			}
			add_to_list = $LISTNAME$
		}
		every_relation = {
			type = rival
			limit = {
				NOT = { is_in_list = $LISTNAME$ }
			}
			add_to_list = $LISTNAME$
		}
		if = {
			limit = {
				top_liege != this
				liege = {
					opinion = {
						target = $CHARACTER$
						value <= 0
					}
					NOT = {
						is_in_list = $LISTNAME$
					}
				}
			}
			liege = {
				add_to_list = $LISTNAME$
			}
		}
		if = {
			limit = {
				top_liege = this
			}
			every_neighboring_top_liege_realm_owner = {
				limit = {
					NOT = { is_allied_to = $CHARACTER$ }
					OR = {
						opinion = {
							target = $CHARACTER$
							value <= 20
						}
						AND = {
							opinion = {
								target = $CHARACTER$
								value <= 50
							}
							has_any_cb_on = $CHARACTER$
						}
					}
					NOT = { is_in_list = $LISTNAME$ }
				}
				add_to_list = $LISTNAME$
			}
		}
		#Potential Heirs that do not like you
	}
}

As written in game/common/scripted_effects/00_relation_effects.txt.

Where it is used

No file of common/, events/ or history/ calls it.

Source: game/common/scripted_effects/00_relation_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?