Scripted effect
appoint_a_righteous_caliph_scripted_effect
appoint_a_righteous_caliph_scripted_effect = yesgame/common/scripted_effects/00_major_decisions_scripted_effects_2.txt, line 188 (53 lines). No parameters.
appoint_a_righteous_caliph_scripted_effect is a scripted effect in Crusader Kings III, written at line 188 of its file. It takes no parameters: appoint_a_righteous_caliph_scripted_effect = yes. The game's script calls it in 4 places, among them Splitting the Ummah: … … (event religious_decision.0601), Splitting the Ummah: … … (event religious_decision.0602) and Splitting the Ummah: … … (event religious_decision.0603). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt.
What it does
- You become the new Head of Faith
- If piety level less than 5: Level of Devotion +1
If
a check the game hides
Then
scope:old_caliph:remove_opinion = { target = scope:founder modifier = repentant_opinion }
remove_hook = { target = scope:old_caliph type = indebted_hook }
- Stress and fulfillment impact: +80, and by trait: Humble +80, Arrogant -30
• 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 (53 lines of game script)
appoint_a_righteous_caliph_scripted_effect = {
# Create a HoF title & assign it appropriately.
hidden_effect = {
give_or_make_temporal_head_of_faith_title = { RITE = rite:maliki TITLE = title:d_muwalladi }
give_or_make_temporal_head_of_faith_title = { RITE = rite:nizari TITLE = title:d_nizari }
give_or_make_temporal_head_of_faith_title = { RITE = rite:zayidi TITLE = title:d_zayidi }
give_or_make_temporal_head_of_faith_title = { RITE = rite:ismaili TITLE = title:d_ismaili }
give_or_make_temporal_head_of_faith_title = { RITE = rite:imami TITLE = title:d_imami }
# If not, follow the usual flow.
if = {
limit = { NOT = { exists = scope:hof_assigned } }
set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = scope:founder }
faith = { set_religious_head_title = scope:new_title }
}
}
custom_tooltip = appoint_a_righteous_caliph_decision.tt.you_become_caliph
# Give scope:founder an extra piety level, if possible.
if = {
limit = { piety_level < max_piety_level }
add_piety_level = 1
}
# Try to scope:founder rivals with scope:old_caliph.
if = {
limit = {
can_set_relation_rival_trigger = { CHARACTER = scope:old_caliph }
}
set_relation_rival = {
target = scope:old_caliph
reason = rival_old_caliph_new_caliph
}
}
# If you've pulled a fast one on your HoF, they see through it.
if = {
limit = { has_character_flag = wishes_to_schism_caliphate_flag }
scope:old_caliph = {
remove_opinion = {
target = scope:founder
modifier = repentant_opinion
}
}
remove_hook = {
target = scope:old_caliph
type = indebted_hook
}
}
# And sort a bit of stress impact for the gravity of things.
stress_and_fulfillment_impact = {
base = major_stress_impact_gain
humble = major_stress_impact_gain
arrogant = medium_stress_impact_loss
}
}As written in game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt.
Where it is used
Every place in common/, events/ and history/ that calls appoint_a_righteous_caliph_scripted_effect.
Events (3)
- Splitting the Ummah: … …
religious_decision.0601 - Splitting the Ummah: … …
religious_decision.0602 - Splitting the Ummah: … …
religious_decision.0603
Scripted effects inside an event file (1)
- create_caliph_title_effect
Source: game/common/scripted_effects/00_major_decisions_scripted_effects_2.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.