Scripted effect · By God Alone files
pam_destroy_cardinal_title_effect
pam_destroy_cardinal_title_effect = { CARDINALATE = … }game/common/scripted_effects/11_dlc_pam_scripted_effects.txt, line 386 (25 lines). Parameters: $CARDINALATE$.
pam_destroy_cardinal_title_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 386 of its file. A call passes 1 parameter: CARDINALATE. The game's script calls it in 8 places, among them Strip Cardinalate (interaction), Beyond … (event ep3_laamps.0030) and Once and Former … (event ep3_laamps.0005). Patch 1.20.1.2, from game/common/scripted_effects/11_dlc_pam_scripted_effects.txt.
The comment above it in the file
Destroys $CARDINALATE$ title. Frees up the location variable to reuse the name it had, if the title is recreated. Removes the character from the situation, if it was their only title.
What it does
destroy_title = $CARDINALATE$If
None of these
exists = clerical_elector_title- Any held title: Is a Clerical Title
Then
- The Christian Church:
If
is_manual_participant = prev
Then
remove_manual_participant = prev
• 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 (25 lines of game script)
pam_destroy_cardinal_title_effect = {
if = { # A dynamic cardinalate is deleted outright, so it has to leave the reuse pool with it
limit = { $CARDINALATE$ = { exists = var:pam_dynamic_cardinalate } }
remove_list_global_variable = {
name = roma_cardinalates
target = $CARDINALATE$
}
}
remove_character_flag = cardinal_flag
destroy_title = $CARDINALATE$
if = {
limit = {
NOR = {
exists = clerical_elector_title
any_held_title = { has_clerical_region = yes }
}
}
situation:the_christian_church ?= {
if = {
limit = { is_manual_participant = prev }
remove_manual_participant = prev
}
}
}
}As written in game/common/scripted_effects/11_dlc_pam_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_destroy_cardinal_title_effect.
Character interactions (1)
Events (2)
- Beyond …
ep3_laamps.0030 - Once and Former …
ep3_laamps.0005
On actions (the game's own hooks) (1)
- on_rite_change
Source: game/common/scripted_effects/11_dlc_pam_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.