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

Scripted effect

set_relation_rival_effect

set_relation_rival_effect = { REASON = … TARGET = … }

game/common/scripted_effects/00_relation_effects.txt, line 1411 (42 lines). Parameters: $REASON$, $TARGET$.

set_relation_rival_effect is a scripted effect in Crusader Kings III, written at line 1411 of its file. A call passes 2 parameters: REASON and TARGET. The game's script calls it in 211 places, among them Call to War (interaction), Castrate Kin (interaction) and Dismiss Vizier (interaction). Patch 1.21.0, from game/common/scripted_effects/00_relation_effects.txt.

The comment above it in the file

Save these scopes separately before running the effect if you need them for the rival reason:
scope:relationship_reason_involved_character
scope:relationship_reason_province

What it does

  • If a check the game hides passes: the same again (1 line)
    Else if a check the game hides passes: the same again (1 line)
    Else if a check the game hides passes: the same again (1 line)

    Otherwise

  • gg_relation_catalyst_effect = { ACTOR = scope:srre_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_rival_hre_pope }

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (42 lines of game script)
set_relation_rival_effect = {
	save_scope_as = srre_root_scope
	$TARGET$ = { save_scope_as = target_char }
	if = {
		limit = {
			exists = scope:relationship_reason_involved_character
			exists = scope:relationship_reason_province
		}
		set_relation_rival = {
			reason = $REASON$
			target = scope:target_char
			involved_character = scope:relationship_reason_involved_character
			province = scope:relationship_reason_province
		}
	}
	else_if = {
		limit = { exists = scope:relationship_reason_province }
		set_relation_rival = {
			reason = $REASON$
			target = scope:target_char
			province = scope:relationship_reason_province
		}
	}
	else_if = {
		limit = { exists = scope:relationship_reason_involved_character }
		set_relation_rival = {
			reason = $REASON$
			target = scope:target_char
			involved_character = scope:relationship_reason_involved_character
		}
	}
	else = {
		set_relation_rival = {
			reason = $REASON$
			target = scope:target_char
		}
	}
	#Is the GG situation applicable?
	show_as_tooltip = {
		gg_relation_catalyst_effect = { ACTOR = scope:srre_root_scope RECIPIENT = scope:target_char CATALYST = catalyst_rival_hre_pope }
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls set_relation_rival_effect — the first 120 of 211.

Activity pulse actions (3)

  • carnival_rivalry
  • courtiers_became_rivals
  • festival_rivalry

Events (111)

105 more

Source: game/common/scripted_effects/00_relation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?