Scripted effect · All Under Heaven files
tgp_create_historical_house_bloc_effect
tgp_create_historical_house_bloc_effect = { TYPE = … }game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 658 (19 lines). Parameters: $TYPE$.
tgp_create_historical_house_bloc_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 658 of its file. A call passes 1 parameter: TYPE. The game's script calls it in 1 place, among them tgp_setup_historical_house_bloc_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
Create historical bloc root: house - initial leader of bloc
What it does
- Their house head:
If
a check the game hides
Then
- If a ruler › Their house:
tgp_create_house_bloc_effect = { TYPE = $TYPE$ }
- If a ruler › Their house:
clear_saved_scope = bloc_creator
• 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 (19 lines of game script)
tgp_create_historical_house_bloc_effect = {
house_head ?= {
save_temporary_scope_as = bloc_creator
if = {
limit = {
is_alive = yes
NOT = { exists = house.house_confederation }
}
if = {
limit = { is_ruler = yes }
house = {
tgp_create_house_bloc_effect = { TYPE = $TYPE$ }
add_to_list = historical_house_bloc_house_list
}
}
}
}
clear_saved_scope = bloc_creator
}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_create_historical_house_bloc_effect.
Scripted effects (1)
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.