Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

[flavor_chi.54] 紫禁城建设

时间范围
无特定时间范围(动态事件,满足条件即可触发)

触发条件

  • 拥有目标省份(owns = scope:target_location

关键效果

  • 选项 A(flavor_chi.54.a

    • 在目标省份提升一级“紫禁城”建筑等级(building_type:forbidden_city
    • 若目标省份不是首都,则将首都迁移至该省份(move_capital_event_effect
  • 选项 B(flavor_chi.54.b

    • 触发前提:目标省份不是首都(NOT = { capital = scope:target_location }
    • 在目标省份提升一级“紫禁城”建筑等级(building_type:forbidden_city

背景介绍
此事件模拟了国家在特定省份兴建或扩建紫禁城的决策。紫禁城作为皇家宫殿与行政中心,其建设往往象征着国家权力中心的巩固或转移,可能伴随首都的迁移,以强化对关键地区的控制或展示王朝的权威。

完整事件代码

flavor_chi.54 = {
	type = country_event
	title = flavor_chi.54.title
	desc = flavor_chi.54.desc
	#show portrait
	illustration_tags = {
		10 = happy
		10 = exterior
	}

	trigger = {
		owns = scope:target_location
	}

	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
		capital = {
			save_scope_as = current_capital
		}
	}

	option = {
		name = flavor_chi.54.a

		scope:target_location = {
			change_building_level_in_location = {
				building = building_type:forbidden_city
				value = 1
			}
		}
		if = {
			limit = {
				NOT = { capital = scope:target_location }
			}
			move_capital_event_effect = {
				from = root.capital
				to = scope:target_location
			}
		}
	}

	option = {
		name = flavor_chi.54.b

		trigger = {
			NOT = { capital = scope:target_location }
		}

		scope:target_location = {
			change_building_level_in_location = {
				building = building_type:forbidden_city
				value = 1
			}
		}
	}
}