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

Scripted effect

remove_guardian_effect

remove_guardian_effect = { GUARDIAN = … HIDE_OPINION = … RETURN_WARD = … WARD = … }

game/common/scripted_effects/00_education_effects.txt, line 3473 (30 lines). Parameters: $GUARDIAN$, $HIDE_OPINION$, $RETURN_WARD$, $WARD$.

remove_guardian_effect is a scripted effect in Crusader Kings III, written at line 3473 of its file. A call passes 4 parameters: GUARDIAN, HIDE_OPINION, RETURN_WARD and WARD. The game's script calls it in 20 places, among them … Imprison (interaction), Dismiss (interaction) and Imprison (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.

What it does

  • $GUARDIAN$ = { … }
  • If never:
    • $WARD$ = { return_ward_travel_effect = yes }
  • Otherwise:

• 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 (30 lines of game script)
remove_guardian_effect = {
	$GUARDIAN$ = {
		remove_relation_ward = $WARD$
		return_guardian_travel_effect = {
			GUARDIAN = $GUARDIAN$
			WARD = $WARD$
		}
	}
	if = {
		limit = { always = $RETURN_WARD$ }
		$WARD$ = { return_ward_travel_effect = yes }
	}
	if = {
		limit = { always = $HIDE_OPINION$ }
		hidden_effect = {
			guardian_remove_opinion_effect = {
				GUARDIAN = $GUARDIAN$
				WARD = $WARD$
				WARD_LIEGE = $WARD$.liege
			}
		}
	}
	else = {
		guardian_remove_opinion_effect = {
			GUARDIAN = $GUARDIAN$
			WARD = $WARD$
			WARD_LIEGE = $WARD$.liege
		}
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls remove_guardian_effect.

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