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_joined_shared_effect

tgp_on_member_joined_shared_effect = yes

game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 724 (30 lines). No parameters.

tgp_on_member_joined_shared_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 724 of its file. It takes no parameters: tgp_on_member_joined_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

  • scope:character:
    • Event tgp_house_blocs.0002 (after 1 days)
    • If

      • scope:bloc.leading_house.house_head.joined_faction.faction_leader ?= scope:bloc.leading_house.house_head
      • can_join_faction = scope:bloc.leading_house.house_head.joined_faction

      Then

      • join_faction = scope:bloc.leading_house.house_head.joined_faction

• 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 (30 lines of game script)
tgp_on_member_joined_shared_effect = {
	save_scope_as = bloc
	scope:character = {
		save_scope_as = joiner
		add_character_flag = {
			flag = bloc_message_flag
			days = 1
		}
		trigger_event = {
			id = tgp_house_blocs.0002
			days = 1
		}
		# JOIN LEADERS FACTION
		if = {
			limit = {
				scope:bloc.leading_house.house_head.joined_faction.faction_leader ?= scope:bloc.leading_house.house_head
				can_join_faction = scope:bloc.leading_house.house_head.joined_faction
			}
			join_faction = scope:bloc.leading_house.house_head.joined_faction
		}
	}
	# Message setup
	scope:bloc = {
		add_to_variable_list = {
			name = joining_house_members
			target = scope:joiner
			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_joined_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?