Scripted effect · All Under Heaven files
tgp_create_house_bloc_effect
tgp_create_house_bloc_effect = { TYPE = … }game/common/scripted_effects/10_dlc_tgp_house_bloc_scripted_effects.txt, line 11 (105 lines). Parameters: $TYPE$.
tgp_create_house_bloc_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 11 of its file. A call passes 1 parameter: TYPE. The game's script calls it in 4 places, among them Invite House to Bloc (interaction), Join House Bloc (interaction) and tgp_yoshinaka_new_house_bloc_effect (local effect). Its body carries 1 text 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.
The comment above it in the file
Create Japanese Bloc Create an appropriately named block (i.e. Japanese style confederation), with the root scoped characters house as the leading house. root: house which will lead the bloc TYPE: flag representing the confederation (and by extension aspiration) type
What it does
- House … will form the … Bloc
• 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 (105 lines of game script)
tgp_create_house_bloc_effect = {
save_scope_as = bloc_creator
save_scope_value_as = {
name = type
value = flag:$TYPE$
}
custom_description = {
text = create_house_bloc_effect
subject = scope:bloc_creator.house_head
if = {
limit = {
OR = {
has_house_aspiration_parameter = ceremony_cheaper_feasts
scope:type = flag:ceremony
}
}
house_head = {
create_confederation = {
name = CONFEDERATION_HOUSE_NAME
type = confederation_type:house_bloc_ceremony
leader = house
}
}
}
else_if = {
limit = {
OR = {
has_house_aspiration_parameter = unlocks_japanese_manor_watch_house
scope:type = flag:determination
}
}
house_head = {
create_confederation = {
name = CONFEDERATION_HOUSE_NAME
type = confederation_type:house_bloc_determination
leader = house
}
}
}
else_if = {
limit = {
OR = {
has_house_aspiration_parameter = unlocks_japanese_manor_shrine
scope:type = flag:humility
}
}
house_head = {
create_confederation = {
name = CONFEDERATION_HOUSE_NAME
type = confederation_type:house_bloc_humility
leader = house
}
}
}
else_if = {
limit = {
OR = {
has_house_aspiration_parameter = unlocks_japanese_manor_brewery
scope:type = flag:prosperity
}
}
house_head = {
create_confederation = {
name = CONFEDERATION_HOUSE_NAME
type = confederation_type:house_bloc_prosperity
leader = house
}
}
}
else_if = {
limit = {
OR = {
has_house_aspiration_parameter = unlocks_japanese_manor_archive
scope:type = flag:service
}
}
house_head = {
create_confederation = {
name = CONFEDERATION_HOUSE_NAME
type = confederation_type:house_bloc_service
leader = house
}
}
}
else_if = {
limit = {
OR = {
has_house_aspiration_parameter = unlocks_japanese_manor_armory
scope:type = flag:strength
}
}
house_head = {
create_confederation = {
name = CONFEDERATION_HOUSE_NAME
type = confederation_type:house_bloc_strength
leader = house
}
}
}
house_confederation ?= {
save_scope_as = bloc
set_coa = 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_house_bloc_effect.
Character interactions (2)
Scripted effects inside an event file (1)
- tgp_yoshinaka_new_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.