Scripted effect · Legacy of Persia files
read_name_in_friday_prayer_scripted_effect
read_name_in_friday_prayer_scripted_effect = yesgame/common/scripted_effects/03_dlc_fp3_scripted_effects.txt, line 408 (93 lines). No parameters.
read_name_in_friday_prayer_scripted_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 408 of its file. It takes no parameters: read_name_in_friday_prayer_scripted_effect = yes. The game's script calls it in 2 places, among them Declare Stance in the Iranian Intermezzo (decision) and Announcements at the Friday Prayer (event fp3_decision.0015). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.
What it does
If
- Does not have the Trait: Supporter of Caliphal Authority
- Does not have the Trait: Detractor of the Caliphate
Then
- 1 of 2 things will happen:
- 50% – Have the caliph's name read first and most elaborately:
- 50% – Remove the caliph from the list:
- Else, if has the Trait: Supporter of Caliphal Authority:
read_name_in_friday_prayer_guts_become_detractor_effect = yesstruggle:persian_struggle = { … }
- Else, if has the Trait: Detractor of the Caliphate:
read_name_in_friday_prayer_guts_become_supporter_effect = yesstruggle:persian_struggle = { … }
read_name_in_friday_prayer_guts_apply_sundry_changes_effect = yesread_name_in_friday_prayer_guts_apply_house_unity_changes_effect = 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 (93 lines of game script)
read_name_in_friday_prayer_scripted_effect = {
# Apply the appropriate modifier.
## Neutrals pick in the event.
if = {
limit = {
NOR = {
has_trait = fp3_struggle_supporter
has_trait = fp3_struggle_detractor
}
}
show_as_tooltip = {
random_list = {
# Become a supporter.
100 = {
show_chance = no
desc = fp3_name_read_in_friday_prayer_decision.tt.become_supporter
read_name_in_friday_prayer_guts_become_supporter_effect = yes
}
# Become a detractor.
100 = {
show_chance = no
desc = fp3_name_read_in_friday_prayer_decision.tt.become_detractor
read_name_in_friday_prayer_guts_become_detractor_effect = yes
}
}
}
}
## Supporters become Detractors.
else_if = {
limit = { has_trait = fp3_struggle_supporter }
read_name_in_friday_prayer_guts_become_detractor_effect = yes
struggle:persian_struggle = {
every_involved_ruler = {
custom = custom.every_opposed_involved_struggle_ruler.supporter
limit = {
this != root
has_trait = fp3_struggle_supporter
}
add_opinion = {
target = root
modifier = turncoat_opinion
opinion = -40
}
}
every_interloper_ruler = {
custom = custom.every_opposed_interloper_struggle_ruler.supporter
limit = {
this != root
has_trait = fp3_struggle_supporter
}
add_opinion = {
target = root
modifier = turncoat_opinion
opinion = -20
}
}
}
}
## Detractors become Supporters.
else_if = {
limit = { has_trait = fp3_struggle_detractor }
read_name_in_friday_prayer_guts_become_supporter_effect = yes
struggle:persian_struggle = {
every_involved_ruler = {
custom = custom.every_opposed_involved_struggle_ruler.detractor
limit = {
this != root
has_trait = fp3_struggle_detractor
}
add_opinion = {
target = root
modifier = turncoat_opinion
opinion = -40
}
}
every_interloper_ruler = {
custom = custom.every_opposed_interloper_struggle_ruler.detractor
limit = {
this != root
has_trait = fp3_struggle_detractor
}
add_opinion = {
target = root
modifier = turncoat_opinion
opinion = -20
}
}
}
}
# Finish things off.
read_name_in_friday_prayer_guts_apply_sundry_changes_effect = yes
read_name_in_friday_prayer_guts_apply_house_unity_changes_effect = yes
}As written in game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls read_name_in_friday_prayer_scripted_effect.
Decisions (1)
Events (1)
- Announcements at the Friday Prayer
fp3_decision.0015
Source: game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.