Scripted effect · By God Alone files
pam_notify_holy_war_instigator_effect_win
pam_notify_holy_war_instigator_effect_win = yesgame/common/scripted_effects/pam_effects.txt, line 9686 (109 lines). No parameters.
pam_notify_holy_war_instigator_effect_win is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 9686 of its file. It takes no parameters: pam_notify_holy_war_instigator_effect_win = yes. The game's script calls it in 3 places, among them Holy (casus belli), Major Holy (casus belli) and Minor Holy (casus belli). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
scope:war:- Has “holy instigator” (a variable the game's script sets)
- No war participant:
Then
- scope:war › var:holy_instigator:
- If played by a person: Gain … Prestige
- … has conquered …
• 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 (109 lines of game script)
pam_notify_holy_war_instigator_effect_win = {
if = {
limit = {
scope:war ?= {
has_variable = holy_instigator
var:holy_instigator = {
is_alive = yes
save_temporary_scope_as = instigator_temp
}
NOT = {
any_war_participant = {
this = scope:instigator_temp
}
}
}
}
every_in_list = {
list = target_titles
save_scope_as = target
}
scope:war = {
var:holy_instigator = {
save_scope_as = cleric
send_interface_message = {
type = event_generic_good
title = pam_instigated_holy_war_won.t
left_icon = scope:attacker
right_icon = scope:defender
if = {
limit = {
is_ai = no
}
add_prestige = pam_holy_war_inciter_prestige_value
}
else = {
hidden_effect = {
add_prestige = pam_holy_war_inciter_prestige_value
}
}
custom_tooltip = pam_instigated_holy_war_won_tt
if = {
limit = {
pam_can_expand_clerical_region_after_war_trigger = { HEATHEN = scope:defender }
}
if = {
limit = {
any_in_list = {
list = target_titles
tier = tier_county
}
}
every_in_list = {
list = target_titles
duchy = {
scope:cleric = {
add_to_variable_list = {
name = clergy_expands
target = prev
}
}
}
}
}
else_if = {
limit = {
any_in_list = {
list = target_titles
tier = tier_duchy
}
}
every_in_list = {
list = target_titles
scope:cleric = {
add_to_variable_list = {
name = clergy_expands
target = prev
}
}
}
}
else = {
every_in_list = {
list = target_titles
every_direct_de_jure_vassal_title = {
limit = {
any_de_jure_county = {
holder = {
target_is_same_character_or_above = scope:defender
}
}
}
scope:cleric = {
add_to_variable_list = {
name = clergy_expands
target = prev
}
}
}
}
}
}
}
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_notify_holy_war_instigator_effect_win.
Casus belli (3)
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.