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_ira.1400] 共同对手

时间范围:1520.1.1 - 1650.1.1,每月 1% 概率触发

触发条件

  • 事件仅能触发一次。
  • 如果 rise_of_the_ottomans 剧本处于激活状态且拥有变量 strongest_beylik_variable,则检查该变量指向的国家:
    • 拥有统治者。
    • 与事件触发国(ROOT)接壤。
    • 是独立国家或朝贡国。
    • 不是事件触发国的盟友。
    • 未与事件触发国处于战争状态。
    • 满足以下条件之一:
      • 是事件触发国的宿敌。
      • 是事件触发国的敌人。
      • 国家等级大于2。
    • 拥有至少一个满足以下条件的宿敌:
      • 首都存在。
      • 首都位于欧洲。
      • 不是附属国。
  • 如果上述剧本条件不满足,则检查国家 TUR(奥斯曼)是否满足上述所有相同条件。

关键效果

  • 选项 A (flavor_ira.1400.a)
    • target_country(即共同对手的欧洲宿敌)触发事件 flavor_ira.1401
    • 每年向 target_country 转移相当于本国年收入 0.5 倍的金币。
  • 选项 B (flavor_ira.1400.b)
    • 改变社会价值观:outward_vs_inward(外向 vs 内向)向右移动一格(即变得更外向)。

背景介绍: 此事件模拟了16至17世纪,伊朗萨法维帝国在面对西部强邻(通常是崛起的奥斯曼帝国或其前身贝伊国)时,在外交与战略上可能面临的选择。事件的核心在于,当这个强大的邻国与某个欧洲主要势力敌对时,伊朗统治者可以选择与这个欧洲势力接触,提供资金支持以牵制共同的对手;或者选择转向内政,强化自身的文化与社会凝聚力。

完整事件代码

flavor_ira.1400 = {
	hide_portraits = yes
	type = country_event
	title = flavor_ira.1400.title
	desc = flavor_ira.1400.desc

	dynamic_historical_event = {
		tag = IRA
		from = 1520.1.1
		to = 1650.1.1
		monthly_chance = 1
	}

	fire_only_once = yes

	trigger = {
		trigger_if = {
			limit = {
				is_situation_active = situation:rise_of_the_ottomans
				situation:rise_of_the_ottomans = { has_variable = strongest_beylik_variable }
			}
			situation:rise_of_the_ottomans = {
				var:strongest_beylik_variable = {
					has_ruler = yes
					is_neighbor_of = ROOT
					is_free_or_tributary_trigger = yes
					NOT = { is_allied_with = { target = ROOT } }
					NOT = { is_at_war_with = ROOT }
					OR = {
						is_rival_of = ROOT
						is_enemy_of = ROOT
						country_rank_level > 2
					}
					any_rival = {
						exists = capital
						capital.continent = continent:europe
						is_subject = no
					}
				}
			}
		}
		trigger_else = {
			c:TUR = {
				has_ruler = yes
				is_neighbor_of = ROOT
				is_free_or_tributary_trigger = yes
				NOT = { is_allied_with = { target = ROOT } }
				NOT = { is_at_war_with = ROOT }
				OR = {
					is_rival_of = ROOT
					is_enemy_of = ROOT
					country_rank_level > 2
				}
				any_rival = {
					exists = capital
					capital.continent = continent:europe
					is_subject = no
				}
			}
		}
	}

	illustration_tags = {
        10 = regular
        10 = interior
    }

	immediate = {
		event_illustration_estate_effect = { foreground = estate_type:nobles_estate background = estate_type:nobles_estate }
		if = {
			limit = {
				is_situation_active = situation:rise_of_the_ottomans
				situation:rise_of_the_ottomans = { has_variable = strongest_beylik_variable }
			}
			situation:rise_of_the_ottomans = {
				var:strongest_beylik_variable = {
					save_scope_as = shared_rival
				}
			}
		}
		else = {
			c:TUR = {
				save_scope_as = shared_rival
			}
		}

		scope:shared_rival = {
			ordered_rival = {
				order_by = great_power_score
				limit = {
					exists = capital
					capital.continent = continent:europe
					is_subject = no
				}
				max = 1
				save_scope_as = target_country
				ruler_or_regent ?= {
					save_scope_as = target_character
				}
			}
		}

		save_scope_as = target_country2
		ruler_or_regent ?= {
			save_scope_as = target_character2
		}
	}

	option = {
		name = flavor_ira.1400.a

		scope:target_country = {
			trigger_event_non_silently = flavor_ira.1401
		}

		transfer_yearly_gold = {
			value = 0.5
			target = scope:target_country
		}
	}

	option = {
		name = flavor_ira.1400.b

		change_societal_value = {
			type = outward_vs_inward
			value = societal_value_move_to_right
		}
	}
}