Scripted effect · By God Alone files
pam_incite_holy_war_effect
pam_incite_holy_war_effect = yesgame/common/scripted_effects/pam_effects.txt, line 9879 (302 lines). No parameters.
pam_incite_holy_war_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 9879 of its file. It takes no parameters: pam_incite_holy_war_effect = yes. The game's script calls it in 3 places, among them … Conquest of … (event pam_interactions_events.0071), A War for the … (event pam_interactions_events.0070) and ecclesiastic_incite_holy_war_interaction_effect (scripted effect). Its body carries 8 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
scope:puppet_or_actor:If
top_participant_group:the_christian_church:has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
- Does not have the Trait: Forgiving
- Does not have the Trait: Compassionate
Then
change_spiritual_fulfillment = { … }
scope:secondary_recipient:add_piety = { … }If
- scope:puppet_or_actor › top_participant_group:the_christian_church:
has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
- Does not have the Trait: Forgiving
- Does not have the Trait: Compassionate
Then
change_spiritual_fulfillment = { … }
- scope:puppet_or_actor › top_participant_group:the_christian_church:
scope:recipient:scope:puppet_or_actor:- If … wins the War, you gain …
If
scope:fund_war ?= yes
Then
pay_treasury_or_gold = { target = scope:secondary_recipient value = scope:puppet_or_actor.major_gold_value }
If
scope:join_war ?= yes
Then
- You join the Holy War on the side of …
- You will lose 2 Levels of Fame if the war is lost
If
scope:use_hook ?= yeshas_usable_hook = scope:secondary_recipient
Then
use_hook = scope:secondary_recipient
If
scope:rally_crusaders ?= yes
Then
scope:secondary_recipient:If
Then
- If played by the AI:
- Gains the modifier “Relying on Irregular Holy Warriors” for 10 years
- Will Behave significantly more zealously, boldly, and energetically
- Otherwise:
- Gains the modifier “Relying on Irregular Holy Warriors” for 10 years
Otherwise
- If played by the AI:
- Gains the modifier “Relying on Irregular Holy Warriors” for 10 years
- Will Behave more zealously, boldly, and energetically
- Otherwise:
- Gains the modifier “Relying on Irregular Holy Warriors” for 10 years
- If played by the AI:
If
a check the game hides
Then
add_prestige = { … }
Otherwise
- Gain -150 Prestige
If
scope:inspire_realm ?= yes
Then
If
pam_can_expand_clerical_region_after_war_trigger = { HEATHEN = scope:recipient }
Then
- If the Holy War is successful, you may Request Clerical Title Expansion into … with increased Acceptance and discounted Piety cost
- scope:recipient: Event pam_interactions_events.0072 (after 3 days)
scope:puppet_or_actor:If
scope:target.tier >= tier_kingdom- Any character situation:
situation_type = the_christian_church
- The Christian Church: The current phase counts “A major Holy War is incited by the Clergy”
Then
Else if
scope:target.tier >= tier_duchy- Any character situation:
situation_type = the_christian_church
- The Christian Church: The current phase counts “A Holy War is incited by the Clergy”
Then
• 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 (120 lines of game script)
pam_incite_holy_war_effect = {
scope:puppet_or_actor = {
if = {
limit = {
top_participant_group:the_christian_church ?= {
has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
}
NOR = {
has_trait = forgiving
has_trait = compassionate
}
}
change_spiritual_fulfillment = {
value = miniscule_spiritual_fulfillment_value
multiply = {
value = scope:target.tier
subtract = 1
}
}
}
}
scope:secondary_recipient = {
save_scope_as = sponsored_holy_war_attacker
add_piety = {
value = medium_piety_value
multiply = {
value = scope:target.tier
subtract = 1
}
}
if = {
limit = {
scope:puppet_or_actor = {
top_participant_group:the_christian_church ?= {
has_participant_group_parameter = the_christian_church_incite_holy_war_interaction
}
}
NOR = {
has_trait = forgiving
has_trait = compassionate
}
}
change_spiritual_fulfillment = {
value = minor_spiritual_fulfillment_value
multiply = {
value = scope:target.tier
subtract = 1
}
}
}
}
scope:recipient = {
save_scope_as = sponsored_holy_war_defender
if = {
limit = {
NOT = {
root ?= scope:secondary_recipient
}
}
add_opinion = {
target = scope:puppet_or_actor
modifier = incited_holy_war_opinion
opinion = -50
}
}
}
if = {
limit = {
root ?= scope:secondary_recipient
}
custom_tooltip = interaction_holy_war_attacker_tt
show_as_tooltip = {
scope:recipient = {
add_opinion = {
modifier = declared_war
target = scope:secondary_recipient
}
}
}
}
else = {
scope:recipient = {
custom_tooltip = interaction_holy_war_attacked_tt
}
}
scope:sponsored_holy_war_attacker = {
add_character_flag = {
flag = holy_war_incited
days = 10
}
if = {
limit = {
scope:sponsored_holy_war_target.tier = tier_kingdom
}
hidden_effect = {
start_war = {
casus_belli = major_religious_war
target = scope:sponsored_holy_war_defender
target_title = scope:sponsored_holy_war_target
}
}
}
else_if = {
limit = {
scope:sponsored_holy_war_target.tier = tier_duchy
}
hidden_effect = {
start_war = {
casus_belli = religious_war
target = scope:sponsored_holy_war_defender
target_title = scope:sponsored_holy_war_target
}
}
}
else = {
hidden_effect = {
start_war = {
casus_belli = minor_religious_warAs written in game/common/scripted_effects/pam_effects.txt.
The first 120 of its 302 lines; the rest is in game/common/scripted_effects/pam_effects.txt from line 9879.
Where it is used
Every place in common/, events/ and history/ that calls pam_incite_holy_war_effect.
Events (2)
- … Conquest of …
pam_interactions_events.0071 - A War for the …
pam_interactions_events.0070
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.