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

Scripted effect · All Under Heaven files

tgp_find_new_house_bloc_leader_effect

tgp_find_new_house_bloc_leader_effect = yes

game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 350 (28 lines). No parameters.

tgp_find_new_house_bloc_leader_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 350 of its file. It takes no parameters: tgp_find_new_house_bloc_leader_effect = yes. The game's script calls it in 2 places, among them tgp_leave_house_bloc_effect (scripted effect) and tgp_on_member_house_left_shared_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt.

The comment above it in the file

Find new leading house if necessary
root: confederation - to find a new leader for

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 (28 lines of game script)
tgp_find_new_house_bloc_leader_effect = {
	save_scope_as = bloc_temp
	ordered_confederation_member_house = {
		limit = {
			exists = house_head
			save_temporary_scope_as = house_temp
		}
		order_by = { # Most members
			value = 1
			scope:house_temp.house_head.top_liege = {
				every_vassal = {
					limit = {
						highest_held_title_tier > tier_barony
						is_landed = yes
						exists = house
						house = { has_same_house_aspiration_as = scope:house_temp }
						house = scope:house_temp
					}
					add = 1
				}
			}
			save_temporary_scope_as = new_leader_temp
		}
		scope:bloc_temp = {
			tgp_set_house_bloc_leading_house_effect = { LEADER = scope:new_leader_temp }
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/10_dlc_tgp_house_bloc_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?