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

Scripted effect · Legends of the Dead files

get_building_name_effect

get_building_name_effect = yes

game/common/scripted_effects/06_dlc_ce1_leg_b_effects.txt, line 3 (676 lines). No parameters.

get_building_name_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 3 of its file. It takes no parameters: get_building_name_effect = yes. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_leg_b_effects.txt.

What it does

  • 1 of 36 things will happen:
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens
    • 3%: Nothing else happens

• 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)
get_building_name_effect = {
	random_list = {
		10 = {
			trigger = {
				scope:legendary_province = { has_building = legendary_shrine }
				NOT = {
					has_character_flag = shrine_of_highgod
				}
			}
			if = {
				limit = { is_ai = yes }
				set_variable = {
					name = leg_b_name
					value = flag:shrine_of_highgod
				}
			}
			else = {
				add_character_flag = shrine_of_highgod
			}
		}
		10 = {
			trigger = {
				scope:legendary_province = { has_building = legendary_shrine }
				NOT = {
					has_character_flag = province_shrine
				}
			}
			if = {
				limit = { is_ai = yes }
				set_variable = {
					name = leg_b_name
					value = flag:province_shrine
				}
			}
			else = {
				add_character_flag = province_shrine
			}
		}
		10 = {
			trigger = {
				scope:legendary_province = { has_building = legendary_shrine }
				NOT = {
					has_character_flag = shrine_of_healthgod
				}
			}
			if = {
				limit = { is_ai = yes }
				set_variable = {
					name = leg_b_name
					value = flag:shrine_of_healthgod
				}
			}
			else = {
				add_character_flag = shrine_of_healthgod
			}
		}
		10 = {
			trigger = {
				scope:legendary_province = { has_building = legendary_shrine }
				NOT = {
					has_character_flag = shrine_of_fertilitygod
				}
			}
			if = {
				limit = { is_ai = yes }
				set_variable = {
					name = leg_b_name
					value = flag:shrine_of_fertilitygod
				}
			}
			else = {
				add_character_flag = shrine_of_fertilitygod
			}
		}
		10 = {
			trigger = {
				scope:legendary_province = { has_building = legendary_shrine }
				NOT = {
					has_character_flag = shrine_of_wealthgod
				}
			}
			if = {
				limit = { is_ai = yes }
				set_variable = {
					name = leg_b_name
					value = flag:shrine_of_wealthgod
				}
			}
			else = {
				add_character_flag = shrine_of_wealthgod
			}
		}
		10 = {
			trigger = {
				scope:legendary_province = { has_building = legendary_shrine }
				NOT = {
					has_character_flag = shrine_of_wisdom
				}
			}
			if = {
				limit = { is_ai = yes }
				set_variable = {
					name = leg_b_name
					value = flag:shrine_of_wisdom
				}
			}
			else = {
				add_character_flag = shrine_of_wisdom
			}
		}
		10 = {
			trigger = {
				scope:legendary_province = { has_building = legendary_shrine }
				NOT = {
					has_character_flag = shrine_of_courage
				}
			}
			if = {
				limit = { is_ai = yes }
				set_variable = {

As written in game/common/scripted_effects/06_dlc_ce1_leg_b_effects.txt.

The first 120 of its 676 lines; the rest is in game/common/scripted_effects/06_dlc_ce1_leg_b_effects.txt from line 3.

Where it is used

No file of common/, events/ or history/ calls it.

Source: game/common/scripted_effects/06_dlc_ce1_leg_b_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?