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.2008] 中国远征队归来

时间范围
无明确 fromto 日期限制,事件由游戏逻辑动态触发。

触发条件

  • 事件类型为国家事件,由游戏系统在满足特定条件时触发。
  • 事件触发后,立即执行 set_chinese_expedition_scopes = yes 以设置相关作用域。

关键效果

  • 选项 A(名称:flavor_chi.2008.a):
    • 移除远征队领袖的角色修正 chi_leading_expedition

事件后续逻辑
事件结束后,根据远征结果可能触发以下后续事件:

  1. 若存在需朝贡的国家列表(nations_to_make_tributary)且列表非空,则设置变量 envoy_event
  2. 若收到礼物(gifts_received 变量大于0),则设置变量 gift_event
  3. 若远征队发现了发起国未探索的地点,则设置变量 exploration_event
  4. 最后,触发 fire_post_expedition_events 以处理所有后续事件。

背景介绍
此事件模拟了中国历史上对外派遣远征队归来的情景。远征队可能携带了外交、贸易或地理发现方面的成果,国家需要处理这些成果带来的后续影响,如确立朝贡关系、接收外国礼物或整合新发现的地理信息。

完整事件代码

flavor_chi.2008 = {
	type = country_event
	title = flavor_chi.2008.title
	desc = flavor_chi.2008.desc

	illustration_tags = {
		10 = exterior
		10 = happy
	}

	immediate = {
		set_chinese_expedition_scopes = yes
		event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
		
	}

	option = {
		name = flavor_chi.2008.a
		
		var:chinese_expedition_expedition_leader = {
			remove_character_modifier = chi_leading_expedition
		}
	}

	after = {
		if = {
			limit = {
				has_variable_list = nations_to_make_tributary
				variable_list_size = {
					name = nations_to_make_tributary
					value > 0
				}
			}
			set_variable = envoy_event
		}
		if = {
			limit = {
				exists = var:gifts_received
				var:gifts_received > 0
			}
			set_variable = gift_event
		}
		if = {
			limit = {
				any_in_list = {
					variable = list_of_discovered_locations
					scope:expedition_initiator = { 
						NOT = { has_discovered = PREV } 
					}
				}

			}
			set_variable = exploration_event
		}

		fire_post_expedition_events = yes
	}
}