Scripted effect
add_holy_site_fallback_special_building_slot_effect
add_holy_site_fallback_special_building_slot_effect = { FAITH = … }game/common/scripted_effects/00_religion_effects.txt, line 1344 (79 lines). Parameters: $FAITH$.
add_holy_site_fallback_special_building_slot_effect is a scripted effect in Crusader Kings III, written at line 1344 of its file. A call passes 1 parameter: FAITH. The game's script calls it in 2 places, among them on_character_holy_site_created (on action) and on_game_start (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_religion_effects.txt.
The comment above it in the file
Province scope, $FAITH$ = faith, used at start and on new holy-site creation
What it does
- If does not have a Special Building slot:
If
$FAITH$ = { religion = religion:islam_religion }
Then
add_special_building_slot = holy_site_mosque_01
Else if
$FAITH$ = { religion = religion:christianity_religion }
Then
add_special_building_slot = holy_site_cathedral_01
Else if
$FAITH$ = { religion = religion:zoroastrianism_religion }
Then
add_special_building_slot = holy_site_fire_temple_01
Else if
$FAITH$ = { religion = religion:buddhism_religion }
Then
add_special_building_slot = holy_site_buddhist_grand_temple_01
Else if
$FAITH$ = { religion = religion:shintoism_religion }
Then
add_special_building_slot = holy_site_japanese_temple_01
Else if
$FAITH$ = { … }
Then
add_special_building_slot = holy_site_chinese_temple_01
Else if
$FAITH$ = { … }
Then
add_special_building_slot = holy_site_indian_grand_temple_01
Else if
$FAITH$ = { … }
Then
add_special_building_slot = holy_site_se_asia_pagan_temple_01
Else if
$FAITH$ = { … }
Then
add_special_building_slot = holy_site_pagan_grand_temple_01
Otherwise
add_special_building_slot = holy_site_other_grand_temple_01
• 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 (79 lines of game script)
add_holy_site_fallback_special_building_slot_effect = {
if = {
limit = {
has_special_building_slot = no
}
if = {
limit = { $FAITH$ = { religion = religion:islam_religion } }
add_special_building_slot = holy_site_mosque_01
}
else_if = {
limit = { $FAITH$ = { religion = religion:christianity_religion } }
add_special_building_slot = holy_site_cathedral_01
}
else_if = {
limit = { $FAITH$ = { religion = religion:zoroastrianism_religion } }
add_special_building_slot = holy_site_fire_temple_01
}
else_if = {
limit = { $FAITH$ = { religion = religion:buddhism_religion } }
add_special_building_slot = holy_site_buddhist_grand_temple_01
}
else_if = {
limit = { $FAITH$ = { religion = religion:shintoism_religion } }
add_special_building_slot = holy_site_japanese_temple_01
}
else_if = {
limit = {
$FAITH$ = {
OR = {
religion = religion:taoism_religion
religion = religion:confucianism_religion
}
}
}
add_special_building_slot = holy_site_chinese_temple_01
}
else_if = {
limit = {
$FAITH$ = {
religion = {
OR = {
this = religion:hinduism_religion
this = religion:jainism_religion
this = religion:tani_religion
this = religion:bon_religion
}
}
}
}
add_special_building_slot = holy_site_indian_grand_temple_01
}
else_if = {
limit = {
$FAITH$ = {
religion = {
OR = {
this = religion:satsana_phi_religion
this = religion:dayawism_religion
this = religion:hantuism_religion
this = religion:kaharingan_religion
this = religion:tolotang_religion
this = religion:aluk_religion
this = religion:dab_qhuas_religion
this = religion:biliku_religion
}
}
}
}
add_special_building_slot = holy_site_se_asia_pagan_temple_01
}
else_if = {
limit = { $FAITH$ = { religion = { is_in_family = rf_pagan } } }
add_special_building_slot = holy_site_pagan_grand_temple_01
}
else = {
add_special_building_slot = holy_site_other_grand_temple_01
}
}
}As written in game/common/scripted_effects/00_religion_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_holy_site_fallback_special_building_slot_effect.
On actions (the game's own hooks) (2)
- on_character_holy_site_created
- on_game_start
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.