Scripted effect · By God Alone files
pam_determine_ghw_target_character_from_kingdom_effect
pam_determine_ghw_target_character_from_kingdom_effect = { FAITH = … }game/common/scripted_effects/pam_effects.txt, line 7224 (52 lines). Parameters: $FAITH$.
pam_determine_ghw_target_character_from_kingdom_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 7224 of its file. A call passes 1 parameter: FAITH. The game's script calls it in 2 places, among them great_holy_war.0001 (event) and pam_use_bull_selected_ghw_target_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Picks scope:target_character for a GHW after scope:target_kingdom is already set (e.g. bull kingdom selection).
What it does
- scope:target_kingdom › One random in de jure hierarchy:
• 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 (52 lines of game script)
pam_determine_ghw_target_character_from_kingdom_effect = {
scope:target_kingdom = {
random_in_de_jure_hierarchy = {
continue = { tier > tier_county }
limit = {
tier = tier_county
$FAITH$.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.rite }
}
holder = {
highest_held_title_tier >= 4
any_realm_county = { count >= 5 }
}
}
alternative_limit = {
tier = tier_county
$FAITH$.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.rite }
}
holder = {
highest_held_title_tier >= 3
any_realm_county = { count >= 5 }
}
}
alternative_limit = {
tier = tier_county
$FAITH$.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.rite }
}
holder = {
highest_held_title_tier >= 2
any_realm_county = { count >= 5 }
}
}
alternative_limit = {
tier = tier_county
$FAITH$.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.rite }
}
}
alternative_limit = {
tier = tier_kingdom
$FAITH$.main_rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.rite }
}
}
holder = {
save_scope_as = target_character
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_determine_ghw_target_character_from_kingdom_effect.
Events (1)
Scripted effects (1)
Source: game/common/scripted_effects/pam_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.