Scripted effect · Legacy of Persia files
fp3_struggle_ending_shia_caliphate_effects
fp3_struggle_ending_shia_caliphate_effects = yesgame/common/scripted_effects/05_dlc_fp3_scripted_effects.txt, line 267 (111 lines). No parameters.
fp3_struggle_ending_shia_caliphate_effects is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 267 of its file. It takes no parameters: fp3_struggle_ending_shia_caliphate_effects = yes. The game's script calls it in 3 places, among them Abbasid Humiliation (decision), … Ascension (event fp3_struggle.0095) and … Ascension (event fp3_struggle.0096). Its body carries 5 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
- Gains the Nickname 'the Righteous'
- Persian Empire: Gains the … Title (root)
claim_the_imamate_scripted_effect = yes- Gain +5,000 Piety
- Their faith: Fervor increases by +50
- Their rite:
- If has the Muhakkima Doctrine: Convert Faith in County is more effective for all Muhakkima Rites
- Else, if has the Zandaqa Doctrine: Convert Faith in County is more effective for all Zandaqa Rites
- Else, if has the Sunni Doctrine: Convert Faith in County is more effective for all Sunni Rites
- Otherwise: Convert Faith in County is more effective for all Shia Rites
- All Struggle Region Counties and Involved Rulers have a 75% chance to convert to your Rite
• 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 (111 lines of game script)
fp3_struggle_ending_shia_caliphate_effects = {
### CHARACTER
give_nickname = nick_the_righteous_caliph
create_title_and_vassal_change = {
type = created
save_scope_as = title_change
add_claim_on_loss = no
}
title:e_persia = {
change_title_holder = {
holder = root
change = scope:title_change
}
save_scope_as = title_e_persia
}
resolve_title_and_vassal_change = scope:title_change
save_scope_as = founder
claim_the_imamate_scripted_effect = yes
add_piety = 5000
### FAITH
faith = {
change_fervor = {
value = major_fervor_gain
desc = fervor_gain_shia_caliphate
}
}
rite = {
if = {
limit = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
# Muhakkima faiths gets a bonus for the rest of the game converting other counties
custom_tooltip = {
text = struggle_persia_ending_assertion_boost_muhakkima_county_conversion_tt
set_global_variable = {
name = fp3_struggle_ending_assertion_school
value = flag:muhakkima
}
}
}
else_if = {
limit = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine }
# Zandaqa faiths gets a bonus for the rest of the game converting other counties
custom_tooltip = {
text = struggle_persia_ending_assertion_boost_zandaqa_county_conversion_tt
set_global_variable = {
name = fp3_struggle_ending_assertion_school
value = flag:zandaqa
}
}
}
else_if = {
limit = { rite_has_doctrine = muhammad_succession_sunni_doctrine }
# Sunni faiths gets a bonus for the rest of the game converting other counties
custom_tooltip = {
text = struggle_persia_ending_assertion_boost_sunni_county_conversion_tt
set_global_variable = {
name = fp3_struggle_ending_assertion_school
value = flag:sunni
}
}
}
else = {
# Shia faiths gets a bonus for the rest of the game converting other counties
custom_tooltip = {
text = struggle_persia_ending_assertion_boost_shia_county_conversion_tt
set_global_variable = {
name = fp3_struggle_ending_assertion_school
value = flag:shia
}
}
}
# Propagate the Caliph's Faith in the struggle region
custom_tooltip = {
text = fp3_struggle_ending_shia_caliphate_spread_faith_through_struggle_region_tt
struggle:persian_struggle = {
every_involved_county = {
limit = {
rite != root.rite
}
random = {
chance = fp3_shia_caliphate_ending_conversion_chance_percent_value
set_county_faith = root.faith
set_county_rite = root.rite
}
}
every_involved_ruler = {
limit = {
NOT = { religious_head_or_challenger ?= this }
rite != root.rite
primary_title = { is_mercenary_company = no }
}
random = {
chance = fp3_shia_caliphate_ending_conversion_chance_percent_value
set_character_faith = root.faith
set_character_rite = root.rite
}
}
}
}
}
if = {
limit = { is_ai = no }
add_character_flag = {
flag = fp3_challenger_caliphate_achievement_unlocked
years = 4
}
}
}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_struggle_ending_shia_caliphate_effects.
Decisions (1)
Events (2)
- … Ascension
fp3_struggle.0095 - … Ascension
fp3_struggle.0096
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.