Scripted effect
petition_head_of_faith_grant_excommunication_effect
petition_head_of_faith_grant_excommunication_effect = yesgame/common/scripted_effects/11_petition_head_of_faith_effects.txt, line 401 (22 lines). No parameters.
petition_head_of_faith_grant_excommunication_effect is a scripted effect in Crusader Kings III, written at line 401 of its file. It takes no parameters: petition_head_of_faith_grant_excommunication_effect = yes. The game's script calls it in 5 places, among them Petition: … Excommunication (event petition_head_of_faith.1320), petition_head_of_faith_cite_sins_effect (scripted effect) and petition_head_of_faith_excommunication_offer_gold_success_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/11_petition_head_of_faith_effects.txt.
The comment above it in the file
Petitioner scope, not root, since root is the Head of Faith
What it does
- Event religious_interaction.1022
excommunicate_character = { EXCOMMUNICATOR = var:petition_head_of_faith_recipient TARGET_CHARACTER = var:petition_head_of_faith_target_character REQUESTING_CHARACTER = scope:petition_hof_petitioner }- var:petition_head_of_faith_target_character: Event religious_interaction.1020 (after 5 days)
add_clan_unity_interaction_effect = { … }
• 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 (22 lines of game script)
petition_head_of_faith_grant_excommunication_effect = {
save_temporary_scope_as = petition_hof_petitioner
trigger_event = religious_interaction.1022
excommunicate_character = {
EXCOMMUNICATOR = var:petition_head_of_faith_recipient
TARGET_CHARACTER = var:petition_head_of_faith_target_character
REQUESTING_CHARACTER = scope:petition_hof_petitioner
}
var:petition_head_of_faith_target_character = {
trigger_event = {
id = religious_interaction.1020
days = 5
}
}
add_clan_unity_interaction_effect = {
CHARACTER = scope:petition_hof_petitioner
TARGET = var:petition_head_of_faith_recipient
VALUE = medium_unity_loss
DESC = clan_unity_request_excommunication.desc
REVERSE_NON_HOUSE_TARGET = no
}
}As written in game/common/scripted_effects/11_petition_head_of_faith_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls petition_head_of_faith_grant_excommunication_effect.
Source: game/common/scripted_effects/11_petition_head_of_faith_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.