Scripted effect · By God Alone files
pam_miles_christi_white_peace_effect
pam_miles_christi_white_peace_effect = yesgame/common/scripted_effects/pam_effects.txt, line 294 (23 lines). No parameters.
pam_miles_christi_white_peace_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 294 of its file. It takes no parameters: pam_miles_christi_white_peace_effect = yes. The game's script calls it in 1 place, among them on_war_white_peace (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Called from wars on_white_peace
What it does
scope:defender:If
- Their rite: The rite has Ending a War in White Peace as defender against the same Faith grants 100 Piety and Legitimacy, each scaled by both sides' Title rank, and 5 Spiritual Fulfillment
- scope:attacker: Their faith is the same as that of defender
Then
add_piety = { value = medium_piety_gain multiply = scope:attacker.primary_title.tier multiply = scope:defender.primary_title.tier }- Spiritual fulfillment +5
add_legitimacy = { value = medium_legitimacy_gain multiply = scope:attacker.primary_title.tier multiply = scope:defender.primary_title.tier }
• 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 (23 lines of game script)
pam_miles_christi_white_peace_effect = {
scope:defender = {
if = {
limit = {
rite = { rite_has_parameter = tenet_miles_christi_white_peace_defender_bonus }
scope:attacker = {
faith = scope:defender.faith
}
}
add_piety = {
value = medium_piety_gain
multiply = scope:attacker.primary_title.tier
multiply = scope:defender.primary_title.tier
}
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
add_legitimacy = {
value = medium_legitimacy_gain
multiply = scope:attacker.primary_title.tier
multiply = scope:defender.primary_title.tier
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_miles_christi_white_peace_effect.
On actions (the game's own hooks) (1)
- on_war_white_peace
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.