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_eng_diplomacy.1601] 圣詹姆斯条约

时间范围
无明确 fromto 日期,事件通过脚本触发,无固定时间范围。

触发条件
事件通过脚本触发,无玩家可主动达成的 trigger 条件。事件触发后,其 immediate 代码块会执行以下操作:

  • 隐藏人物肖像。
  • 将事件发起国首都保存为 target_location
  • 在波斯地区随机寻找一个由伊朗(c:IRA)控制的沿海省份,并将其保存为 target_location(覆盖首都)。
  • 将名为 robert_shirley 的人物保存为 target_character
  • 将事件发起国保存为 sender

关键效果

  • 选项 A (历史选项)

    • 设置变量 treaty_of_stjames = 1
    • 人物 robert_shirley 将移居至伊朗,并获得永久性的 modernizer(现代化推动者)特质。
    • 启用变量 european_militia = 1(对应“启用欧洲民兵改革”)。
    • 向目标国家(scope:target_root_country)增加 trust_treaty_of_stjames 信任度修正。
    • 本国教士阶层满意度小幅下降。
    • 向目标国家(scope:target_root_country)静默触发事件 flavor_eng_diplomacy.1
    • 显示三个自定义提示文本(flavor_eng_diplomacy.1601.tt1.tt2.tt3)。
  • 选项 B

    • 设置变量 treaty_declined = 1
    • 目标国家(scope:target_root_country)将移除对伊朗的 trust_treaty_of_stjames 信任度修正。
    • 目标国家将静默触发事件 flavor_eng_diplomacy.2

背景介绍
该事件模拟了历史上英格兰(或大不列颠)与萨法维伊朗之间一项重要的外交协议。通过派遣罗伯特·雪利爵士等使节,英格兰旨在与波斯建立联盟,以对抗共同的奥斯曼帝国敌人,并寻求贸易与军事上的合作。选项A代表了签署《圣詹姆斯条约》的历史路径,将推动伊朗的军事现代化并巩固两国关系。

完整事件代码

flavor_eng_diplomacy.1601 = {
	hide_portraits = yes
	type = country_event

	title = flavor_eng_diplomacy.1601.title
	desc = flavor_eng_diplomacy.1601.desc
	illustration_tags = {
		10 = angry
		10 = interior
	}
	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:clergy_estate background = estate_type:clergy_estate }
		capital = { save_scope_as = target_location }

		region:persia_region = {
			random_location_in_region = {
				limit = {
					is_coastal = yes
					owner = c:IRA
				}
				save_scope_as = target_location
			}
		}

		scope:robert_shirley = { save_scope_as = target_character }

		save_scope_as = sender

	}

	option = {
		historical_option = yes
		name = flavor_eng_diplomacy.1601.a

		set_variable = { name = treaty_of_stjames value = 1 }

		scope:robert_shirley = {
			move_country = c:IRA
			add_character_modifier = {
				modifier = modernizer
				months = -1
				mode = add_and_extend
			}
		}

		custom_tooltip = {
			text = enable_european_militia_reform
			set_variable = { name = european_militia value = 1 }
		}

		add_trust = {
			modifier = trust_treaty_of_stjames
			target = scope:target_root_country
		}

		add_estate_satisfaction = { type = estate_type:clergy_estate value = estate_satisfaction_mild_penalty }

		scope:target_root_country = { trigger_event_silently = { id = flavor_eng_diplomacy.1 days = 0 } }
		
		custom_tooltip = flavor_eng_diplomacy.1601.tt1
		custom_tooltip = flavor_eng_diplomacy.1601.tt2
		custom_tooltip = flavor_eng_diplomacy.1601.tt3

	}

	option = {
		name = flavor_eng_diplomacy.1601.b

		set_variable = { name = treaty_declined value = 1 }

		scope:target_root_country = {
			remove_trust = { 
				modifier = trust_treaty_of_stjames 
				target = c:IRA 
			}
			trigger_event_silently = { id = flavor_eng_diplomacy.2 days = 0 }
		}

	}

	historical_info = flavor_eng_diplomacy.1600.historical_info

}