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

Scripted effect

stop_defender_vassal_war_add_clan_unity_effect

stop_defender_vassal_war_add_clan_unity_effect = yes

game/common/scripted_effects/00_unity_effects.txt, line 83 (31 lines). No parameters.

stop_defender_vassal_war_add_clan_unity_effect is a scripted effect in Crusader Kings III, written at line 83 of its file. It takes no parameters: stop_defender_vassal_war_add_clan_unity_effect = yes. The game's script calls it in 3 places, among them vassal_interaction.0012 (event), vassal_interaction.0013 (event) and vassal_interaction.0014 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_unity_effects.txt.

The comment above it in the file

Used in the following events:
vassal_interaction.0012
vassal_interaction.0013
vassal_interaction.0014

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 (31 lines of game script)
stop_defender_vassal_war_add_clan_unity_effect = {
	# If we are clan, we want to affect unity, but only during certain situations...
	if = {
		limit = { # If recipient is a house member and the attacker is not, lose unity
			exists = scope:actor.house
			exists = scope:attacker.house
			scope:attacker.house != scope:actor.house
		}
		add_clan_unity_interaction_effect = {
			CHARACTER = scope:actor
			TARGET = scope:recipient
			VALUE = medium_unity_loss
			DESC = clan_unity_stop_defender_vassal_war.desc
			REVERSE_NON_HOUSE_TARGET = no
		}
	}
	else_if = {
		limit = { # If recipient is a non-house member and the attacker is, gain unity
			exists = scope:actor.house
			exists = scope:recipient.house
			scope:recipient.house != scope:actor.house
		}
		add_clan_unity_interaction_effect = {
			CHARACTER = scope:actor
			TARGET = scope:attacker
			VALUE = medium_unity_gain
			DESC = clan_unity_aided_in_war.desc
			REVERSE_NON_HOUSE_TARGET = no
		}
	}
}

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

Where it is used

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

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