Scripted effect
set_bhakti_effect
set_bhakti_effect = { BHAKTI = … }game/common/scripted_effects/00_religion_effects.txt, line 108 (170 lines). Parameters: $BHAKTI$.
set_bhakti_effect is a scripted effect in Crusader Kings III, written at line 108 of its file. A call passes 1 parameter: BHAKTI. The game's script calls it in 2 places, among them Bhakti (event religious_decision.0101) and Deciding on a Deity (event religious_decision.0102). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.
The comment above it in the file
Used to set a personal god.
What it does
- If has the Modifier: Devotee of Ganga:
- Loses “Devotee of Ganga”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Saraswati:
- Loses “Devotee of Saraswati”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Kali:
- Loses “Devotee of Kali”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Kubera:
- Loses “Devotee of Kubera”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Lakishmi:
- Loses “Devotee of Lakishmi”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Jagganath:
- Loses “Devotee of Jagganath”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Hayagriva:
- Loses “Devotee of Hayagriva”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Parvati:
- Loses “Devotee of Parvati”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Vīrabhadra:
- Loses “Devotee of Vīrabhadra”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Munīshwarar:
- Loses “Devotee of Munīshwarar”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Dakshinamoorthy:
- Loses “Devotee of Dakshinamoorthy”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Ganesha:
- Loses “Devotee of Ganesha”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Vishnu:
- Loses “Devotee of Vishnu”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Shiva:
- Loses “Devotee of Shiva”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Odin:
- Loses “Devotee of Odin”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Ullr:
- Loses “Devotee of Ullr”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Tyr:
- Loses “Devotee of Tyr”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Thor:
- Loses “Devotee of Thor”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Freyr:
- Loses “Devotee of Freyr”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Amitābha:
- Loses “Devotee of Amitābha”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Avalokiteshvara:
- Loses “Devotee of Avalokiteshvara”
- Gain -500 Piety–-100
- Else, if has the Modifier: Devotee of Bhaisajyaguru:
- Loses “Devotee of Bhaisajyaguru”
- Gain -500 Piety–-100
- Otherwise:
- Gain -100 Piety
- Gains the modifier “$BHAKTI$”
• 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 (120 lines of game script)
set_bhakti_effect = {
# Remove any previous personal god relation.
## HINDUISM
if = {
limit = {
has_character_modifier = bhakti_hinduism_ganga
}
remove_character_modifier = bhakti_hinduism_ganga
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_hinduism_saraswati
}
remove_character_modifier = bhakti_hinduism_saraswati
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_hinduism_kali
}
remove_character_modifier = bhakti_hinduism_kali
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_hinduism_kubera
}
remove_character_modifier = bhakti_hinduism_kubera
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_vaishnavism_lakishmi
}
remove_character_modifier = bhakti_vaishnavism_lakishmi
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_vaishnavism_jagganath
}
remove_character_modifier = bhakti_vaishnavism_jagganath
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_vaishnavism_hayagriva
}
remove_character_modifier = bhakti_vaishnavism_hayagriva
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_shaivism_parvati
}
remove_character_modifier = bhakti_shaivism_parvati
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_shaivism_virabhadra
}
remove_character_modifier = bhakti_shaivism_virabhadra
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_shaivism_munishwarar
}
remove_character_modifier = bhakti_shaivism_munishwarar
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_shaivism_dakshinamoorthy
}
remove_character_modifier = bhakti_shaivism_dakshinamoorthy
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_smartism_ganesha
}
remove_character_modifier = bhakti_smartism_ganesha
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_smartism_vishnu
}
remove_character_modifier = bhakti_smartism_vishnu
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_smartism_shiva
}
remove_character_modifier = bhakti_smartism_shiva
add_piety = replace_bhakti_piety_loss
}
# GERMANIC
else_if = {
limit = {
has_character_modifier = bhakti_germanic_generic_odin
}
remove_character_modifier = bhakti_germanic_generic_odin
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_germanic_not_danish_ullr
}
remove_character_modifier = bhakti_germanic_not_danish_ullr
add_piety = replace_bhakti_piety_loss
}
else_if = {
limit = {
has_character_modifier = bhakti_germanic_danish_tyr
}As written in game/common/scripted_effects/00_religion_effects.txt.
The first 120 of its 170 lines; the rest is in game/common/scripted_effects/00_religion_effects.txt from line 108.
Where it is used
Every place in common/, events/ and history/ that calls set_bhakti_effect.
Events (2)
- Bhakti
religious_decision.0101 - Deciding on a Deity
religious_decision.0102
Source: game/common/scripted_effects/00_religion_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.