Scripted effect · By God Alone files
pam_notify_holy_war_instigator_effect_loss
pam_notify_holy_war_instigator_effect_loss = yesgame/common/scripted_effects/pam_effects.txt, line 9828 (51 lines). No parameters.
pam_notify_holy_war_instigator_effect_loss is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 9828 of its file. It takes no parameters: pam_notify_holy_war_instigator_effect_loss = 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:- If has “holy joiner” (a variable the game's script sets) › var:holy_joiner: Level of Fame -2
- Otherwise › var:holy_instigator: … has been defeated by …
• 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 (51 lines of game script)
pam_notify_holy_war_instigator_effect_loss = {
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 = {
if = {
limit = {
has_variable = holy_joiner
}
var:holy_joiner = {
send_interface_message = {
type = event_generic_bad
title = pam_instigated_holy_war_lost.t
left_icon = scope:attacker
right_icon = scope:defender
add_prestige_level = -2
}
}
}
else = {
var:holy_instigator = {
send_interface_message = {
type = event_generic_bad
title = pam_instigated_holy_war_lost.t
left_icon = scope:attacker
right_icon = scope:defender
custom_tooltip = pam_instigated_holy_war_lost_tt
}
}
}
}
}
}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_loss.
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.