Scripted effect · All Under Heaven files
tgp_on_bloc_destroyed_shared_effect
tgp_on_bloc_destroyed_shared_effect = yesgame/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 1197 (49 lines). No parameters.
tgp_on_bloc_destroyed_shared_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1197 of its file. It takes no parameters: tgp_on_bloc_destroyed_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). 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
- Every player:
- Where:
top_liege = scope:bloc.leading_house.house_head.top_liege
If a check the game hides passes: the same again (1 line)
- scope:bloc: The … will disband
Otherwise
- The … will disband
- Where:
• 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 (49 lines of game script)
tgp_on_bloc_destroyed_shared_effect = {
save_scope_as = bloc
every_confederation_member_house = { add_to_list = members }
leading_house = { save_scope_as = leader }
every_player = {
limit = { top_liege = scope:bloc.leading_house.house_head.top_liege }
if = {
limit = {
house = { is_in_list = members }
}
send_interface_message = {
type = msg_house_bloc_destroyed
title = msg_house_bloc_disbanded
desc = msg_house_bloc_disbanded_desc
left_icon = scope:bloc.leading_house.house_head
right_icon = scope:bloc.leading_house
house = { save_temporary_scope_as = player_house_temp }
show_as_tooltip = {
scope:bloc = {
custom_description = {
text = disband_house_bloc_effect
subject = scope:bloc.leading_house.house_head
}
}
}
}
}
else = {
send_interface_message = {
type = msg_house_bloc_disbanded
title = msg_house_bloc_disbanded
desc = msg_house_bloc_disbanded_desc
left_icon = scope:bloc.leading_house.house_head
right_icon = scope:bloc.leading_house
show_as_tooltip = {
custom_description = {
text = disband_house_bloc_effect
subject = scope:bloc.leading_house.house_head
}
}
}
}
}
if = {
limit = { debug_only = yes }
debug_log = "bloc destroyed"
debug_log_scopes = yes
}
}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_bloc_destroyed_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.