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_on_member_left_shared_effect

tgp_on_member_left_shared_effect = yes

game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 755 (39 lines). No parameters.

tgp_on_member_left_shared_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 755 of its file. It takes no parameters: tgp_on_member_left_shared_effect = yes. The game's script calls it in 6 places, among them house_bloc_ceremony (confederation types), house_bloc_determination (confederation types) and house_bloc_humility (confederation types). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_bloc_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 (39 lines of game script)
tgp_on_member_left_shared_effect = {
	save_scope_as = bloc
	scope:character = {
		save_scope_as = leaver
		if = {
			limit = { is_alive = yes }
			add_character_flag = {
				flag = bloc_message_flag
				days = 1
			}
		}
		# Clear flags
		tgp_clear_house_bloc_flags_effect = yes
		trigger_event = {
			id = tgp_house_blocs.0001
			days = 1
		}
		# LEAVE LEADERS FACTION
		joined_faction ?= {
			save_temporary_scope_as = faction_temp
			if = {
				limit = {
					faction_leader = {
						NOT = { house = scope:character.house }
					}
				}
				scope:leaver = { leave_faction = scope:faction_temp }
			}
		}
	}
	# Message setup
	scope:bloc = {
		add_to_variable_list = {
			name = leaving_house_members
			target = scope:leaver
			days = 1
		}
	}
}

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_on_member_left_shared_effect.

Confederation types (6)

  • house_bloc_ceremony
  • house_bloc_determination
  • house_bloc_humility
  • house_bloc_prosperity
  • house_bloc_service
  • house_bloc_strength

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?