Scripted effect · By God Alone files
pam_heresy_dispatch_create_pre_declaration_rite_effect
pam_heresy_dispatch_create_pre_declaration_rite_effect = yesgame/common/scripted_effects/pam_heresy_shared_effects.txt, line 704 (42 lines). No parameters.
pam_heresy_dispatch_create_pre_declaration_rite_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 704 of its file. It takes no parameters: pam_heresy_dispatch_create_pre_declaration_rite_effect = yes. The game's script calls it in 1 place, among them pam_heresy_c3_pre_declaration_setup_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/pam_heresy_shared_effects.txt.
The comment above it in the file
create_rite_from_type takes a literal rite type key, so dispatch on heresy_faith.
What it does
If
scope:heresy_faith = faith:lollard
Then
create_rite_from_type = { type = lollard_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:hussite
Then
create_rite_from_type = { type = hussite_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:joachimite
Then
create_rite_from_type = { type = joachimite_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:cathar
Then
create_rite_from_type = { type = cathar_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:waldensian
Then
create_rite_from_type = { type = waldensian_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:bogomilist
Then
create_rite_from_type = { type = bogomilist_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:paulician
Then
create_rite_from_type = { type = paulician_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:iconoclast
Then
create_rite_from_type = { type = iconoclast_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:adoptionist
Then
create_rite_from_type = { type = adoptionist_rite save_scope_as = new_rite convert = yes }
Else if
scope:heresy_faith = faith:messalian
Then
create_rite_from_type = { type = messalian_rite save_scope_as = new_rite convert = 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 (42 lines of game script)
pam_heresy_dispatch_create_pre_declaration_rite_effect = {
if = {
limit = { scope:heresy_faith = faith:lollard }
create_rite_from_type = { type = lollard_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:hussite }
create_rite_from_type = { type = hussite_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:joachimite }
create_rite_from_type = { type = joachimite_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:cathar }
create_rite_from_type = { type = cathar_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:waldensian }
create_rite_from_type = { type = waldensian_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:bogomilist }
create_rite_from_type = { type = bogomilist_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:paulician }
create_rite_from_type = { type = paulician_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:iconoclast }
create_rite_from_type = { type = iconoclast_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:adoptionist }
create_rite_from_type = { type = adoptionist_rite save_scope_as = new_rite convert = yes }
}
else_if = {
limit = { scope:heresy_faith = faith:messalian }
create_rite_from_type = { type = messalian_rite save_scope_as = new_rite convert = yes }
}
}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_dispatch_create_pre_declaration_rite_effect.
Scripted effects (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.