Scripted effect · By God Alone files
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yesgame/common/scripted_effects/pam_effects.txt, line 1020 (12 lines). No parameters.
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1020 of its file. It takes no parameters: pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes. The game's script calls it in 4 places, among them on_faith_conversion (on action), on_personal_tenet_loss (on action) and on_rite_change (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
- Any secret:
NOT = { pam_has_forbidden_personal_tenet_trigger = yes }
Then
- Every secret:
remove_secret = yes
• 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 (12 lines of game script)
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = {
if = {
limit = {
any_secret = { type = secret_forbidden_personal_tenet }
NOT = { pam_has_forbidden_personal_tenet_trigger = yes }
}
every_secret = {
type = secret_forbidden_personal_tenet
remove_secret = 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_remove_forbidden_personal_tenet_secret_if_invalid_effect.
On actions (the game's own hooks) (3)
- on_faith_conversion
- on_personal_tenet_loss
- on_rite_change
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.