Scripted effect · By God Alone files
pam_miles_christi_holy_weapon_victory_effect
pam_miles_christi_holy_weapon_victory_effect = yesgame/common/scripted_effects/pam_effects.txt, line 332 (20 lines). No parameters.
pam_miles_christi_holy_weapon_victory_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 332 of its file. It takes no parameters: pam_miles_christi_holy_weapon_victory_effect = yes. The game's script calls it in 1 place, among them on_combat_end_winner (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
Called from on_combat_end_winner in the scope of the winning combat side.
What it does
If
a check the game hides
Then
- Every side commander:
- Where:
- Their rite: The rite has Winning Battles against another Religion while carrying a Holy Relic weapon enhances it through four blessings, up to 50 victories
NOT = { faith.religion = scope:pam_holy_weapon_enemy.faith.religion }
- Every character artifact:
- Where:
pam_holy_weapon_trigger = yes
pam_miles_christi_holy_weapon_gain_victory_effect = yes
- Where:
- Where:
- Every side commander:
• 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 (20 lines of game script)
pam_miles_christi_holy_weapon_victory_effect = {
if = {
limit = {
exists = enemy_side.side_primary_participant
}
enemy_side.side_primary_participant = {
save_temporary_scope_as = pam_holy_weapon_enemy
}
every_side_commander = {
limit = {
rite = { rite_has_parameter = tenet_miles_christi_holy_weapon_blessing }
NOT = { faith.religion = scope:pam_holy_weapon_enemy.faith.religion }
}
every_character_artifact = {
limit = { pam_holy_weapon_trigger = yes }
pam_miles_christi_holy_weapon_gain_victory_effect = yes
}
}
}
}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_holy_weapon_victory_effect.
On actions (the game's own hooks) (1)
- on_combat_end_winner
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.