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

Scripted effect

diarch_shift_privileges_interaction_fail_effect

diarch_shift_privileges_interaction_fail_effect = yes

game/common/scripted_effects/00_diarchy_scripted_effects.txt, line 869 (40 lines). No parameters.

diarch_shift_privileges_interaction_fail_effect is a scripted effect in Crusader Kings III, written at line 869 of its file. It takes no parameters: diarch_shift_privileges_interaction_fail_effect = yes. The game's script calls it in 1 place, among them diarch_shift_privileges_interaction_apply_fail_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_diarchy_scripted_effects.txt.

What it does

• 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 (40 lines of game script)
diarch_shift_privileges_interaction_fail_effect = {
	scope:actor = {
		# Gain some stress, proportional to the size of the realm you're harassing.
		## Counties are a bit of stress.
		if = {
			limit = { scope:recipient.highest_held_title_tier >= tier_county }
			add_stress = minor_stress_gain
		}
		## Duchies are troublesome.
		else_if = {
			limit = { scope:recipient.highest_held_title_tier >= tier_duchy }
			add_stress = medium_stress_gain
		}
		## Kingdoms are a big deal.
		else_if = {
			limit = { scope:recipient.highest_held_title_tier >= tier_kingdom }
			add_stress = major_stress_gain
		}
		# We nest this so that scope:recipient doesn't have to see their own opinion effects.
		if = {
			limit = {
				this != scope:recipient
			}
			# Add some opinion loss.
			reverse_add_opinion = {
				target = scope:recipient
				modifier = angry_opinion
				opinion = -20
			}
		}
	}
	# Object explorer logging.
	scope:actor = {
		diarch_interaction_set_or_update_global_variable_effect = { VARIABLE = di_track_shiftpriv_failure }
		diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_shiftpriv_failure_actor_list }
	}
	scope:recipient = {
		diarch_interaction_add_to_global_list_effect = { VARIABLE_LIST = di_track_shiftpriv_failure_recipient_list }
	}
}

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

Where it is used

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

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