Scripted effect · Roads to Power files
fill_external_estate_building_effect
fill_external_estate_building_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 13275 (35 lines). No parameters.
fill_external_estate_building_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 13275 of its file. It takes no parameters: fill_external_estate_building_effect = yes. The game's script calls it in 2 places, among them on_game_start_after_lobby (on action) and set_up_domicile_estate_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
- Depending on has domicile building or higher:
- When has domicile building or higher is estate main 05:
while = { … }
- When has domicile building or higher is estate main 04:
while = { … }
- When has domicile building or higher is estate main 03:
while = { … }
- When has domicile building or higher is estate main 02:
while = { … }
- When has domicile building or higher is estate main 01:
while = { … }
- When has domicile building or higher is estate main 05:
• 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 (35 lines of game script)
fill_external_estate_building_effect = {
switch = {
trigger = has_domicile_building_or_higher
estate_main_05 = {
while = {
limit = { free_external_domicile_building_slots >= 1 }
add_random_external_estate_building = yes
}
}
estate_main_04 = {
while = {
limit = { free_external_domicile_building_slots >= 2 }
add_random_external_estate_building = yes
}
}
estate_main_03 = {
while = {
limit = { free_external_domicile_building_slots >= 3 }
add_random_external_estate_building = yes
}
}
estate_main_02 = {
while = {
limit = { free_external_domicile_building_slots >= 4 }
add_random_external_estate_building = yes
}
}
estate_main_01 = {
while = {
limit = { free_external_domicile_building_slots >= 5 }
add_random_external_estate_building = yes
}
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls fill_external_estate_building_effect.
On actions (the game's own hooks) (1)
- on_game_start_after_lobby
Scripted effects (1)
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.