Scripted effect · Legacy of Persia files
fp3_sundered_caliphate_effects
fp3_sundered_caliphate_effects = yesgame/common/scripted_effects/05_dlc_fp3_scripted_effects.txt, line 1058 (97 lines). No parameters.
fp3_sundered_caliphate_effects is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 1058 of its file. It takes no parameters: fp3_sundered_caliphate_effects = yes. The game's script calls it in 2 places, among them Destroy the Caliphate (decision) and The End of the Sunni Caliphate (event fp3_struggle.0191). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt.
What it does
fp3_save_sunni_caliph_or_previous_effect = yes- Gain +750 Prestige
- Their house:
- The house gains the modifier “Destroyed the Caliphate” for 100 years
- Piety +1/month
- Sunni Opinion -25
- The house gains the modifier “Destroyed the Caliphate” for 100 years
scope:the_caliph:- Opinion: Destroyed Caliphate (-75)
- All … Vassals of your Rite (…):
- All … Vassals of Rites Hostile to … (…):
- Where:
rite != root.rite- Their rite:
rite_hostility_level = { target = scope:the_caliph.rite value >= religious_cb_enabled_hostility_level }
- Opinion: Destroyed Caliphate (+25)
- Where:
- Sunni Caliphate is destroyed
• 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 (97 lines of game script)
fp3_sundered_caliphate_effects = {
save_scope_as = sunderer
# Save Sunni caliph or previous one as scope:struggle_liege
fp3_save_sunni_caliph_or_previous_effect = yes
add_prestige = massive_prestige_gain
house ?= {
add_house_modifier = {
modifier = fp3_house_modifier_destroyed_the_caliphate
years = fp3_house_modifier_sunder_caliphate_duration
}
}
scope:the_caliph = {
add_opinion = {
target = scope:sunderer
modifier = fp3_sundered_caliphate_opinion
opinion = -75
}
# This is here to make effect order pretty
every_vassal = {
custom = fp3_sunder_the_caliphate_same_faith_vassal_tt
limit = { rite = scope:sunderer.rite }
# vassals from same religion as root gains opinion and give hook
save_scope_as = same_faith_caliph_vassal
add_opinion = {
target = scope:sunderer
modifier = fp3_sundered_caliphate_opinion
opinion = 25
}
custom_tooltip = {
text = fp3_sunder_the_caliphate_same_faith_vassal_hook_tt
if = {
limit = {
scope:sunderer = {
can_add_hook = {
type = favor_hook
target = scope:same_faith_caliph_vassal
}
}
}
scope:sunderer = {
add_hook_no_toast = {
type = favor_hook
target = scope:same_faith_caliph_vassal
}
}
}
}
}
every_vassal = {
custom = fp3_sunder_the_caliphate_hostile_faith_vassal_tt
limit = {
rite != root.rite
rite = {
rite_hostility_level = {
target = scope:the_caliph.rite
value >= religious_cb_enabled_hostility_level
}
}
}
# vassals with faith hostile to caliph gains opinion
add_opinion = {
target = scope:sunderer
modifier = fp3_sundered_caliphate_opinion
opinion = 25
}
}
custom_tooltip = destroys_caliph_titles_caliph_tt
if = {
limit = { title:e_arabia.holder = scope:the_caliph }
custom_tooltip = destroys_caliph_titles_arabia_tt
}
}
# Notify players about the fall of the Caliphate
hidden_effect = {
every_player = {
limit = {
OR = {
is_vassal_of = scope:the_caliph
fp3_character_involved_in_struggle_trigger = yes
this = scope:the_caliph
}
this != scope:sunderer
}
trigger_event = fp3_struggle.0192
}
scope:the_caliph = {
destroy_title = title:d_sunni
if = {
limit = { has_title = title:e_arabia }
destroy_title = title:e_arabia
}
}
}
}As written in game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls fp3_sundered_caliphate_effects.
Decisions (1)
Events (1)
- The End of the Sunni Caliphate
fp3_struggle.0191
Source: game/common/scripted_effects/05_dlc_fp3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.