CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · All Under Heaven files

fill_external_east_asian_estate_building_effect

fill_external_east_asian_estate_building_effect = yes

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 2909 (35 lines). No parameters.

fill_external_east_asian_estate_building_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2909 of its file. It takes no parameters: fill_external_east_asian_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/10_dlc_tgp_scripted_effects.txt.

What it does

  • Depending on has domicile building or higher:
    • When has domicile building or higher is east asian estate main 05:
      • while = { … }
    • When has domicile building or higher is east asian estate main 04:
      • while = { … }
    • When has domicile building or higher is east asian estate main 03:
      • while = { … }
    • When has domicile building or higher is east asian estate main 02:
      • while = { … }
    • When has domicile building or higher is east asian estate main 01:
      • while = { … }

• 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_east_asian_estate_building_effect = {
	switch = {
		trigger = has_domicile_building_or_higher
		east_asian_estate_main_05 = {
			while = {
				limit = { free_external_domicile_building_slots >= 2 }
				add_random_external_east_asian_estate_building = yes
			}
		}
		east_asian_estate_main_04 = {
			while = {
				limit = { free_external_domicile_building_slots >= 3 }
				add_random_external_east_asian_estate_building = yes
			}
		}
		east_asian_estate_main_03 = {
			while = {
				limit = { free_external_domicile_building_slots >= 4 }
				add_random_external_east_asian_estate_building = yes
			}
		}
		east_asian_estate_main_02 = {
			while = {
				limit = { free_external_domicile_building_slots >= 5 }
				add_random_external_east_asian_estate_building = yes
			}
		}
		east_asian_estate_main_01 = {
			while = {
				limit = { free_external_domicile_building_slots >= 6 }
				add_random_external_east_asian_estate_building = yes
			}
		}
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls fill_external_east_asian_estate_building_effect.

On actions (the game's own hooks) (1)

  • on_game_start_after_lobby

Scripted effects (1)

Source: game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?