Scripted effect · Legacy of Persia files
avenge_the_battle_of_nahrawan_scripted_effect
avenge_the_battle_of_nahrawan_scripted_effect = yesgame/common/scripted_effects/03_dlc_fp3_scripted_effects.txt, line 33 (115 lines). No parameters.
avenge_the_battle_of_nahrawan_scripted_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 33 of its file. It takes no parameters: avenge_the_battle_of_nahrawan_scripted_effect = yes. The game's script calls it in 2 places, among them Avenge the Battle of Nahrawan (decision) and Avenging our Martyrs (event fp3_decision.0011). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp3_scripted_effects.txt.
What it does
- Gains the Nickname 'the Avenger'
- Gains the modifier “Muhakkima Ascendancy”
- Same Faith Opinion +10
- Martial per Level of Devotion +1
- Gain +750 Prestige
- Gain +250 Piety
- Their faith: Fervor increases by +25
If
- Any vassal or below:
None of these
- Their rite: Has the Muhakkima Doctrine
- Is played by the AI
- Their capital province:
One of these
- Is in the Middle East region
or
Is in the Ancient Persia region
Then
- Every non-Muhakkima vassal or below in Persia or the Middle East:
- Where:
None of these
- Their rite: Has the Muhakkima Doctrine
- Is played by the AI
- Their capital province:
One of these
- Is in the Middle East region
or
Is in the Ancient Persia region
- 25% chance of:
set_character_faith = scope:avenger.faithset_character_rite = scope:avenger.rite
- Where:
- Any vassal or below:
If
- Any realm province:
None of these
- Their rite: Has the Muhakkima Doctrine
One of these
- Is in the Middle East region
or
Is in the Ancient Persia region
Then
- Every non-Muhakkima county in Persia or the Middle East › 25% chance of: Converts to ⟨faith⟩
- Any realm province:
If a check the game hides passes: the same again (1 line)
- scope:sunni_faith: Fervor decreases by -25
If a check the game hides passes: the same again (1 line)
- scope:shia_faith: Fervor decreases by -25
• 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 (115 lines of game script)
avenge_the_battle_of_nahrawan_scripted_effect = {
give_nickname = nick_the_avenger
add_character_modifier = {
modifier = fp3_azariqa_ascendancy_modifier
}
add_prestige = massive_prestige_gain
#Religious bonuses
add_piety = major_piety_gain
faith = {
change_fervor = {
value = medium_fervor_gain
desc = fervor_gain_avenged_battle_of_nahrawan
}
}
if = {
limit = {
any_vassal_or_below = {
NOT = {
rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
}
is_ai = yes
capital_province ?= {
OR = {
geographical_region = world_middle_east
geographical_region = world_persian_empire
}
}
}
}
every_vassal_or_below = {
custom = every_non_muhakkima_vassal_middle_east
limit = {
NOT = {
rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
}
is_ai = yes
capital_province ?= {
OR = {
geographical_region = world_middle_east
geographical_region = world_persian_empire
}
}
}
random = {
chance = 25
set_character_faith = scope:avenger.faith
set_character_rite = scope:avenger.rite
}
}
}
if = {
limit = {
any_realm_province = {
NOT = {
rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
}
OR = {
geographical_region = world_middle_east
geographical_region = world_persian_empire
}
}
}
every_realm_province = {
limit = {
NOT = {
rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine }
}
OR = {
geographical_region = world_middle_east
geographical_region = world_persian_empire
}
}
county = {
add_to_list = every_realm_county
}
}
every_in_list = {
list = every_realm_county
custom = every_non_muhakkima_faith_county_middle_east
random = {
chance = 25
custom_tooltip = every_non_avenger_faith_convert
hidden_effect = {
set_county_faith = scope:avenger.faith
set_county_rite = scope:avenger.rite
}
}
}
}
if = {
limit = { exists = scope:sunni_faith }
scope:sunni_faith = {
change_fervor = {
value = medium_fervor_loss
desc = fervor_loss_avenged_battle_of_nahrawan
}
}
}
if = {
limit = { exists = scope:shia_faith }
scope:shia_faith = {
change_fervor = {
value = medium_fervor_loss
desc = fervor_loss_avenged_battle_of_nahrawan
}
}
}
}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 avenge_the_battle_of_nahrawan_scripted_effect.
Decisions (1)
Events (1)
- Avenging our Martyrs
fp3_decision.0011
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.