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_bloc_war_defeat_member_effect

tgp_bloc_war_defeat_member_effect = { LOSER = … WINNER = … }

game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 1111 (42 lines). Parameters: $LOSER$, $WINNER$.

tgp_bloc_war_defeat_member_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1111 of its file. A call passes 2 parameters: LOSER and WINNER. The game's script calls it in 1 place, among them …-… Bloc Supremacy War (casus belli). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt.

What it does

  • $WINNER$ = { … }
  • $LOSER$ = { … }
  • Member Houses of the defeated Bloc who will recognize victor's Supremacy:
  • scope:loser_bloc_temp › Every confederation member house:

• 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 (42 lines of game script)
tgp_bloc_war_defeat_member_effect = {
	$WINNER$ = {
		save_temporary_scope_as = winner_temp
		house.house_confederation = { save_temporary_scope_as = winner_bloc_temp }
	}
	$LOSER$ = {
		save_temporary_scope_as = loser_temp
		house.house_confederation = { save_temporary_scope_as = loser_bloc_temp }
	}
	custom_description_no_bullet = { text = tgp_bloc_war_defeat_member_description }
	scope:loser_bloc_temp = {
		every_confederation_member_house = {
			limit = {
				house_head = {
					tgp_bloc_war_transfer_trigger = { BLOC_LEADER = scope:loser_temp }
				}
			}
			custom_description_no_bullet = {
				text = tgp_bloc_war_defeat_member_house_description
				subject = house_head
			}
			hidden_effect = {
				if = { # LEAVE OLD BLOC IF NECESSARY
					limit = { exists = house_confederation }
					set_variable = {
						name = bloc_leaving_reason
						value = flag:reason_war
						days = 4
					}
					tgp_leave_house_bloc_effect = {
						OPINION = flag:no
						TRUCE = flag:yes
					}
					tgp_join_house_bloc_effect = {
						INVITER = scope:winner_temp.house
						OPINION = flag:no
					}
				}
			}
		}
	}
}

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_bloc_war_defeat_member_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?