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

Scripted effect

join_faction_with_leave_blocker_effect

join_faction_with_leave_blocker_effect = { FACTION = … YEARS = … }

game/common/scripted_effects/00_faction_effects.txt, line 13 (27 lines). Parameters: $FACTION$, $YEARS$.

join_faction_with_leave_blocker_effect is a scripted effect in Crusader Kings III, written at line 13 of its file. A call passes 2 parameters: FACTION and YEARS. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/00_faction_effects.txt.

What it does

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

The script as written (27 lines of game script)
join_faction_with_leave_blocker_effect = {
	join_faction = $FACTION$
	hidden_effect = {
		save_temporary_scope_value_as = {
			name = join_faction_with_leave_blocker_effect_number
			value = flag:$YEARS$
		}
		add_character_flag = {
			flag = leaving_faction_block
			years = $YEARS$
		}
	}
	if = {
		limit = { this = root }
		custom_tooltip = join_faction_with_leave_blocker_effect_first.tt
	}
	else = {
		custom_tooltip = join_faction_with_leave_blocker_effect_third.tt
	}

	#and to prevent angry error messages :D:D:D:D
	if = {
		limit = {
			scope:join_faction_with_leave_blocker_effect_number = flag:1
		}
	}
}

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

Where it is used

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

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