Scripted effect
add_next_temple_tier_effect
add_next_temple_tier_effect = yesgame/common/scripted_effects/00_building_effects.txt, line 2968 (20 lines). No parameters.
add_next_temple_tier_effect is a scripted effect in Crusader Kings III, written at line 2968 of its file. It takes no parameters: add_next_temple_tier_effect = yes. The game's script calls it in 1 place, among them Sacred Ashes (event tgp_japan_yearly_events.1070). Patch 1.20.1.2, from game/common/scripted_effects/00_building_effects.txt.
What it does
If
NOT = { has_building_or_higher = temple_01 }
Then
add_building = temple_01
Else if
has_building = temple_01
Then
add_building = temple_02
Else if
has_building = temple_02
Then
add_building = temple_03
Else if
has_building = temple_03
Then
add_building = temple_04
• 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 (20 lines of game script)
add_next_temple_tier_effect = {
if = {
limit = {
NOT = { has_building_or_higher = temple_01 }
}
add_building = temple_01
}
else_if = {
limit = { has_building = temple_01 }
add_building = temple_02
}
else_if = {
limit = { has_building = temple_02 }
add_building = temple_03
}
else_if = {
limit = { has_building = temple_03 }
add_building = temple_04
}
}As written in game/common/scripted_effects/00_building_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_next_temple_tier_effect.
Events (1)
- Sacred Ashes
tgp_japan_yearly_events.1070
Source: game/common/scripted_effects/00_building_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.