Scripted effect · By God Alone files
pam_heresy_finalise_founder_effect
pam_heresy_finalise_founder_effect = yesgame/common/scripted_effects/pam_heresy_shared_effects.txt, line 377 (29 lines). No parameters.
pam_heresy_finalise_founder_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 377 of its file. It takes no parameters: pam_heresy_finalise_founder_effect = yes. The game's script calls it in 1 place, among them heresy_historical.0001 (event). Patch 1.20.1.2, from game/common/scripted_effects/pam_heresy_shared_effects.txt.
The comment above it in the file
Character scope, and this expects scope:new_rite, or omit it for the historical split path
What it does
- If does not have the Trait: Heresiarch: Gains the Trait Heresiarch
If
a check the game hides
Then
create_inspiration = religious_inspiration
pam_heresy_unlock_all_learning_perks_effect = yesIf
a check the game hides
Then
- Every courtier or guest:
- Where:
is_physically_able = yes- Their faith is the same as that of new rite
rite != scope:new_rite
set_character_rite = scope:new_rite
- Where:
- Every courtier or guest:
• 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 (29 lines of game script)
pam_heresy_finalise_founder_effect = {
add_character_flag = ai_will_not_convert
if = {
limit = { NOT = { has_trait = heresiarch } }
add_trait = heresiarch
}
# Brief flag mirroring add_heresiarch_trait_effect to prevent removal on conversion.
add_character_flag = {
flag = new_heresiarch
days = 3
}
if = {
limit = { NOT = { exists = inspiration } }
create_inspiration = religious_inspiration
}
pam_heresy_unlock_all_learning_perks_effect = yes
if = {
limit = { exists = scope:new_rite }
every_courtier_or_guest = {
limit = {
is_physically_able = yes
faith = scope:new_rite.faith
rite != scope:new_rite
NOT = { has_character_flag = ai_will_not_convert }
}
set_character_rite = scope:new_rite
}
}
}As written in game/common/scripted_effects/pam_heresy_shared_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_heresy_finalise_founder_effect.
Events (1)
Source: game/common/scripted_effects/pam_heresy_shared_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.