Scripted effect · By God Alone files
pam_incite_claim_war_effect
pam_incite_claim_war_effect = yesgame/common/scripted_effects/pam_effects.txt, line 11025 (106 lines). No parameters.
pam_incite_claim_war_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 11025 of its file. It takes no parameters: pam_incite_claim_war_effect = yes. The game's script calls it in 1 place, among them ecclesiastic_incite_claim_war_interaction_effect (scripted effect). Its body carries 5 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:secondary_recipient:add_piety = { … }
scope:recipient:scope:puppet_or_actor:- You gain Prestige if the Claim War is won
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 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
• 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 (106 lines of game script)
pam_incite_claim_war_effect = {
scope:secondary_recipient = {
save_scope_as = sponsored_claim_war_attacker
add_piety = {
value = medium_piety_value
multiply = {
value = scope:target.tier
subtract = 1
}
}
}
scope:recipient = {
save_scope_as = sponsored_claim_war_defender
if = {
limit = {
NOT = {
root ?= scope:secondary_recipient
}
}
add_opinion = {
target = scope:puppet_or_actor
modifier = incited_claim_war_opinion
opinion = -50
}
}
}
if = {
limit = {
root ?= scope:secondary_recipient
}
custom_tooltip = interaction_claim_war_attacker_tt
show_as_tooltip = {
scope:recipient = {
add_opinion = {
modifier = declared_war
target = scope:secondary_recipient
}
}
}
}
else = {
scope:recipient = {
custom_tooltip = interaction_claim_war_attacked_tt
}
}
scope:sponsored_claim_war_attacker = {
add_character_flag = {
flag = temp_no_claim_war_cost
days = 10
}
hidden_effect = {
start_war = {
casus_belli = claim_cb
target = scope:sponsored_claim_war_defender
claimant = scope:sponsored_claim_war_attacker
target_title = scope:sponsored_claim_war_target
}
remove_character_flag = temp_no_claim_war_cost
}
random_character_war = {
limit = {
using_cb = claim_cb
primary_defender = scope:recipient
}
save_scope_as = claim_war
set_variable = {
name = claim_instigator
value = scope:puppet_or_actor
}
}
}
scope:puppet_or_actor = {
custom_tooltip = inciter_gain_prestige_if_claim_war_won_tt
if = {
limit = {
scope:fund_war ?= yes
}
pay_treasury_or_gold = {
target = scope:secondary_recipient
value = scope:puppet_or_actor.major_gold_value
}
}
if = {
limit = {
scope:join_war ?= yes
}
custom_tooltip = claim_war_interaction_join_war_tt
custom_tooltip = holy_war_cleric_loss_penalty_tt
scope:claim_war ?= {
hidden_effect = { add_attacker = scope:puppet_or_actor }
set_variable = {
name = claim_joiner
value = scope:puppet_or_actor
}
}
}
if = {
limit = {
scope:use_hook ?= yes
has_usable_hook = scope:secondary_recipient
}
use_hook = scope:secondary_recipient
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_incite_claim_war_effect.
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.