Scripted effect · Legacy of Persia files
set_house_head_effect
set_house_head_effect = { NEW_HEAD = … OLD_HEAD = … }game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt, line 620 (28 lines). Parameters: $NEW_HEAD$, $OLD_HEAD$.
set_house_head_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 620 of its file. A call passes 2 parameters: NEW_HEAD and OLD_HEAD. The game's script calls it in 3 places, among them Challenge Brought: House … (event fp3_misc_decisions.0029), Challenge Brought: House … (event fp3_misc_decisions.0030) and Challenge Met: House … (event fp3_misc_decisions.0041). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (28 lines of game script)
set_house_head_effect = {
$NEW_HEAD$ = { save_scope_as = new_head }
$OLD_HEAD$ = {
save_scope_as = old_head
if = {
limit = {
any_held_title = { is_noble_family_title = yes }
}
random_held_title = {
limit = { is_noble_family_title = yes }
save_scope_as = nf_title
}
}
}
create_title_and_vassal_change = {
type = granted
save_scope_as = change
add_claim_on_loss = no
}
scope:nf_title = {
change_title_holder_include_vassals = {
holder = scope:new_head
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
scope:new_head.house = { set_house_head = scope:new_head }
}As written in game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_house_head_effect.
Events (3)
- Challenge Brought: House …
fp3_misc_decisions.0029 - Challenge Brought: House …
fp3_misc_decisions.0030 - Challenge Met: House …
fp3_misc_decisions.0041
Source: game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.